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
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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.