Is PHP a CGI or Apache module?

PHP runs as a cgi at Fast-name – this is because it is more secure than running it as an Apache module (if it runs as an Apache module PHP runs as the same user with the same rights as Apache).

This means that php_value directives in .htaccess files will not work - however we do allow local php.ini (or php4.ini for php4) files - these are plain text files that allow php.ini directives to control PHP for scripts in the directory where the file is placed, and its subdirectories.

Additionally, .htaccess directives such as AddHandler .php x-httpd-php will break your PHP scripts.

  • 89 Users Found This Useful
Was this answer helpful?

Related Articles

What permissions do I need to set CGI scripts to?

Files and directories within your cgi-bin directory (or CGI scripts elsewhere) should be set to...

How do I set permissions on files and scripts?

Doing a CHMOD (changing a file's permissions) is the setting of access privileges for a file....

What is the path to perl?

/usr/bin/perlYou can also find information on paths to other useful programs by logging in to...

How do I connect to my MySQL database from a Perl CGI script?

Perl's DBI module provides an interface to MySQL databases for CGI scripts. A commented example...

Does Fast-name support Image::Magick?

Yes we do, and in case you need to know the exact version number, at the time of writing, the...

Powered by WHMCompleteSolution