I have My Ubuntu 10.04 LTS Profile
i am lost now what to do and even how to tell what is exactly my problem is..
i have used following document to install LAMP
my domain name is
and in start when i have only install apache2 it was working fine i was able to see "it works !" on my browser
but after i reach name based virtual host setting and i tried to reload apache2 it gave me error FAIL in red
/etc/init.d/apache2 reload
and i think from here the problem started..
and then i went to install mysql and php
installation is successful but in installer auto commands i saw apache2 restart fail
please help issued tickets but they are not ready to help as they say these are un manage server and they cant access my linode.
i am even ready to pass my root password to that linux guru can login and fix my problem..
thanks in advance..
6 Replies
@shahzad429:
today the whole day i tried my best to set it up and host my website. but failed.
i am lost now what to do and even how to tell what is exactly my problem is..
i have used following document to install LAMP
http://library.linode.com/lamp-guides/u … .04-lucid/">http://library.linode.com/lamp-guides/ubuntu-10.04-lucid/ my domain name is
http://learnarabicwithsinbad.com/ i have already change its NS to linode.comand in start when i have only install apache2 it was working fine i was able to see "it works !" on my browser
but after i reach name based virtual host setting and i tried to reload apache2 it gave me error FAIL in red
/etc/init.d/apache2 reload
and i think from here the problem started..
and then i went to install mysql and php
installation is successful but in installer auto commands i saw apache2 restart fail
please help issued tickets but they are not ready to help as they say these are un manage server and they cant access my linode.
i am even ready to pass my root password to that linux guru can login and fix my problem..
thanks in advance..
Go look in your apache logs (/var/log/apache/errlog I think), it'll tell you why it failed. Most likely a configuration file error.
i found nothing in my errorlog file
nano /var/log/apache/errlog
you want me to check any other file?
@shahzad429:
Thanks for the reply glg
i found nothing in my errorlog file
nano /var/log/apache/errlog
you want me to check any other file?
try checking the other logs in that directory
@glg:
try checking the other logs in that directory
in error.log
i found the following
[Mon May 24 04:06:00 2010] [notice] Apache/2.2.14 (Ubuntu) configured – resuming normal operations
[Mon May 24 05:36:36 2010] [error] [client 58.161.247.16] File does not exist: /var/www/favicon.ico, referer:
[Mon May 24 05:36:42 2010] [error] [client 58.161.247.16] File does not exist: /var/www/favicon.ico, referer:
[Mon May 24 07:39:17 2010] [notice] SIGUSR1 received. Doing graceful restart
apache2: aprsockaddrinfo_get() failed for shahzad
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
~
~
~
~
in my /etc/hosts file
i have added
178.79.130.36 learnarabicwithsinbad.com
and while setup host name i set to
echo "
hostname -F /etc/hostname
i use www
is it also one of the problem??
@shahzad429:
i more thing i need to add
in my /etc/hosts file
i have added
178.79.130.36 learnarabicwithsinbad.com
and while setup host name i set to
www.learnarabicwithsinbad.com echo "
www.learnarabicwithsinbad.com " > /etc/hostnamehostname -F /etc/hostname
i use www
is it also one of the problem??
You need a short hostname like "shahzad", so hostname –fqdn would return "shahzad.learnarabicwithsinbad.com", but the short hostname can be anything that you want; however, "www" is probably not a good short hostname.
Try
echo "shahzad" > /etc/hostname
hostname -F /etc/hostname
and then
hostname --fqdn
After all that is done, then edit your /etc/hosts so it reflects those changes:
127.0.0.1 localhost
178.79.130.36 shahzad.learnarabicwithsinbad.com shahzad
…
Don't worry about
In your DNS zone file you'll need entries similar to these:
…
@ A 178.79.130.36
www A 178.79.130.36
shahzad A 178.79.130.36
…
The Linode DNS Manager should create the www entry by default, but you'll need to add the "shahzad" (or whatever you came up with for a short hostname) into the Linode DNS Manager as an A record.
And you should have a learnarabicwithsinbad.com file in /etc/apache2/sites-available with something similar to this:
ServerName learnarabicwithsinbad.com
ServerAlias
DocumentRoot /srv/www/learnarabicwithsinbad.com/public_html/
ErrorLog /srv/www/learnarabicwithsinbad.com/logs/error.log
CustomLog /srv/www/learnarabicwithsinbad.com/logs/access.log combined
Finally, enable your site and reload apache2:
a2ensite learnarabicwithsinbad.com
/etc/init.d/apache2 reload
These aren't all the steps in