Help - Search - Members - Calendar
Full Version: php turned off
The Planet Forums > System Administration > Server Hardware > RaQ Support
kipster
I think my php is turned off. If I clck on a php file it just wants to download it and not run it how to I check if it's off and where do I turn it back on?
Diana
I have several questions. Some may seem silly, but bear with me..icon_smile.gif

Did php ever work? Is this a new installation of php, if so, was Apache properly compiled to use it? If it is new did you add the AddType handlers to the httpd.conf file? If php used to work and you added those handlers to the httpd.conf file, did you recently add/delete a site from the machine?

Depending on your answers, we may come up with a solution..icon_smile.gif

see ya,
kipster
php used to work but somehow my buddy turned it off and I don't see it in conf file... ya it worked fine before.
Diana
Hi,

OK, since it once worked and now doesn't, and you say there is no evidence of php in the httpd.conf file, it would suggest that it needs to be put back in the httpd.conf file.

Let me relate my experience and then you apply it as is appropriate.

I have a RaQ2, but it's running an upgraded Apache/php4.3.*/mysql.

The httpd.conf file must be edited to allow the sites to access the php. Many people enable PHP in that file server wide..all sites have access. In my case, I prefer to know which sites are using PHP so I enable each site by request only. In the beginning, I used the vhost containers in the httpd.conf file to define the AddType handlers, but I found that doing anything through the control panel that updated the httpd.conf file would overwrite my additions. I had to use an include file to point to an external file that I keep all my php-sites listed in.

If someone caused the system to update the httpd.conf file, any changes you made to it by hand will be undone, a side effect being to "turn php off". Since you are serving normal pages ok, this shows that Apache itself is running fine.

Let us know if this helps you. If not, maybe your next questions will point to new possibilities.

see ya,
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.