Here you can search and view our site Knowledge Base. To find a specific article, use KB-article number format (ex. KB-1)
Article number: kb-8
Q. Is PHP a CGI or Apache module?
A. PHP is running as both CGI and an Apache module.
If you need to use PHP as a CGI (not recommended) the the path is:
/usr/bin/php
so the "shebang" line would be:
#!/usr/bin/php
of course, make sure the script permissions are set to RWX_RX_RX (0755)
It is NOT recommended to use the PHP as a CGI for performance reasons