note 8322 added to Installation
| From: | solutions at webinova dot com | Date: | Wed, 06 Sep 2000 07:06:19 +0000 |
| Subject: | note 8322 added to Installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4222@lists.php.net to get a copy of this message | ||
In my Red Hat 6.2 , I renamed the
apache directory: Download latests of Apache and PHP4 into the same directory and
Followed procedure given in this site
( line by line):
It worked very well.
I repeat it here again:
1. gunzip apache_1.3.x.tar.gz2. tar xvf apache_1.3.x.tar
3. gunzip php-x.x.x.tar.gz4. tar xvf php-x.x.x.tar5. cd apache_1.3.x
6. ./configure --prefix=/www7. cd ../php-x.x.x
8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9. make10. make install11. cd ../apache_1.3.x
12. for PHP 3: ./configure --activate-module=src/modules/php3/libphp3.a
for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a13. make
14. make install
Instead of this step you may prefer to simply copy the httpd binary
overtop of your existing binary. Make sure you shut down your
server first though.15. cd ../php-x.x.x
16. for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini
for PHP 4: cp php.ini-dist /usr/local/lib/php.ini
You can edit your .ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 8.
17. Edit your httpd.conf or srm.conf file and add:
For PHP 3: AddType application/x-httpd-php3 .php3
For PHP 4: AddType application/x-httpd-php .php
http://www.php.net/manual/installation.php