Jump to content

Archived

This topic is now archived and is closed to further replies.

MetalCharms

Installation Error. phP5 to Apache 2

Recommended Posts

running php 5.1.1 and apache 2.0.55

Trying to install php onto apache.

 

Added this to httpd.conf for Apache:

 

"LoadModule php5_module "e:/php/php5ts.dll"

AddType application/x-httpd-php.php

 

PHPIniDir "e:/php"

 

(The "e" drive being our main HDD)

 

Error message :

"Can't locate API module structure 'php5_module' in file E:/PHP/php5ts.dll : No error

 

1) What is wrong?

2) What can i do?

 

Thanks phpfreaks forams!

Share this post


Link to post
Share on other sites

Your are using the wrong dll file for apache module you should use this for loading php as the apache module.

LoadModule php5_module "e:/php/php5apache2.dll"

Share this post


Link to post
Share on other sites

Well the folowing line:

LoadModule php5_module "e:/php/php5apache2.dll"

is what you are suppose to use in order to use PHP as an Apache Module. No other file. Try taking the quotes of around your module line like so:

LoadModule php5_module E:/php/php5apache2.dll

 

Also you need to move php5ts.dll and your php.ini file to C:\WINDOWS\ folder.

 

So this line:

PHPIniDir "e:/php"

gets changed to:

PHPIniDir "E:\WINDOWS\"

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.