饿虎岗资源网 Design By www.oxmxm.com
安装zlib
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr/local/zlib2
make
make install
安装libpng
tar zxvf libpng-1.2.10.tar.gz
cd libpng-1.2.10
./configure --prefix=/usr/local/libpng
make
make install
安装freetype
tar zxvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/usr/local/freetype
make
make install
安装Jpeg
mkdir /usr/local/jpeg6
mkdir /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/include
mkdir /usr/local/jpeg6/man
mkdir /usr/local/jpeg6/man/man1
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=/usr/local/jpeg6 --enable-shared
make
make install
安装GD
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure --prefix=/usr/local/gd2 --with-zlib=/usr/local/zlib2/ --with-png=/usr/local/libpng/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/
make
(在make时可能会是出现以下错误:
cd . && /bin/sh /root/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
cd . && /bin/sh /root/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /root/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
把报错信息“configure.ac:64: error: possibly undefined macro: AM_ICONV”拿到google里搜索,得到“But you need to have gettext”没有gettext这个包。
然后直接运行:yum install gettext 在做make 就好了[解决方法是在:把warning: macro `AM_ICONV' not found in library 复制到google中找到这个地址http://sery.blog.51cto.com/10037/50892]
)
安装mysql
groupadd mysql // 建立mysql组
useradd mysql -g mysql //建立mysql用户并且加入到mysql组中
tar zxvf mysql-5.0.16.tar.gz //解压缩
cd mysql-5.0.16 //进入解开包的目录
./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extra-charsets=gbk,gb2312 --enable-thread-safe-client
make
make install
cd scripts //进入到脚本目录下
./mysql_install_db --user=mysql //安装库文件,应该会提示说OK!的。
cd /usr/local/mysql //进入到安装的mysql软件目录中
chown -R root . //设定root能访问/usr/local/mysql
chown -R mysql var //设定mysql用户能访问/usr/local/mysql/var ,里面存的是mysql的数据库文件.这个目录是在/etc/my.cnf中有配置,在mysql_install_db时产生。
chown -R mysql var/ . //设定mysql用户能访问/usr/local/mysql/var/mysql下的所有文件
chgrp -R mysql . //设定mysql组能够访问/usr/local/mysql
# 上面的已经把mysql完全安装完了,也能正常使用了,但还不够,你要将mysql的数据库启动脚本加入系统启动目录
cd /usr/local/mysql/lib/mysql/
ln -s libmysqlclient.so.15.0.0 libmysqlclient_r.so
cp /tmp/mysql-5.0.16/support-files/my-huge.cnf /etc/my.cnf
cp /tmp/mysql-5.0.16/support-files/mysql.server /etc/rc.d/init.d/mysqld
chmod 700 /etc/rc.d/init.d/mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/mysqld
/etc/rc.d/init.d/mysqld start //来启动mysql进程
安装apache
tar zxvf httpd-2.2.11.tar.gz
cd httpd-2.2.11
./configure --prefix=/usr/local/apache2 --enable-rewrite --enable-ssl
make
make install
安装完毕后, 使用如下命令启动APACHE /usr/local/apache2/bin/apachectl start
安装PHP
tar zxvf php-5.2.6.tar.gz
cd php-5-2.6
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc --with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng/ --with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype/ --enable-trace-vars --with-zlib-dir=/usr/local/zlib2/
make
make install
将APACHE支持 .PHP
编辑APACHE配置 vi /var/apache/conf/httpd.conf
搜索 AddType 找到类似AddType application/x-compress .Z
在其下增加一行
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
重启apache时候,出现以下信息:
[root@miix htdocs]# apachectl -k restart
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
这是由于selinux引起的,所以需要这样一下:
chcon -t textrel_shlib_t libphp5.so
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr/local/zlib2
make
make install
安装libpng
tar zxvf libpng-1.2.10.tar.gz
cd libpng-1.2.10
./configure --prefix=/usr/local/libpng
make
make install
安装freetype
tar zxvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/usr/local/freetype
make
make install
安装Jpeg
mkdir /usr/local/jpeg6
mkdir /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/include
mkdir /usr/local/jpeg6/man
mkdir /usr/local/jpeg6/man/man1
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=/usr/local/jpeg6 --enable-shared
make
make install
安装GD
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure --prefix=/usr/local/gd2 --with-zlib=/usr/local/zlib2/ --with-png=/usr/local/libpng/ --with-jpeg=/usr/local/jpeg6/ --with-freetype=/usr/local/freetype/
make
(在make时可能会是出现以下错误:
cd . && /bin/sh /root/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
cd . && /bin/sh /root/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /root/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
把报错信息“configure.ac:64: error: possibly undefined macro: AM_ICONV”拿到google里搜索,得到“But you need to have gettext”没有gettext这个包。
然后直接运行:yum install gettext 在做make 就好了[解决方法是在:把warning: macro `AM_ICONV' not found in library 复制到google中找到这个地址http://sery.blog.51cto.com/10037/50892]
)
安装mysql
groupadd mysql // 建立mysql组
useradd mysql -g mysql //建立mysql用户并且加入到mysql组中
tar zxvf mysql-5.0.16.tar.gz //解压缩
cd mysql-5.0.16 //进入解开包的目录
./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extra-charsets=gbk,gb2312 --enable-thread-safe-client
make
make install
cd scripts //进入到脚本目录下
./mysql_install_db --user=mysql //安装库文件,应该会提示说OK!的。
cd /usr/local/mysql //进入到安装的mysql软件目录中
chown -R root . //设定root能访问/usr/local/mysql
chown -R mysql var //设定mysql用户能访问/usr/local/mysql/var ,里面存的是mysql的数据库文件.这个目录是在/etc/my.cnf中有配置,在mysql_install_db时产生。
chown -R mysql var/ . //设定mysql用户能访问/usr/local/mysql/var/mysql下的所有文件
chgrp -R mysql . //设定mysql组能够访问/usr/local/mysql
# 上面的已经把mysql完全安装完了,也能正常使用了,但还不够,你要将mysql的数据库启动脚本加入系统启动目录
cd /usr/local/mysql/lib/mysql/
ln -s libmysqlclient.so.15.0.0 libmysqlclient_r.so
cp /tmp/mysql-5.0.16/support-files/my-huge.cnf /etc/my.cnf
cp /tmp/mysql-5.0.16/support-files/mysql.server /etc/rc.d/init.d/mysqld
chmod 700 /etc/rc.d/init.d/mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/mysqld
/etc/rc.d/init.d/mysqld start //来启动mysql进程
安装apache
tar zxvf httpd-2.2.11.tar.gz
cd httpd-2.2.11
./configure --prefix=/usr/local/apache2 --enable-rewrite --enable-ssl
make
make install
安装完毕后, 使用如下命令启动APACHE /usr/local/apache2/bin/apachectl start
安装PHP
tar zxvf php-5.2.6.tar.gz
cd php-5-2.6
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc --with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng/ --with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype/ --enable-trace-vars --with-zlib-dir=/usr/local/zlib2/
make
make install
将APACHE支持 .PHP
编辑APACHE配置 vi /var/apache/conf/httpd.conf
搜索 AddType 找到类似AddType application/x-compress .Z
在其下增加一行
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
重启apache时候,出现以下信息:
[root@miix htdocs]# apachectl -k restart
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
这是由于selinux引起的,所以需要这样一下:
chcon -t textrel_shlib_t libphp5.so
饿虎岗资源网 Design By www.oxmxm.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
饿虎岗资源网 Design By www.oxmxm.com
暂无评论...
更新日志
2024年05月15日
2024年05月15日
- 群星.2006-失而复得2辑【新艺宝】【WAV+CUE】
- 《张震岳6CD合集》1993-2000全套[WAV+CUE][3.1G]
- 周华健《粤语精选+国语精选》日本母带 [WAV+CUE][1.2G]
- 《陈楚生6CD合集》[WAV+CUE][2.2G]
- dnf经验胶囊快速获得
- dnf结婚地下城入场材料怎么获得
- dnf结婚戒指属性和婚房属性
- FlorianNoack-IWannaBeLikeYou(2024)【Hi-Res】24bit-96kHz【flac】
- 张国荣.1995-狂恋·国语经典【新艺宝】【WAV+CUE】
- 佛教音乐.2012-《藏传密咒精选集》[FLAC+CUE]
- 微软在Win11中加入内置广告:宣传XGP服务
- 《地狱之刃2》官方:游戏中美景都是取材于真实地点
- 对漫威太失望!叉骨叔确认加盟DC《和平使者》第2季
- 李克勤.1998-寻最这五年2CD【艺能动音】【WAV+CUE】
- 彭莉.1995-感谢你的爱【宝丽金】【WAV+CUE】