Forum OpenACS Q&A: Response to php + aolserver + oacs

Collapse
Posted by Radam Batnag on

Edwin,

Just follow this guide from OpenForce: http://openforce.biz/library/doc/openacs/php-on-aolserver.adp

I tried this successfully with AOLServer 3.3 and PHP 4.2.0 on Red Hat 7.3. Your .tcl file's OK, maybe it's with the way you compiled PHP?

To check if PHP is being loaded properly, grep for the following in your error log:

Notice: modload: loading '/usr/local/aolserver/bin/libphp4.so'
Notice: Registering PHP for "*.php"
Debug: modload: initializing module 'php'

To know where your error log is located, look for the serverlog parameter in the ns/parameters section. My .tcl file contains something like this:

ns_section ns/parameters 
ns_param   serverlog          ${homedir}/log/${server}-error.log