• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

mysql+httpd+gd+php+zend

发布: 2007-7-04 17:55 | 作者: admin | 来源:  网友评论 | 查看: 36次 | 进入软件测试论坛讨论

领测软件测试网

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口令
mysql>set password for root@localhost=password('mabin');

修改mysql 连接权限
GRANT ALL PRIVILEGES ON *.* TO root@192.168.1.4 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

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网