一、问题一
[activating module `php5' in /etc/httpd//httpd.conf]
Installing PHP CLI binary: /usr/local/php//bin/
Installing PHP CLI man page: /usr/local/php//man/man1/
Installing build environment: /usr/local/php//lib/php/build/
Installing header files: /usr/local/php//include/php/
Installing helper programs: /usr/local/php//bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php//man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php//lib/php/
/usr/local/src/lamp/php-5.2.6/sapi/cli/php: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
make[1]: *** [install-pear-installer] 错误 127
make: *** [install-pear] 错误 2
解决办法:
执行yum install libtool-ltdl-devel
然后删除PHP解压目录,重新解压configure make && make install
Installing PHP CLI binary: /usr/local/php//bin/
Installing PHP CLI man page: /usr/local/php//man/man1/
Installing build environment: /usr/local/php//lib/php/build/
Installing header files: /usr/local/php//include/php/
Installing helper programs: /usr/local/php//bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php//man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php//lib/php/
/usr/local/src/lamp/php-5.2.6/sapi/cli/php: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
make[1]: *** [install-pear-installer] 错误 127
make: *** [install-pear] 错误 2
解决办法:
执行yum install libtool-ltdl-devel
应该就可以了
祝你好运
二、问题二
#!/bin/sh
cd /home/soft
ls *.tar.gz > ls.list
for TAR in `cat ls.list`
do
tar -zxf $TAR
done
for TAR in 'cat ls.list' 两边的两个不是单引号 是 Esc键下面的那个按键(·~) 单引号(‘)。
三、问题三
/usr/local/apache2/bin/apachectl restart
vi /etc/httpd/httpd.conf
解决httpd: Could not reliably determine the server's fully qualified domain name
解决方法:
将里面的 #ServerName localhost:80 注释去掉即可。
再执行 httpd
然后可以通过浏览器访问 http://localhost:80 ;,如果页面显示 “It works!” ,即表示apache已安装并启动成功。