This FAQ will explain to you a little bit about PHP and it's availability on the server. Scripts written in PHP can be executed on the server. However there are certain steps that you as a programmer will need to take in order for these scripts to run properly.
php is available on the servers as a cgi. This means that all of the steps that are necessary to run a perl script also apply to php scripts:
- The first line in the php file must be: #!/usr/local/bin/php
- The file must be executable (chmod 755)
- The file must be in the cgi-bin directory
If you want to run php scripts from a location other than the cgi-bin directory, you must do the following:
- Create a .htaccess file (or append an already exiting file) with the following directives:
<Files *.php> options execcgi SetHandler cgi-script </Files>We cannot help you with your php scripts. There are plenty of resources on the Internet for that. The best resource is the php website itself http://www.php.net
If you have a need to run php as an Apache module (ie mod_php), then you should contact a sales rep at sales@megaton.net and ask them about a dedicated server.
Back to the Index