Jump to content


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



Recommended Posts

Alright Guys I have installed Apache 2.0 and PHP 5 via source for RedHat AS3. Everything seems to work just fine however zero php pages will open. I can open regular html pages just fine but NO php This is killing me... I have read nearly everywhere and done tons of research and had no luck... perhaps I have been staring at this thing way to long. Or am jsut retarded... that may be the case

When I try to open a php page in the browser (ie or firefox) it asks me to save or open, but if i do it on the local machine through mozilla is just shows me the raw code... any ideas???

I think im missing something in my /etc/httpd/conf/httpd.conf to be honest with u guys.... can anyone help me?

i will be happy to post my httpd.conf if u think it will help

disclaimer... im not the most linux savvy so please be gentle

Share this post

Link to post
Share on other sites
Have you configured Apache to use PHP?

You'll need to add the following lines within the relevent sections of httpd.conf:

[code]ScriptAlias /php/ "path/to/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php /path/to/php/executable

Share this post

Link to post
Share on other sites


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.