Followers

Friday, October 24, 2014

Upgrading ubuntu and the consequences

When you upgrade ubuntu, there may be many unpleasant side effects. For instance I got an email about our server not accessible for citation purpose. I checked the web document roots and changed some permissions (which seem to have changed since the upgradation), still the site went blank.

To check ubuntu version do the following:
lsb_release  -a
Mine was 14.04


So I went ahead with a restart of apache and the commands are slightly different from that of red hat linux.

sudo /etc/init.d/apache2 restart

Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Then browsing several web sites I did the following:



Created a file servername.conf inside
sudo vim /etc/apache2/conf-available/servername.conf

Inside this file entered a line

ServerName   MyDomainName
sudo a2enconf servername (Name of the file created)

then did a
service apache2 reload
Then restarted apache using:

/etc/init.d/apache2 restart

The warning message dis-appeared but the web page was still not up.

then you may have to change the document root directory. In our case, it was /var/www earlier, but currently it is /var/www/html

If you are depending upon bioperl modules, you may also see most of your perl modules dis-appearing. Then you search for that particular module using command:

find / -name Session.pm

You may see your INC path has changed. Now you would like to place your bioperl files in INC path.

Change permissions of some files and then it will start working!!

No comments:

Post a Comment