I've had PHP 4.2.1 running on the same Apache version for quite some time. Well recently I tried to get .phps files working on the server (they never did before). Whenever I would try to open a .phps file, it would ask if I wanted to dl it... But anyway, that isn't the immediate problem I'm having.
Well I decided to get the latest version of PHP. Here's exactly what I did. First I 'uninstalled' PHP and grabbed the 4.2.3 release. I extracted it and renamed php.ini-dist to php.ini and moved it to C:\Windows. I then edited the following lines...
doc_root = "c:\Apache2\htdocs"
extension_dir = "c:\php\sapi"
session.save_path = C:\Windows\Temp
After that I moved the php4ts.dll to C:\Windows\System. Then I renamed php4apache2.dll to php4apache2.so. Finally, I went into http.conf and made sure these lines were correct...
LoadModule php4_module c:/php/sapi/php4apache2.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Now I didn't think I would have any problems. However when I run apache I get this error.
Syntax error on line 173 of C:/Apache2/conf/httpd.conf:
Cannot load C:/PHP/sapi/php4apache2.so into server: A device attached to the system is not functioning.
What am I doing wrong?![]()


... But anyway, that isn't the immediate problem I'm having.


Bookmarks