当前位置: 技术问答>linux和unix
在solaris安装apache和php不通过的问题
来源: 互联网 发布时间:2016-04-30
本文导语: solaris10 apache-2.2.6 php-5.2.5-sol10-x86-local.gz 下载提示 PHP needs configuration. php.ini related files are in /usr/local/php/doc/php along with other documentation. php.ini needs to be installed in /usr/local/php/lib. The libphp5.so file is in...
solaris10
apache-2.2.6
php-5.2.5-sol10-x86-local.gz
下载提示
PHP needs configuration. php.ini related files are in /usr/local/php/doc/php along with other documentation. php.ini needs to be installed in /usr/local/php/lib. The libphp5.so file is installed in /usr/local/apache2/modules. The following two lines
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
need to be placed in your httpd.conf file in their appropriate places.
都做了,可安装成功后 运行apache ,报
LoadModule php5_module modules/libphp5.so 这行错
./apachectl start
httpd: Syntax error on line 463 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1:
/usr/local/apache2/bin/httpd: xd6xc2xc3xfcxb5xc4: libldap-2.3.so.0:
xb4xf2xbfxaaxcaxa7xb0xdc: xcexdexb4xcbxcexc4xbcxfexbbxf2xc4xbfxc2xbc
apache-2.2.6
php-5.2.5-sol10-x86-local.gz
下载提示
PHP needs configuration. php.ini related files are in /usr/local/php/doc/php along with other documentation. php.ini needs to be installed in /usr/local/php/lib. The libphp5.so file is installed in /usr/local/apache2/modules. The following two lines
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
need to be placed in your httpd.conf file in their appropriate places.
都做了,可安装成功后 运行apache ,报
LoadModule php5_module modules/libphp5.so 这行错
./apachectl start
httpd: Syntax error on line 463 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1:
/usr/local/apache2/bin/httpd: xd6xc2xc3xfcxb5xc4: libldap-2.3.so.0:
xb4xf2xbfxaaxcaxa7xb0xdc: xcexdexb4xcbxcexc4xbcxfexbbxf2xc4xbfxc2xbc
|
Solaris 10最新的update应该已经预装了apache和php了吧。OpenSolaris早就可以直接使用
svcadm enable apache
来直接使用apache服务了。
svcadm enable apache
来直接使用apache服务了。