PDA

View Full Version : apache2 + php => routing error


goneskiing
December 23rd, 2005, 11:50 PM
when I type "http://localhost/mytest.php" I get an error "routing error /mytest.php" My mytest.php file is in /var/www - do I need to specify something in apache2.conf ? I don't see a DocumentRoot setting in the conf file. thks for any help.

Koybe
December 24th, 2005, 04:58 AM
The DocumentRoot directive is set ine the default website of apache2, you can have a look here (https://wiki.ubuntu.com/ApacheMySQLPHP) if you want to know howto.

goneskiing
December 24th, 2005, 06:07 AM
sorry, but I just do not know where that setting is. I do not see it in userdir.conf. btw, I had previously created a ruby rails app that created a file in sites-available with a link to enabled-sites which specified a document root - maybe that is overriding ? If so, I'm wondering how I keep my ruby and php apps apart?

Koybe
December 24th, 2005, 06:58 AM
Yes it's probably overriding with the default website.
You'll find userdir as a mod in /etc/apache2/mods-available ;)

goneskiing
December 24th, 2005, 12:36 PM
okay, I guess the <Directory /home/*/public_html> is what gets changed to something like <Directory /var/www> ?