Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 24, 2010 12:19 pm 
Offline
Senior Newbie

Joined: Sun May 23, 2010 6:12 am
Posts: 5
WLM: shahzad429@hotmail.com
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/


my domain name is http://learnarabicwithsinbad.com/ i have already change its NS to linode.com

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..


Top
   
PostPosted: Mon May 24, 2010 12:58 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
shahzad429 wrote:
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/


my domain name is http://learnarabicwithsinbad.com/ i have already change its NS to linode.com

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..


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.


Top
   
 Post subject: reply
PostPosted: Mon May 24, 2010 4:50 pm 
Offline
Senior Newbie

Joined: Sun May 23, 2010 6:12 am
Posts: 5
WLM: shahzad429@hotmail.com
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?


Top
   
 Post subject: Re: reply
PostPosted: Mon May 24, 2010 5:18 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
shahzad429 wrote:
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


Top
   
 Post subject: Re: reply
PostPosted: Mon May 24, 2010 5:20 pm 
Offline
Senior Newbie

Joined: Sun May 23, 2010 6:12 am
Posts: 5
WLM: shahzad429@hotmail.com
glg wrote:

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: http://learnarabicwithsinbad.com/
[Mon May 24 05:36:42 2010] [error] [client 58.161.247.16] File does not exist: /var/www/favicon.ico, referer: http://www.learnarabicwithsinbad.com/
[Mon May 24 07:39:17 2010] [notice] SIGUSR1 received. Doing graceful restart
apache2: apr_sockaddr_info_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
~
~
~
~


Top
   
 Post subject:
PostPosted: Mon May 24, 2010 5:31 pm 
Offline
Senior Newbie

Joined: Sun May 23, 2010 6:12 am
Posts: 5
WLM: shahzad429@hotmail.com
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/hostname
hostname -F /etc/hostname

i use www


is it also one of the problem??


Top
   
 Post subject:
PostPosted: Tue May 25, 2010 3:22 pm 
Offline
Junior Member
User avatar

Joined: Thu Apr 29, 2010 3:32 pm
Posts: 44
Website: http://devjonfos.net
Location: Oregon
shahzad429 wrote:
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/hostname
hostname -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

Code:
echo "shahzad" > /etc/hostname
hostname -F /etc/hostname


and then

Code:
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 www.learnarabicwithsinbad.com or learnarabicwithsinbad.com for web traffic. Those would be addressed in DNS and in your /etc/apache2/sites-available file.

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:

<VirtualHost 178.79.130.36:80>
ServerAdmin webmaster@learnarabicwithsinbad.com
ServerName learnarabicwithsinbad.com
ServerAlias www.learnarabicwithsinbad.com
DocumentRoot /srv/www/learnarabicwithsinbad.com/public_html/
ErrorLog /srv/www/learnarabicwithsinbad.com/logs/error.log
CustomLog /srv/www/learnarabicwithsinbad.com/logs/access.log combined
</VirtualHost>

Finally, enable your site and reload apache2:

Code:
a2ensite learnarabicwithsinbad.com
/etc/init.d/apache2 reload


These aren't all the steps in http://library.linode.com/getting-started/ and http://library.linode.com/lamp-guides/u ... .04-lucid/ but I think I highlighted the steps where you may have had problems?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group