Next: Developing With The Interpreter, Previous: Using The Web Interpreter, Up: Using The Web Interpreter
First, make sure you have installed FastCGI.
The process of installing the Roadsend PHP Web Interpreter is different depending on your platform, web server software, and local server settings. Use the instructions below as a guide but keep in mind your server settings may vary.
The Roadsend web interpreter is named pcc.fcgi. On Unix, the roadsend-pcc-runtime package includes the web interpreter in /opt/roadsend/pcc/modules/fastcgi/. On Windows, the interpreter is included in the main package and is located in c:\roadsend\local\bin.
First, copy pcc.fcgi to your server's cgi-bin directory. You can look in your Apache configuration file for the ScriptAlias directive if you are unsure where your cgi-bin directory is.
You can associate all .php files by adding the following global directives to your Apache configuration file:
AddHandler pcc-handler .php Action pcc-handler /cgi-bin/pcc.fcgi
You can also add these directives to a <Directory> block to limit interpretation to the specified directory:
<Directory "/var/www/localhost/htdocs/php-project"> AddHandler pcc-handler .php Action pcc-handler /cgi-bin/pcc.fcgi </Directory>
You must restart Apache after making these changes.
See the Apache Documentation for more information.
Use the following settings in mod_fastcgi.conf in Unix:
fastcgi.server = ( ".php" => ( "localhost" => ( "host" => "127.0.0.1", "port" => 1026, "bin-path" => "/opt/roadsend/pcc/modules/fastcgi/pcc.fcgi", ) ) )
More help with fastcgi on lighttpd is available here.
After configuring your web server to use the Roadsend PHP Interpreter, make sure you restart the server to load the new configuration. Try running a simple test script in your web directory to confirm the interpreter is configured correctly:
/var/www/localhost/htdocs/index.php:
<? phpinfo(); ?>
This test page should show the server version, environment variables and other diagnostic information.
If you are still having a problem, review the above instructions and check the documentation for your platform. You can also request support from Roadsend online.