Server running Apache 2.2.2 - Setting Up PHP

jbrown456

New Member
Hello all,
I am having this problem with setting up PHP on my webserver running Apache 2.2.2. Whenever I install php (I am doing it manually from the zip files found on php.net), and then add it to the httpd.conf file in Apache, Apache won't start, there is an error. I have tried many different versions on PHP and nothing will work.

I am not willing to change the version of Apache I am running as I have already configured it and setup some other ad-ons with it. Everything will run fine before I put in PHP.

So, has anyone installed PHP on Apache 2.2.2 and could help me out?

I really need help here,
Thanks a lot,
Jbrown456
 
Ok, I have PHP installed and running with apache, now the problem is whenever i go to a .php file it comes up with a prompt to download the .php file. Anyone know whats going on?
 
You have to tell Apache to parse php files. Instructions vary depending on if you want PHP to be run as a module (mod_php) or as CGI. Obviously the former is recommended due to speed. The PHP manual has all the info you need.

Alternatively, you can download a package like WAMP which will install Apache, MySQL and PHP all in one go. It's all pre-configured to work right off the bat, and you can still tweak config files so it's just as though you installed them all separately by hand.
 
Back
Top