• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Installing PHP into Apache2

bluestrobe

Platinum Member
Are there any good ?how-to? guides on how to install php into Apache2? The php install guide covers 5 different types of installations in one file going back and forth between them like crazy, makes it confusing. I've found about 4 different websites with how-to guides but they all have different instructions which worry me. At this point I just want to be able to use php scripts in web pages on my Apache2 server. This is also on a Win2K Server platform.
 
I have run one of those "all-in-one" packages. Actually it was the apache fiends one. It is impossible to update any of the included software without having to update the whole package. I also don't want to install and manage software that I will never use either.
 
This works for me:

cd /usr/ports/lang/php5
sudo make install clean

But then I'm not trying to install unix software on windows 😛
 
What's the problem exactly? I just set up Apache 2.2 and PHP5 in an XP VM and it works OK for me. I just followed the steps in the packages in order...

1) Installed Apache 2.2. Checked to make sure it works. (You've done this already, I think.)

2) Downloaded most recent PHP5. Followed the steps under "Manual Installation" in install.txt, then the steps under "Apache 2.0.x on Microsoft Windows".

3) Downloaded the Apache 2.2 PHP dll from apachelounge.com. Followed the directions in the included README.

And that was it. Easier on Linux or Unix I'll grant you, but all the steps are there. Just take it one piece at a time. If you don't understand a particular instruction, ask away...
 
Dumb question as I went off of a suggestion but what is the difference between the php4.x and php5.x exactly? I tried to google it and never found any information. PHP noob here.

Also I followed the link I posted on my previous post and got to the end where I inserted:

LoadModule php4_module ?c:/php/sapi/php4apache2.dll?

with the correct path and tried to restart apache2. It came up with following error message. I followed everything to the letter and haven't been able to get past this step. I'll go through the steps again when I get more time. Or is there an easier way of doing this?
 
What did you use to edit httpd.conf? Looks like you've got some funky characters in there surrounding the path.
 
Originally posted by: bluestrobe
Dumb question as I went off of a suggestion but what is the difference between the php4.x and php5.x exactly?
Just different versions. The differences aren't particularly significant if you're just starting out.
It came up with following error message.
As kamper said, it looks like you inserted bogus characters into the httpd.conf file.

Also, are you using Apache 2.0.x or Apache 2.2.x? If it's the latter, you'll need to download the modules from apachelounge.com since the regular PHP modules are built for 2.0.x.
 
Right now I'm using Apache 2.0.55. I used the windows txt editor to edit the httpd.conf file.

I took out the quotations seeing that this was the only line that had them and now shes working like a charm. Thanks for the help. I'm sure I'll have some questions in the future but this helped me out a lot.
 
Back
Top