Jump to content


Photo

Installation Error. phP5 to Apache 2


  • Please log in to reply
3 replies to this topic

#1 MetalCharms

MetalCharms
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 December 2005 - 05:57 PM

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!

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 14 December 2005 - 05:54 PM

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"


#3 MetalCharms

MetalCharms
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 December 2005 - 10:44 PM

But we don't have that filetype
Our file IS php5_module

but I tried your suggestion, and it didn't work

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 19 December 2005 - 07:50 PM

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\"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users