Before I portaudit -Fda and fix the Apache2, my Cacti works well. However, after portmaster apache2, Apache2 cannot let .php work. Here is my checking list for all of you.
If my /usr/local/etc/apache22/httpd.conf displayed as below
It is normal to start apache2 normal to watch "It works", however, if uncomment
apache22 will be not work in ps -aux | grep apache
Hope to get help here.
Code:
#uname -a
FreeBSD 9.0-RELEASE#0: Tue Jan 3 07:15:25 UTC 2012 [email]root@obrian.cse.buffalo.edu[/email]:/usr/obj/usr/src/sys/GENERIC i386
#pkg_info | grep apache
apache-2.2.22_5 Version 2.2.x of Apache web server with prefork MPM.
#pkg_info | grep php5
php5-5.3.10_1 PHP Scripting Language
php5-mysql-5.3.10 The mysql shared extension for php
php5-session-5.3.10_1 The session shared extension for php
php5-snmp-5.3.10 The snmp shared extension for php
php5-sockets-5.3.10_1 The sockets shared extension for php
php5-xml-5.3.10_1 The xml shared extension for php
# ls -al /usr/local/libexec/apache22/libp*
-rwxr-xr-x 1 root wheel 3490457 Apr 1 13:22 /usr/local/libexec/apache22/libphp5.so
If my /usr/local/etc/apache22/httpd.conf displayed as below
Code:
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
#LoadModule php5_module libexec/apache22/libphp5.so
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
It is normal to start apache2 normal to watch "It works", however, if uncomment
Code:
#LoadModule php5_module libexec/apache22/libphp5.so
Hope to get help here.