By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,610 Members | 1,957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,610 IT Pros & Developers. It's quick & easy.

php not working as apache module on gentoo

P: 2
i'm a noob using gentoo and today i emerged apache with apache2 in my USE variable in /etc/make.conf, started the server and tested it from a browser using: http://localhost/ .So far so good.
Then i emerged dev-lang/php and the apache config file got
updated to include: APACHE_OPTS="-D DEFAULT_HOST -D PHP5.
I then created a sample .php file in /var/www/localhost/htdocs/ .But when i try to access this file from a browser using: http:///var/www/localhost/htdocs/file.php OR: file:///var/www/localhost/htdocs/file.php
i just get error 404: filenot found OR the url was not found on the server.Does this mean PHP is not working as an apache module?, if so what can i do?.Or does it just mean
that the server needs more info on where to find it's filesystem?, if so how do i give this info to apache?
Thankx kindly for any help
Jul 9 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 5,821
Heya, nubian.

Try http://localhost/file.php instead.
Jul 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.