ITPub博客

首页 > Linux操作系统 > Linux操作系统 > GD库加PHP加速软件eAccelerator加Zend的安装视频教程

GD库加PHP加速软件eAccelerator加Zend的安装视频教程

原创 Linux操作系统 作者:hit-2075 时间:2011-10-22 16:51:02 0 删除 编辑
--初始环境准备
--操作系统准备
centOS5.1
--相关软件准备
ls /soft
eaccelerator-0.9.5.2.tar.bz2
mysql-5.0.51.tar.gz
gd-2.0.35.tar.gz
php-5.2.5.tar.gz
httpd-2.2.8.tar.gz
ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gz
--系统环境准备
bzip2-devel
zlib-devel
libjpeg-devel
libpng-devel
libtiff-devel
freetype-devel
openssl-devel
libxml2-devel
gettext-devel
--系统目录准备
ls /web
appache
eaccelerator
gd
mysql
php
zend
--安装GD2
cd /soft/
tar xzvf gd-2.0.35.tar.gz
cd gd-2.0.35
--配置
./configure --prefix=/web/gd
--编译
make
--安装
make install


--安装appache软件,在红帽linux5.1中
# tar zxvf httpd-2.2.6.tar.gz
# cd http-2.2.6
--配置
--with-ssl传输的时候是加密的
--so动态加载库
./configure --prefix=/web/apache -with-ssl --enable-ssl --enable-so --enable-rewrite --disable-cgid --disable-cgi
--编译
#make
--安装
#make install

--设置随机启动
cd /web/apache
cp bin/apachectl /etc/rc.d/init.d/httpd
vi /etc/rc.d/init.d/httpd

#chkconfig:2345 10 90
#description:Activates/Deactivates Apache Web Server

chkconfig --add httpd
chkconfig httpd on
service httpd start

--mysql5的安装
./configure --prefix=/web/mysql -with-comment=Source --with-server-suffix=-enterprise-gpl --with-mysqld-user=mysql --without--debug --with-socket-path=/myweb/mysql/var/mysqld.sock --with-big-tables --with-charset=utf8 --with-collation=utf8_general_ci --with-extra-charsets=all --with-pthread --enable-static --enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --without-innodb --without-ndb-debug --without-isam --enable-local-infile --with-readline --with-raid

groupadd mysql
useradd -g mysql mysql
make
make install
cd /web/mysql
chown -R mysql .
chgrp -R mysql .
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
cp share/mysql/my-medium.cnf /etc/my.cnf
cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld
chmod 755 /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 3 mysqld on
/etc/rc.d/init.d/mysqld start
servcie mysqld start
bin/mysqladmiin -u root password 123456

--php5的安装
tar zxvf php-5.2.5.tar.gz
cd php-5.2.5
./configure --prefix=/web/php --with-apxs2=/web/apache/bin/apxs --with-zlib-dir --with-bz2 --with-libxml-dir --with-gd=/web/gd --enable-gd native-ttf --enable-gd-jis-conv --with-freetype-dir --with-ipeg-dir --with-png-dir --with-ttf --enable-mbstrin --with-mysql=/web/mysql --with-config-file-path=/etc --with-iconv --disable-ipv6 --enable-static --enable-zend-multibyte --enable-inline-optimization --enable-zend-multibyte --enable-sockets --enable-soap --with-openssl --with-gettext --enable-ftp

make
make install
cp php.ini-recommended /etc/php.ini

--整合apache与php
--找到DocumentRoot和Directory将它的配置文件改为自己的服务目录
vi /usr/local/apache2/conf/httpd.conf
DocumentRoot "/web/www"
--找到AddType application/x-gizp.gz.tgz在其下添加如下内容:
AddType application/x-httpd-php.php
--找到(设置web默认文件)
DirectoryIndex index.php index.html index.htm
--允许apache rewrite
AllowOverride all
--关闭selinux
setup
防火墙配置
禁用
确定
退出

mkdir /web/www
service httpd start
--保存为test.php在/web/www下
phpinfo();
?>
service httpd stop
service httpd start

--安装Zend
tar zxvf ZendOptimizer-3.3.01-linux-glibc21-i386.tar.gz
cd ZendOptimizer...
./install.sh
ok
exit
yes
/www/zend
/etc
yes
/www/apache/bin/apachectl
ok
ok
yes
ok

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15681893/viewspace-709533/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-09-18

  • 博文量
    28
  • 访问量
    44382