Jump to content


Photo

PHP5 APACHE 2.0


  • Please log in to reply
1 reply to this topic

#1 king_x

king_x
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 07 June 2006 - 12:36 PM

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

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 19 June 2006 - 11:07 AM

Have you configured Apache to use PHP?

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

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users