Ads

Sunday, 20 November 2016

Upgrade Guide UBUNTU 12.04 To 14.04 Trusty

Backups
Make sure you have full backups of everything on your server that is important to you. At the very least, you should generate full backups of all your Virtual Servers. You may also want to make a backup of everything in /etc.
Package Updates
Make sure your system is fully up to date by running these commands:
sudo apt-get update
sudo apt-get upgrade
Reset Dependency Flags
These packages are already installed, but the following command will tell apt not include them anytime "apt-get autoremove" is run:
apt-get install bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd webmin usermin webmin-virtual-server libcrypt-ssleay-perl webmin-virtual-server-theme webmin-virtualmin-dav webmin-virtualmin-svn webmin-virtualmin-awstats webmin-virtualmin-mailman webmin-virtualmin-htpasswd clamav-base clamav-daemon clamav clamav-data clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin usermin-virtual-server-theme procmail-wrapper php-pear php5 php5-cgi webmin-security-updates
Update Manager
Make sure you have the update manager core by running this command:
sudo apt-get install update-manager-core
Begin Upgrade
Run the following command to begin the upgrade process. Ubuntu suggests running this from the console, though it should also work from SSH:
do-release-upgrade -d
And then follow the on-screen instructions.
In general, if you are prompted about whether to replace a config file with a new one, or keep your existing one -- we would suggest keeping your existing config.
Coffee
Now is an excellent time to go get some coffee or another beverage of choice, while the packages are downloaded and installed :-)
Reboot
When the upgrade completes, it will prompt you to reboot your system. Perform the reboot, and when your system comes back online, there's just a few more things to change.
Change apt config
Edit /etc/apt/sources.list, and uncomment the Virtualmin repositories. Then change any references of "precise" in those repositories to "trusty".
Run this command, and make sure the new apt config works properly:
apt-get update
Apache Config
There were some significant changes made to Apache. You'll need to make the following updates to /etc/apache2/apache2.conf:
Comment out the following lines that appear in the apache2.conf:
Include httpd.conf
Include conf.d
LockFile ${APACHE_LOCK_DIR}/accept.lock
Re-enable Apache modules:
a2enmod suexec
a2enmod actions
Now enable some Apache modules:
a2enmod suexec
a2enmod rewrite
Then restart Apache:
service apache2 restart
Verify DNS Config
Edit /etc/resolv.conf, and verify that the nameserver line is configured to use 127.0.0.1 as a nameserver.
Test
That's it for configuring your updated system. Now it's time to test your services and websites!
Read More
This article will help you to upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS. Read more about Ubuntu 14.04 LTS.
Note: Before starting release upgrade on Ubuntu, We recommend to take backup of impotent data to other remote system or backup drive. We do not grantees that below steps will work for you properly. The commands use in this article has been taken from here.
To download Ubuntu 12.04 Trusty Tahr ISO images, Visit to http://releases.ubuntu.com/trusty/

Step 1: Install Ubuntu Core Update Mamanger

Generally update-manager-core was installed on system by default, but in case you do not have it, You can install it using following commands.
$ sudo apt-get update
$ sudo apt-get install update-manager-core

Step 2: Check Current Version and Available Upgrade

To check your current running version use lsb_release command.
$ lsb_release -a

LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:.....
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:   precise

Now check for new Ubuntu release available to update
$ sudo do-release-upgrade --check-dist-upgrade-only --devel-release

Checking for a new Ubuntu release
New release '14.04' available.
Run 'do-release-upgrade' to upgrade to it.

The above output showing that newer release 14.04 is available to upgrade

Step 3: Upgrade to Ubuntu 14.04 LTS

Lets execute following command to upgrade ubuntu release to Ubuntu 14.04 LTS (Trusty Tahr).
$ sudo do-release-upgrade --devel-release
The above command will take long time to execute depends on your system configuration and internet speed. This will also ask for confirmation to proceed. Using –devel-release will upgrade to development (Unstable) release





Read More

Thursday, 17 November 2016



If you are trying to connect with remote mysql database to perform remote management or connectivity with some web app to add data into the db , and sees the following error


Connection failed: Access denied for user ‘zaib’@’x.x.x.x’ (using password: YES)
OR
Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server

Then you need to grant access to the user from any hostname. This is how you add new privilege from mysql command line.

NOTE: Please beware that this is for just example purpose only , and you MUST take good security measures like Strong Password, and allow only specific IP address to access etc.


CREATE USER 'zaib'@'localhost' IDENTIFIED BY 'zaib1234';
 
GRANT ALL PRIVILEGES ON *.* TO 'zaib'@'localhost' WITH GRANT OPTION;
 
CREATE USER 'zaib'@'%' IDENTIFIED BY 'zaipassword';
 
GRANT ALL PRIVILEGES ON *.* TO 'zaib'@'%' WITH GRANT OPTION;
 
FLUSH PRIVILEGES;


Sample PHP page to test Remote Mysql connection

Now you can test it with sample php page. change the host name of remote mysql server, and the id , password we just created in above steps.


<?php
$servername = "remote.mysql.host.ip.or.name";
$username = "zaib";
$password = "zaibpass";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully. Hurraahhhhh/Alhamdolillah";
?>



Read More

Monday, 7 November 2016

Mikrotik hotspote login page Free Download

Green Hotpost login page have Packages, Services and Contact Us pages.

















Read More

Recent News