In RedHat9, When you configure APACHE2.0.50 + PHP5 + MYSQL4.0.20 + GD, the installation steps are only a little different from those of PHP4. If you have installed PHP or apache rpm or a lower version on your machine. Delete the file first. The GCC server must have it. Otherwise, nothing can be done. you can use gcc-v to check whether GCC is installed. # gcc-vReadingspecsfrom/usr/lib/gcc-lib/i386-
Configure APACHE2.0.50 + PHP5 + MYSQL4.0.20 + GD library in RedHat 9
In fact, the installation steps are only a little different from those of PHP4.
If the RPM or earlier version of PHP or APACHE is installed on your machine. Delete first
First, you must have GCC on the server. Otherwise, you cannot do anything. You can use gcc-v to check whether GCC is installed,
# Gcc-v
Readingspecs from/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured :.. /configure -- prefix =/usr -- mandir =/usr/share/man -- infodir =/usr/share/info -- enable-shared -- enable-threads = posix -- disable-checking -- with-system-zlib -- enable-_ cxa_atexit -- host = i386-redhat-linux
Thread model: posix
Gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
The above similar information indicates that GCC already exists,
If you do not have one, install the CD first. Please download the following:
Httpd-2.0.50.tar.gz
MySQL-client-4.0.20-0.i386.rpm
MySQL-server-4.0.20-0.i386.rpm
Php-5.0.0.tar.gz
ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz
Gd-2.0.28.tar.gz
Libxml2-2.5.11.tar.gz
Zlib-1.2.1.tar.gz
Jpegsrc.v6b.tar.gz
Libpng-1.2.5.tar.gz
Xpm-3.4k-2.i386.rpm
Gd-devel-1.8.4-11.i386.rpm
Maybe you don't need so many computers, but you 'd better download them all ..
I put these files in the soft directory of my FTP. If you can't see them by clicking <FTP> on the left, the password may have changed, please refer to the download information in my forum signature. However,
You may see a new version of the above software is downloaded when you see this post.
Start installation >>>>>>>>>>>>>>>>>>>>>>>>
First install the MYSQL server
# Rpm-ivh MySQL-server-4.0.20-0.i386.rpm
Then the client
# Rpm-ivh MySQL-client-4.0.20-0.i386.rpm
Try again after installation
# Mysql
Welcome to the MySQL monitor. Commands end with; or g.
Your MySQL connection id is 27651 to server version: 4.0.20-standard
Type 'help; 'or 'H' for help. Type 'C' to clear the buffer.
Description OK
Change the mysql password.
Install basic GD library package
# Rpm-ivh gd-devel-1.8.4-11.i386.rpm
Install XPM support
# Rpm-ivhxpm-3.4k-2.i386.rpm
Install libxml2 (remember that PHP5 only supports libxml2-2.5.10 and later versions)
# Tar zxvf libxml2-2.5.11.tar.gz
# Cd libxml2-2.5.11
#./Configure
# Make
# Make install
Start to install GD library support
-------------------------------------------------------
ZLIB
# Tar zxvf zlib-1.2.1.tar.gz
# Cd zlib-1.2.1
#./Configure
# Make
# Make install
JPEGSRC
# Tar zxvf restart src.v6b.tar.gz
# Cd connector SRC. v6b
#./Configure
# Make
# Make install-lib
# Make install
LIBPNG
# Tar zxvf libpng-1.2.5.tar.gz
# Cd libpng-1.2.5
# Cp scripts/makefile. linux Makefile
#./Configure
# Make
# Make install-headers
# Make install
Last is GD2 .*
Gd-2.0.28
# Tar zxvf gd-2.0.28.tar.gz
# Cd gd-2.0.28
#./Configure -- with-png =/usr/local -- with-jpeg =/usr/local -- with-freetype =/usr
# Make
# Make install