Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when installing PHP5 on Apache2 1

Status
Not open for further replies.

aas1611

Programmer
Dec 14, 2001
184
DE
Hallo,

I've installed Apache2.2 on PHP5 (completely new installation, not upgrading). Now a problem occurs when I tried to add PHP5 to this Apache.

I have added the following commands in httpd.conf:

LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps

But when I start the Apache, it says:
cannot load C:/php/php5apache2.dll into server: the specified module cannot be found

even though, the file exists in this directory.

What is wrong?

(If it matters, I have copied php.ini into c:\windows and php5ts.dll into Apache2.2/bin directory, as instructed).

A clue please...

Andre
 
as a matter of course i always add my php directory into my environment path (note: restart afterwards). i do not copy any php files into any other directory.

for apache 2.2, php.net reports that you need php5apache2_2.dll which is present in php distro's as of 5.2.0

i also make sure that php.ini stays in the php directory and, when using apache, set a directive in httpd.conf as follows. i hate putting stuff in the /windows directory: gets lost too easily in the other junk.

Code:
PHPIniDir "C:/php"
 
Hey,
thanks..
I installed the 5.2 version now it works. I also follow your suggestion with PHPIniDir.

One more question, though:
how do you setup the environment path, so that you don't have to copy any php files into any other directory? Especially for the php5ts.dll (the instruction says I have to copy it into bin directory in Apache).

Thanks!

Andre
 
right click on my computer.
properties
advanced
environment variables
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top