tags:

views:

16

answers:

1

I ran "emerge apache" "emerge php" "emerge mysql"

I set apache + mysql to run at launch

I set the use flags for PHP, CGI, APACHE, MYSQL

I went into httpd.conf and added "-D PHP"

PHP scripts will not run. The contents of the script are just sent back to the web browser.

That is the result of retrieving "test.php" from a web-browser

I am baffled and frustrated. I have spend at least 6 hours trying to this LAMP setup working on this VPS. Please help me!

Also, "emerge mod_php" does not work. It tells me that no such package exists

A: 

Where did you add "-D PHP"?

You should edit /etc/conf.d/apache2 and append "-D PHP5" to the APACHE2_OPTS.

racetrack
I fixed the problem. I installed CentOS :P
HaltingState