CVS update: php3
| From: | rasmus | Date: | Sat, 13 Feb 1999 22:18:57 +0000 |
| Subject: | CVS update: php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4077@lists.php.net to get a copy of this message | ||
Date: Saturday February 13, 1999 @ 17:18
Author: rasmus
Update of /repository/php3
In directory asf:/u/temp/cvs-serv6248
Modified Files:
INSTALL.REDHAT
Log Message:
More RedHat notes
Index: php3/INSTALL.REDHAT
diff -c php3/INSTALL.REDHAT:1.2 php3/INSTALL.REDHAT:1.3
*** php3/INSTALL.REDHAT:1.2 Sat Feb 13 11:36:26 1999
--- php3/INSTALL.REDHAT Sat Feb 13 17:18:57 1999
***************
*** 1,4 ****
--- 1,79 ----
Some notes for RedHat 5.x users
+ ===============================
+
+ These instructions assume you want to use pre-built RPM's as much as
+ possible. There is nothing stopping you from grabbing the Apache and
+ PHP tarballs and working completely from sources. Simply follow the
+ instructions in the INSTALL file. But if you like having most things
+ under rpm control, read on.
+
+ The first thing you need to do is upgrade your Apache to at least
+ version 1.3.4. You need the apache-1.3.4 rpm along with the apache-devel
+ RPM. Get them from your favourite RedHatContrib mirror. You will also
+ need the PHP tarball. The PHP rpm available from RedHat is ok if you
+ don't need database support or any of the other PHP add-ons. If you do
+ need to add your own set of features, download the latest PHP tarball
+ and follow the steps below:
+
+ Step 1: Remove old Apache packages, if installed.
+
+ rpm -e apache
+ rpm -e apache-devel
+
+ Step 2: Install new Apache packages
+
+ rpm -i apache-1.3.4-1.i386.rpm
+ rpm -i apache-devel-1.3.4-1.i386.rpm
+
+ Step 3: Determine which PHP extensions you want to use
+
+ ./configure --help
+
+ This will give you a list of all the available options. See
+ the "PHP Extensions" section of this file for specific instructions
+ on how to build in support for each extension.
+
+ Step 4: Build PHP
+
+ A typical configure line would look like this:
+
+ ./configure --with-apxs=/usr/bin/apxs --with-mysql --with-ldap
+
+ Then type:
+
+ make
+ make install
+
+ The 'make install' step should produce something very similar to:
+
+ /usr/bin/apxs -i -a -n php3 libphp3.so
+ cp libphp3.so /usr/lib/apache/libphp3.so
+ chmod 755 /usr/lib/apache/libphp3.so
+ [activating module `php3' in /etc/httpd/conf/httpd.conf]
+
+ At this point you just need to tell your server to restart.
+
+ /etc/rc.d/init.d/httpd restart
+
+ Step 5: Test your setup
+
+ Create a file in your document root directory. I usually call
+ it info.php3 and in it put this single line:
+
+ <?phpinfo()?>
+
+ Then load it up in your browser:
+
+ http://your.machine/info.php3
+
+ You should see a nice summary page showing all sorts of information
+ about your setup. You probably shouldn't leave this file around on
+ a production server, but for debugging and general info during
+ development, it is very handy.
+
+
+ PHP Extensions
+ ==============
In all cases, it is a good idea to remove the 'config.cache' when
trying to reconfigure PHP to include new options.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net