Easiest Way to Install PHP3 with MySQL support on RHL 6.2
| From: | Neil Zanella | Date: | Sun, 14 Jan 2001 07:58:47 +0000 |
| Subject: | Easiest Way to Install PHP3 with MySQL support on RHL 6.2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34457@lists.php.net to get a copy of this message | ||
Hello,
I thought this might be of interest to some newbies who might want to
enable MySQL support in PHP without having to do anything but execute
some commands as root on their Red Hat Linux 6.2 system. Here they are:
wget ftp://ftp.redhat.com/redhat/redhat-6.2/SRPMS/SRPMS/php-3.0.15-2.src.rpm
rpm -ivh php-3.0.15-2.src.rpm
cd /usr/src/redhat/SPECS
cat php.spec | awk '/configure/ { print $0; print "\t--with-mysql \\" }' >
php.spec.out
mv -f php.spec.out php.spec
rpm -ba php.spec
cd /usr/src/redhat/RPMS/i386
rpm -ivh --force php-3.0.15-2.i386.rpm
rpm -ivh --force php-ldap-3.0.15-2.i386.rpm
rpm -ivh --force php-pgsql-3.0.15-2.i386.rpm
rpm -ivh --force php-imap-3.0.15-2.i386.rpm
rpm -ivh --force php-manual-3.0.15-2.i386.rpm
All done!
Have fun,
-- Neil