Jump to content

apache php install on gentoo


Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/59026-apache-php-install-on-gentoo/
Share on other sites

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.