开发者

How do you get PHP5 scripts to work under gentoo linux?

I ran "emerge apache" "emerg开发者_运维技巧e 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


Where did you add "-D PHP"?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜