Click to See Complete Forum and Search --> : Problems running Win32 Apache and PHP


Anon
04-15-2002, 05:31 AM
Hi,

I have:
PHP 4.2.0 RC3
Apache 2.0.35
Windoze 98

I am having trouble getting PHP to run on this version of apache as a module.

I have PHP 4.2.0RC3 and Apache 1.3.23 working perfectly together, but when I try to start up PHP as a module within Apache, I get:

Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/Apache2/conf/httpd.conf:
Cannot load C:/Program Files/Apache Group/Apache2/Apache2/modules/php4apache.dll into server: One of the library files needed to run this application cannot be found.

Now I am aware of this problem in earlier version of PHP and Apache, but usually I have been able to solve them by moving dll's around and adjusting paths, but no matter what I do with this version and no matter which dlls or paths I set, I cannot get apache to start.

As a cgi version it works perfectly, but I would prefer to use it as an apache module.

Can you help?

Cheers

Mike.

Anon
04-15-2002, 06:01 AM
See the following message, it should solve your problems

http://www.phpbuilder.com/forum/read.php3?num=3&id=110337&thread=110299

Ron

Anon
04-15-2002, 06:18 PM
I had a similar problem. You need to use the php module in the experimental directory.

Anon
04-16-2002, 09:08 AM
Mike,

May I know how you set PHP to run as a CGI version? I tried that but my server just tells me "Object Not Found" whenever I try to access a php page.

Thanks alot.

Anon
04-16-2002, 12:22 PM
Use the apache2filter.dll in the experimental directory instead of php4apache.dll in the sapi directory.

It'll work but it's not for production purpose.