编译PHP按如下方法:
# ./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --with-pear=/usr/share/php --with-bz2 --with-mysql=/usr/local/mysql/ --with-curl=/usr/local/curl --enable-ftp --with-libxml-dir=/usr/local/libxml2 --with-expat-dir=/usr/lib --enable-soap --with-xsl=/usr/local/libxslt --enable-xslt --with-gd=/usr/local/gd2/ --enable-gd-native-ttf --enable-gd-jis-conv --with-jpeg-dir=/usr/local/jpeg6/ --with-zlib-dir=/usr/lib --with-png --with-freetype-dir=/usr/local/freetype --with-config-file-path=/etc --with-iconv --disable-ipv6 --enable-static --enable-maintainer-zts --enable-zend-multibyte --enable-inline-optimization --enable-zend-multibyte --enable-sockets --enable-soap
提示错误:
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
安装bzip2
cd /usr/local/src
tar -zxvf bzip2-1.0.3.tar.gz
cd bzip2-1.0.3
make -f Makefile-libbz2_so
make ;make install
重新回去编译Php
提示成功,但有点小问题:
Thank you for using PHP.
Notice: Following unknown configure options were used:
--with-expat-dir=/usr/lib
--enable-xslt
--with-png
整合Apache与PHP时出错:
/etc/rc.d/xinetd restart
Shutting down xinetd: done
Starting INET services. (xinetd) failed
linux-nh19:/etc #
测试:
rcxinetd status
Checking for service xinetd: unused
linux-nh19:/etc #
为ftp错误,
check /var/log/xinetd.conf , and /var/log/messges 无相关日志
可能是因为服务器没有安装ftp所致,
先不管《估计要去yast去开启xinetd服务》
==================================================================================
linux的/etc/rc.d/init.d 相当于suse的/etc/rc.d (或/etc/init.d有点奇怪)为开机启动目录,mysqld放于其中
安装过程中只需改变目录即可
suse的开机启动文件不同于redhat的/etc/rc.d/init.d/rc.local\
是/etc/init.d/boot.local或/etc/rc.d/boot.local
装tomcat时。添加环境变量非redhat的/etc/profile,而是需要建立/etc/profile.local添加。
阅读(1059) | 评论(0) | 转发(0) |