noobydoobydoo Posted July 9, 2007 Share Posted July 9, 2007 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 Quote Link to comment Share on other sites More sharing options...
trq Posted July 9, 2007 Share Posted July 9, 2007 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 These addresses are both incorrect. Simply use... http://localhost/file.php /var/www/localhost/htdocs/ is your web root, http://localhost/ points directly to it. PS: You've chosen the best distro out there IMO. Good luck! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.