============================================================ LAB> apm 연동이 안될 경우 발생되는 문제들 # mv /usr/local/apache/libexec/libphp4.so ~ # apachectl restart /usr/bin/apachectl restart: configuration broken, ignoring restart /usr/bin/apachectl restart: (run 'apachectl configtest' for details) # apachectl configtest Syntax error on line 223 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or directory
-- httpd.conf -- : #LoadModule php4_module libexec/libphp4.so : #AddModule mod_php4.c : -- httpd.conf -- # apachectl configtest Syntax OK # apachectl restart /usr/bin/apachectl restart: httpd restarted # cat /usr/local/apache/htdocs/index.html <? phpinfo(); ?> http://LinuxServer/ 에 접근시 다운로드 받는다면 php 를 인식하지 못하는 것이다. # vi /usr/local/apache/conf/httpd.conf -- httpd.conf -- : # AddType application/x-httpd-php .html .php : -- httpd.conf -- # apachectl configtest Syntax OK # apachectl restart /usr/bin/apachectl restart: httpd restarted http://LinuxServer/ 에 접근시 아무것도 나오지 않는다. 소스보기에서 보면 <? phpinfo(); ?> 가 나올 것이다. 이는 연동이 안된 것이다.
============================================================