mysql+httpd+gd+php+zend
时间:2005-04-29 来源:SAS
mysql+httpd+gd+php+zend的安装
安装mysql
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
修改MYSQL口令
#如果是5。0以上版本的mysqlpassword要修改为old_password(如果PHP的版本较低)
mysql>set password for root@localhost=password('123456');
修改mysql 连接权限
GRANT ALL PRIVILEGES ON *.* TO [email protected] IDENTIFIED BY '1123456' WITH GRANT OPTION;
cp /etc/my.cnf /var/lib/my.cnf
安装httpd
tar zxvf httpd-2.0.52.tar.gz
cd httpd-2.0.52
./configure --prefix=/var/server/apache --enable-module=so --enable-shared=max --enable-so
make
make install
cd ..
安装libjpeg
http://freeware.sgi.com/source/libjpeg/
tar zxvf libjpeg-6b.tar.gz
cd jpeg-6b
mkdir -p /usr/man/man1
./configure --enable-static --enable-shared --prefix=/usr
make
make install
安装linpng
http://www.libpng.org/pub/png/libpng.html
tar xvf libpng-1.2.5.tar
cd libpng-1.2.5
cp scripts/makefile.std makefile
make
make install
安装GD
http://www.boutell.com/gd/http/
tar zxvf gd-2.0.28.tar.gz
cd gd-2.0.28
make
make install
安装PHP
tar zxvf php-4.3.9.tar.gz
cd php-4.3.9
./configure --with-mysql --with-apxs2=/var/server/apache/bin/apxs --with-gd --with-zlib --enable-versioning --with-jpeg-dir=/var/server --disable-debug --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini
cd ..
在htttpd.conf加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
加入默认首页
DirectoryIndex index.php
加入默认中文
AddDefaultCharset gb2312
安装zend
http://www.zend.com/store/getfreefile.php?pid=13&zbid=816
tar zxvf ZendOptimizer-2.5.5-linux-glibc21-i386.tar.gz
cd ZendOptimizer-2.5.5-linux-glibc21-i386
./install.sh