RE: (YES! I DID IT!) Anyone got PHP 4.2.1 and Apache 2.0.39 to w ork completely?

From: Date: Wed, 10 Jul 2002 21:12:15 +0000
Subject: RE: (YES! I DID IT!) Anyone got PHP 4.2.1 and Apache 2.0.39 to w ork completely?
Groups: php.install 
Request: Send a blank email to php-install+get-7689@lists.php.net to get a copy of this message
PHP 4.2.1 and Apache 2.0.39 to work Finally! Wow, let me see if I can get this right. Here is what I did: 1) Downloaded and installed the following: Latest STABLE php from snaps.php.net (dated 7/10/02 9 AM) pth-1.4.1.tar.gz from ftp.gnu.org/gnu/pth/ (this 'may' have helped!) 2) reconfigured, apache using: ./configure --prefix=/path/to/apache --with-module=so make clean, make, make install (NOTE: I don't think this was needed, but I wanted clean! Also didn't start it yet.) 3) installed the new STABLE php 4.2.1 and made some changes: In 'path to php'/ext/standard commented out in microtime.c line 31 "#ifedf HAVE_SYS_RESOURCE_H" to "/* #ifedf HAVE_SYS_RESOURCE_H */" NO quotes! and also line 33 "#endif" to "/* #endif */" No Quotes! I don't know what the problem was. I knew it needed the include on line 32. so this just puts the darn thing in! The previous problems in php_functions.c seemed to be fixed, so no change there. 4) config php: run 'make distclean' ./configure --with-mysql --with-zlib --with-apxs2=/usr/local/apache/bin/apxs Note: /usr/local/apache is my path! Yours could be /I/like/grandma/bin/apxs! make clean, make NOTE: I get like 6 warnings about RLIM_INFINITY being redefined during the make. I believe it has to do with different versions of my resource.h. I think this is due to uprading my kernel. Not to worry if you get this. It is just a warning. Has to do with the declaration of the size of it I think. make install 5) back to /usr/local/apache/conf and edit httpd.conf make sure that 'AddType application/x-httpd-php .php' is there IT WASN'T! Rumor says it auto places it. HEH! Also make sure 'LoadModule php4_module modules/libphp4.so' is there. It was. Huh??? Oh well. apachectl start a edit quick helloworld.php open fav web browser, bang! Scream Haleluyah while dancing a jig! People in office look at you funny. Man I hope I save someone some time! -----Original Message----- From: Chris Santerre [mailto:csanterre@MerchantsOverseas.com] Sent: Wednesday, July 10, 2002 12:28 PM To: 'php-install@lists.php.net' Subject: [PHP-INST] Anyone got PHP 4.2.1 and Apache 2.0.39 to work completely? I have been trying for days. I've read just about everything. I'm going to now try the latest stable cvs and making sure that the correct line 93 in php_functions.c is there. I just wanted to know if anyone has had success yet? reading like a squirrel on crack, Chris -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#7689) next »