Apache MySQL Question
If I access the IP at
Here are a few of the last entries in the error log:
[Fri Mar 05 15:28:10 2010] [error] [client xx.xxx.xxx.xx] File does not exist: /srv/www/example.com/public_html/tracker
[Fri Mar 05 15:29:18 2010] [error] [client xx.xxx.xxx.xx] File does not exist: /srv/www/example.com/public_html/tracker
[Fri Mar 05 15:30:14 2010] [error] [client zz.zzz.zzz.zzz] File does not exist: /srv/www/example.com/public_html/popular
[Fri Mar 05 15:30:27 2010] [error] [client xx.xxx.xxx.xx] File does not exist: /srv/www/example.com/public_html/tracker
[Fri Mar 05 15:31:36 2010] [error] [client xx.xxx.xxx.xx] File does not exist: /srv/www/example.com/public_html/tracker
[Fri Mar 05 15:31:54 2010] [error] [client xx.xxx.xxx.xx] File does not exist: /srv/www/example.com/public_html/category
[Fri Mar 05 15:32:45 2010] [error] [client xx.xxx.xxx.xx] File does not exist: /srv/www/example.com/public_html/content
[Fri Mar 05 15:33:34 2010] [error] [client yyy.yyy.yy.yy] PHP Fatal error: Call to undefined function t() in /srv/www/example.com
/public_html/sites/all/modules/devel/performance/performance.module on line 167
Here is what the ports.conf looks like:
NameVirtualHost xx.xxx.xxx.xx:80
Listen 80
Here is the /etc/hosts file:
127.0.0.1 localhost
127.0.1.1 ubuntu
xx.xxx.xxx.xx examplehostname.example.com examplehostname
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Here is the Virtual Host file at etc/apache2/sites-available/example.com:
ServerName example.com
ServerAlias
DocumentRoot /srv/www/example.com/public_html/
ErrorLog /srv/www/example.com/logs/error.log
CustomLog /srv/www/example.com/logs/access.log combined
The Linode manager looks accurate the Domain Zone, NS Records, A/AAAA entries, etc.
I've googled eveything I can think of that might affect this including file permissions, the Drupal settings file, the hostname, sessions, etc but nothing seems to solve it. Something tells me it is easy but my eyes are glazed over at this point. Any ideas?
2 Replies
/srv/www/example.com/public_html/tracker
Do you actually have a folder named "/srv" on your root partition? Or should it be "/home/something/www/domain.com" etc.
Based on this post--
/etc/apache2/sites-available/default:
changed DocumentRoot from /var/www/ to /srv/www/example.com/public_html
changed the Directory that referenced /var/www also to /srv/www/example.com/public_html
Based on this thread--
- changed AllowOverride None to AllowOverride All
Then I did a2enmod rewrite and restarted Apache and all was good.
Any questions or comments fire away.