/    Sign up×
Community /Pin to ProfileBookmark

upgrading from PHP 4.3.4 to PHP 5.0

Hello

I am using PHP 4.3.4 on a Windows platform.
After using it successfully I have decided to switch to PHP 5.0

After unzipping the directory and updating php.ini, I switch to configuring my Apache Web server to work with the new PHP installation.

I updated httpd.conf to have the following lines:
LoadModule php5_module c:/php/sapi/php5apache.dll
AddModule mod_php5.c
AddType application/x-httpd-php .php

several things are strange:
First, the PHP5.0 installation doesn’t have a sapi directory and all the apache dll files were located in the main php directory (c:php)

Second, when I restarted Apache, I got the following error:
Cannot load c:/php/sapi/php5apache.dll into server

The error continued even after I fixed the line in httpd.conf to reflect the actual location of the dll files:
LoadModule php5_module c:/php/php5apache.dll

Following the advice in install.txt, I downloaded the strace program and checked exactly what dll files Apache wasn’t finding.
It seemed that it couldn’t find php5ts.dll (this was backed up in install.txt as well).
It seemed that it was searching for that dll in:
“??C:Program FilesApache GroupApache2binphp5ts.dll”
“??C:phpphp5ts.dll”

The same errors continued to appear even after making sure that php5ts.dll was indeed found in:
C:Program FilesApache GroupApache2bin
and in
C:php

What am I missing?
what is that ?? at the beginning of the paths that Apache was searching at?

please help

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@Daniel_TApr 13.2004 — Instead of the SAPI directory, put them in c:/php. And as for the other error(s), remove your AddModule line in httpd.conf. PHP 5 won't work with the AddModule line. Also, what version of Apache do you have? If you have Apache 2, you should be loading php5apache2.dll, rather than php5apache.dll. Hope this helps,

-Dan
Copy linkTweet thisAlerts:
@davidklonskiauthorApr 13.2004 — thanks for the help.

you were right, I needed to load php5apache2.dll and not php5apache.dll

that was the problem
Copy linkTweet thisAlerts:
@Daniel_TApr 13.2004 — Ok, glad you got it workin!
×

Success!

Help @davidklonski spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...