Jump to content

PHP5 APACHE 2.0


king_x

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
Link to comment
Share on other sites

  • 2 weeks later...
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
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.