MetalCharms Posted December 13, 2005 Share Posted December 13, 2005 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! Quote Link to comment https://forums.phpfreaks.com/topic/3039-installation-error-php5-to-apache-2/ Share on other sites More sharing options...
wildteen88 Posted December 14, 2005 Share Posted December 14, 2005 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" Quote Link to comment https://forums.phpfreaks.com/topic/3039-installation-error-php5-to-apache-2/#findComment-10212 Share on other sites More sharing options...
MetalCharms Posted December 17, 2005 Author Share Posted December 17, 2005 But we don't have that filetype Our file IS php5_module but I tried your suggestion, and it didn't work Quote Link to comment https://forums.phpfreaks.com/topic/3039-installation-error-php5-to-apache-2/#findComment-10248 Share on other sites More sharing options...
wildteen88 Posted December 19, 2005 Share Posted December 19, 2005 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\" Quote Link to comment https://forums.phpfreaks.com/topic/3039-installation-error-php5-to-apache-2/#findComment-10266 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.