It’s been a long time since I installed PHP or Apache, maybe 10 years. Now I downloaded PHP5, but I cant get it to work on my Apache 1.335 version. I dont want to change my Apache version because, I tried, but I just fail at installing, I have tried numerous times in the past too, but somehow I just fail at it every single time. The only version I have got working was 1.335, so I’ve got sticked in it for many years. I tried to install newest apache maybe a month ago, but I just failed again. Took me 3 hours and… failure. I browsed the whole internet to see guides but they all were broken one way or another.
So, now when I put these lines in the end of “httpd.conf” file in Apache:
ScriptAlias /php/ "d:/php543/"
Action application/x-httpd-php "/php543/php.exe"
LoadModule php5_module "d:/php543/php5apache2_2.dll" #<-- line 1054
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
It says when I execute Apache:
Syntax error on line 1054 of d:/apache1335/conf/httpd.conf:
Cannot load d:/php543/php5apache2_2.dll into server: (126) file not found
But the file exists. I had copied php5ts.dll into “windows/system32” folder and php.ini into “windows” folder.
I have tried “EasyPHP” in the past, but I really hated that thing, it just made things harder. I also have tried newer Apache versions in the past, but the ones I got working, had something annoying in them, cant remember exactly what but why on earth I would have sticked with ancient version if the newer were fine?
You are trying to load an apache 2.2 module into apache 1. The probability of success on that operation is pretty low.
I would recommend you upgrade, apache 1.335 probably has a load of bugs as well. If you can’t get newer versions working, it is unlikely you’ll get an older version working as not much has changed in the install procedures.