安装nginx

安装nginx
由于centos没有默认的nginx软件包,需要启用REHL的附件包

rpm -Uvh http://download.Fedora.RedHat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum -y install nginx

设置开机启动

chkconfig nginx on
null

安装php
下载了一个php5.0.2.tar.gz
# tar -xzvf php5.0.2.tar.gz   //解压
# cd php5.0.2   //进入目录
# ./configure   //进行配置
出现了一个错误  configure: error: xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel    //linux 下默认支持XML
# ./configure 
  成功
# make&&make install  //安装成功
{
今天编译安装php并使之支持fastcgi,启动时报错 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’。
仔细查看出错提醒,是提示运行fastcgi的用户用户组错误,但是配置文件值默认。
打开配置文件php-fpm.conf,到124行,发现
                                Unix user of processes
                <!--    <value name="user">www</value>                          -->

                        Unix group of processes
                <!--    <value name="group">www</value>         -->

果然,使用的是默认值。取消注释解决该问题。
再次启动,就无[ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’的错误


}



安装mysql
下载了一个mysql5.0.2.tar.gz
# tar -xzvf mysql5.0.2.tar.gz   //解压
# cd php5.0.2   //进入目录
# ./configure   //进行配置
出现了一个错误

完整错误信息如下:

checking for tgetent in -lncurses... no

checking for tgetent in -lcurses... no

checking for tgetent in -ltermcap... no

checking for tgetent in -ltinfo... no

checking for termcap functions library... configure: error: No curses/termcap library found

原因:

缺少ncurses安装包

 

解决办法:

下载安装相应软件包

一、如果你的系统是CENTOS系列:

# yum list|grep ncurses

# yum -y install ncurses-devel

# yum install ncurses-devel


# ./configure 
  成功
# make&&make install
出现一个错误
源码安装  MYSQL ,,MAKE  时 报错。
 
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/tmp/lamp/mysql-5.0.56/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/lamp/mysql-5.0.56'
make: *** [all] 错误 2

解决办法:
 
yum install -y gcc-c++

# make&&make install //成功

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值