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.comecho "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?