ID: 18129 Comment by: jakawan at jakawan dot com Reported By: erik at antwerpes dot de Status: Closed Bug Type: Documentation problem Operating System: Win32 PHP Version: 4.3.0-dev New Comment:
Can somebody help please? I'm really desperate now. I have read the install.txt, support forum about 50 times. I recompiled back and forth about 10 times. Download the latest PHP from both PHP.net and http://snaps.php.net. I still get the same error below: httpd: module "/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache (found 20020628, need 20020903). Please contact the vendor for the correct version. Here is my Apache and PHP version: [EMAIL PROTECTED] etc]# apachectl -v Server version: Apache/2.0.50 Server built: Aug 24 2004 16:21:47 [EMAIL PROTECTED] etc]# php -v PHP 5.0.2-dev (cli) (built: Aug 24 2004 10:40:57) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.2-dev, Copyright (c) 1998-2004 Zend Technologies When I compile, I only use the basic switches: ./configure --prefix=/usr/local/apache2 then do make & make install for PHP, I follow the INSTALL document: ./configure --with-apxs=/www/bin/apxs (i couldn't compile with mysql b/c php5 does not bundle with mysql module). Any great advice would be appriciated. Thanks in advance. Jak Previous Comments: ------------------------------------------------------------------------ [2003-06-18 00:19:51] iswita_trivedi at hotmail dot com hi! blalond , was rather hopeful that your tips would work . followed your instructions to the letter. I'm working on Win 2000.Installed Apache +PHP as suggested by u, but on Starting the Server it shows the foll error: System cannot find the file specified: No installed service named "Apache2". Any tips will be welcome!!!! ------------------------------------------------------------------------ [2003-04-30 16:38:37] [EMAIL PROTECTED] Mike, the current docs mention all this, what's the problem? ------------------------------------------------------------------------ [2003-04-30 16:32:34] [EMAIL PROTECTED] In future, don't ask support questions here -- http://php.net/support ------------------------------------------------------------------------ [2003-04-30 16:30:34] mike at yahoo dot com Ok, I created a text file in my htdocs <dir> to see if Apache was recognizing .php files. Called it phptest.php and inserted only the following... <? phpinfo(); ?> This is what is specified on a page I used as my instruction set for installing PHP to integrate with Apache. Here it is... http://www.zdnet.com.au/builder/architect/sdi/story/0,2000035062,20273988,00.htm No dice. Did not work. Next I copied the php4ts.dll file to the Apache/bin directory. Still no go. Finally added the line "AddModule mod_php4.c" to the AddModule section of the Apache http.conf file. Bingo! I typed in the url http://<MyDnsName>/phptest.php and got it to bring up the page. Seems like it is running now. Good luck! ------------------------------------------------------------------------ [2003-04-30 15:39:26] mike at yahoo dot com I read every single post on this board and tried every suggestion and several desperate measures of my own. Even tried the registry trick that was suggested on one of the posts by a fellow XP user. No cigar. None of the suggestions aided me in resolving the issue that leads to the error we are all trying to eliminate; "Cannot load c:\php\sapi\php4apache2.dll into server". I am running Windows XP, Apache 2.0.43 and Php 4.3.0. Now, suppossedly php4apache.dll should NOT work with Apache 2.x. That is what php4apache2.dll was written for. Guess what, I tried it and it worked for me. Is it working as it should? That is another story. I guess I'll find out soon enough. So, bottom line...do what the guy in the [October 23rd 2002 8:52 pm] post says if you have XP, and then try specifying the folowing in the Apache conf file... LoadModule php4_module x:\php\sapi\php4apache.dll AddType application/x-httpd-php .php .php3 .php4 .phtml May or may not work for you. To say this software is poorly documented and experimental is an understatement! Cheers ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18129 -- Edit this bug report at http://bugs.php.net/?id=18129&edit=1