install web server on the linux

1.install zlib

shell>tar zxvf zlib-1.2.3.tar.gz
shell>cd zlib-1.2.3
shell>./configure
shell>make
shell>make install

2.install libpng

shell>tar zxvf libpng-1.2.10.tar.tar
shell>cd libpng-1.2.10
shell>cd scripts/
shell>mv makefile.linux ../makefile
shell>cd ..
shell>make
shell>make install
Notice,This make file is not configure 

3.install freetype

shell>tar zxvf freetype-2.2.1.tar.gz
shell>cd freetype-2.2.1
shell>./configure
shell>make
shell>make install

4.install Jpeg

shell>tar zxvf jpegsrc.v6b.tar.gz
shell>cd jpeg-6b/
shell>./configure --enable-shared
shell>make
shell>make test
shell>make install
Notice,This configure must with --enable-shared param and will creat share lib with out this param

5.install GD

shell>tar zxvf gd-2.0.33.tar.gz
shell>cd gd-2.0.33
shell>./configure --with-png --with-freetype --with-jpeg
shell>make install

6.install apache
shell>tar zxvf httpd-2.0.58.tar.gz
shell>cd httpd-2.0.58
shell>./configure --prefix=/usr/local/apache2 --enable-cgi --enable-ssl --enable-so --enable-rewrite --enable-mime-magic --enable-expires --enable-headers --enable-info=shared --enable-auth-dbm=shared --enable-isapi=shared --enable-file-cache=shared --enable-charset-lite=shared --enable-cache=shared --enable-disk-cache=shared --enable-mem-cache=shared --enable-mods-shared=all
shell>make
shell>make install

7 install perl-DBI-1.40-5.i386.rpm
shell>rpm -ihv perl-DBI-1.40-5.i386.rpm
This package is for mysql if you lost install this package mysql can not runing well

8.install mysql
shell>tar -zxvf mysql-standard-5.0.19-linux-i686.tar.gz
shell>cp mysql-standard-5.0.19-linux-i686 -rfv /usr/local/mysql
shell>cd /usr/local/mysql/
shell>groupadd mysql
shell>useradd -g mysql mysql
shell>scripts/mysql_install_db --user=mysql
shell>./support-files/mysql.server start

9. install libxml
shell>tar zxvf libxml2-2.6.24.tar.gz
shell>cd libxml2-2.6.24.tar.gz
shell>configure
shell>make
shell>make install

10 install ncurses
shell>tar zxvf ncurses-5.4.tar.gz
shell>cd ncurses-5.4
shell>configure
shell>make
shell>make install

11 install libiconv
shell>tar -zxvf libiconv-1.9.1.tar.gz
shell>cd libiconv-1.9.1
shell>./configure
shell>make
shell>make install

12 install libmcrypt
shell>tar zxvf libmcrypt-2.5.7.tar.gz
shell>cd libmcrypt-2.5.7
shell>./configure
shell>make
shell>make install

13 install mhash
shell>tar -zxvf mhash-0.9.7.tar.gz
shell>cd mhash-0.9.7
shell>make
shell>make install

14 install mcrypt
shell>tar zxvf mcrypt-2.6.4.tar.gz
shell>cd mcrypt-2.6.4
shell>LD_LIBRARY_PATH=/usr/local/lib ./configure
shell>make
shell>make install
attetion Modify LD_LIBRARY_PATH varible with currect path will compile exprot some error if not do this

15. install PHP
shell>tar zxvf php.5.1.4.tar.gz
shell>cd php.5.1.4
shell>./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/lib --disable-debug --enable-inline-optimization --enable-memory-limit --enable-bcmath=shared --enable-calendar=shared --with-pic --with-openssl=shared --with-zlib=shared --with-zlib-dir=/usr --with-bz2=shared --with-curl=shared --with-curlwrappers --enable-ctype --enable-dba=shared --with-gdbm=shared --enable-dbase --with-db --with-dbm --with-db4=shared --with-dom-xslt=/usr --enable-exif=shared --enable-ftp=shared --with-openssl-dir=/usr --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf=/usr/local --with-freetype-dir=/usr --enable-gd-native-ttf --with-gettext=shared --with-gmp=shared --with-kerberos --with-ldap=shared --enable-mcal=shared --with-mysql=/usr/local/mysql --with-ncurses=shared --enable-posix --enable-shmop=shared --with-kerberos=/usr --enable-ucd-snmp-hack --enable-sockets --enable-session --enable-wddx=shared --enable-xml --with-xmlrpc=shared --with-iconv=/usr/local/lib --with-libxml-dir=/usr/local --enable-xslt=shared --with-xslt-sablot=/usr --with-expat-dir=/usr --enable-yp=shared --enable-mbstring=share --with-mhash=/usr/local/lib --with-mcrypt --enable-maintainer-zts --enable-zend-multibyte --enable-track-vars --enable-discard-path --enable-sigchild --enable-libgcc --enable-filepro --with-pdflib=/usr/local --with-tiff-dir=/usr --with-gnu-ld --enable-soap --with-sablot-js=/usr--enable-sqlite-utf8 --enable-sysvmsg --enable-sysvsem=shared --enable-sysvshm=shared
shell>make
shell>make install

shell>vi /usr/local/conf/ssl.conf
find:DocumentRoot /usr/local/apache2/hdoc
modify:
DocumentRoot /home/vhosts/05133_com/www

16. install  ZendOptimizer
shell>tar zxvf ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz
shell>./install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值