PHP files being downloaded and not processed

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
spartan7
Forum Commoner
Posts: 29
Joined: Sun Jun 19, 2005 12:09 am

PHP files being downloaded and not processed

Post by spartan7 »

I have a major problem. I just had a server installed (CentOS, latest stable versions of php,mysql, gd, apache ect) for me and everything works great EXCEPT when I try to access a PHP page the browser tries to download the file instead of process it.

The server cpanels and whm and that work FINE so obviously PHP is being processed under those conditions...But when I add an ordinary hosting account then PHP files don't get processed, the browser wants to download them.

Please assist...Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It sounds like the type/handler isn't added for those accounts.

Look up the installation instructions regarding AddType and/or AddHandler in the PHP documentation.
Post Reply