在solaris安装apache和php不通过的问题
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: \xd6\xc2\xc3\xfc\xb5\xc4: libldap-2.3.so.0:
\xb4\xf2\xbf\xaa\xca\xa7\xb0\xdc: \xce\xde\xb4\xcb\xce\xc4\xbc\xfe\xbb\xf2\xc4\xbf\xc2\xbc
[解决办法]
Solaris 10最新的update应该已经预装了apache和php了吧。OpenSolaris早就可以直接使用
svcadm enable apache
来直接使用apache服务了。