note 23160 added to install.apache
| From: | gorilladf at hotmail dot com | Date: | Wed, 10 Jul 2002 21:10:42 +0000 |
| Subject: | note 23160 added to install.apache | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32863@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!
--
http://www.php.net/manual/en/install.apache.php
http://master.php.net/manage/user-notes.php?action=edit+23160
http://master.php.net/manage/user-notes.php?action=delete+23160
http://master.php.net/manage/user-notes.php?action=reject+23160