1. mkdir /backup
2. wget all source files, mysql+apache+php (php5 is not ok for CentOS 3.8)
3. rpm -ivh *.rpm // for mysql setup files
4. yum install perl-DBI // fullfill mysql deps
5. yum install gcc // fulfill apache install deps
6. in apache tar directory
$./configure --prefix=/usr/local/apache2
or (when you have any error related to apr...)
$./configure --enable-so --enable-mods-shared=expires,ssl,headers,http,info,rewrite --with-apr=/backup/httpd-2.2.4/srclib/apr/ --with-apr-util=/backup/httpd-2.2.4/srclib/apr-util/
$ make
$ make install
$ /usr/local/spache2/bin/apachectl start
Refer to http://httpd.apache.org/docs/2.2/install.html for more details
7. extract php source
8. yum install flex // fulfill php compile deps
9. yum install bison // fulfill php comple deps
10. yum install libxml libxml-devel libxml2-devel // fulfill php comple deps
11. ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
12. make
13. make install
14. refer to /php-4.4.6/INSTALL for the rest of configuration
After that, I have Mysql5.0 + Apache 2 + PHP 4 in my server
PHP compile options
// add graphical support
yum install libjpeg-devel
yum install libpng-devel
yum install zlib-devel
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib-dir=usr/share/doc/zlib-1.1.4
yum install libpng-devel
沒有留言:
發佈留言