PHP4 to PHP5 on Windows platform

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
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

PHP4 to PHP5 on Windows platform

Post by spacebiscuit »

Hi,

I installed Apache 1.3.27 and PHP4 from download that had PHP and Perl pre-configured. It works great and I am very happy with it.

However I would like to upgrade to PHP version 5. I read the instructions online but they all seem to be for the linux platform and do not apply to these pre-configured installs.

Anyway I got around the problem by doing the following:

I downloaded the php5 zip. I then copied:

- file php5ts.dll into the Apache root directory
- file phpapache5.dll into the apache/modules directory

I then made the following changes to the apache httpd.conf file, in each case changing the 4 to a 5.

LoadFile "d:/software/Apache/php5ts.dll"
LoadModule php5_module modules/php5apache.dll
AddModule mod_php5.c

Now when I run Apache I get a warning messgae:

Loaded DSO modules/php5apache.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)

However nothing has crashed and when I run the phpinfo it says I am running version 5.

My questions:

- What does this warning mean, what is API and EAPI?
- Do I need to fix it, if so how do I do it?
- Is it difficult to upgrade to php version 5 the correct way?

Thanks in advance.

Rob.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

look for a post by LiLpunkSkateR as he has alink to setting up php5 on a windows machine.
If I remeber right there are a few other subtle changes that need to be made in your httpd.conf file. read the install instructions carefully that comes with the php files. Download the not install wizard and read the install.txt as it will help.
Post Reply