king_x Posted June 7, 2006 Share Posted June 7, 2006 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 helpdisclaimer... im not the most linux savvy so please be gentle Quote Link to comment https://forums.phpfreaks.com/topic/11404-php5-apache-20/ Share on other sites More sharing options...
zq29 Posted June 19, 2006 Share Posted June 19, 2006 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 .phpAction application/x-httpd-php /path/to/php/executable[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11404-php5-apache-20/#findComment-47259 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.