Page 1 of 1

PHP4 to PHP5 on Windows platform

Posted: Wed Apr 20, 2005 4:24 pm
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.

Posted: Thu Apr 21, 2005 5:00 am
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.