answersLogoWhite

0

How do you install PHP as a CGI?

Updated: 11/10/2022
User Avatar

Pandoga

Lvl 1
14y ago

Best Answer

The PHP website has a comprehensive online manual that can explain most aspects of PHP, including its installation. See the related links for a constantly-updated PHP installation guide.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you install PHP as a CGI?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you run PHP 3 and 4 on the same server?

Yes, you can, provided that you run PHP as CGI.


What is the server used to run PHP in Windows?

One of the Windows Server operating systems. PHP can be installed with Microsoft's IIS web server as an ISAPI filter, or you can install the WAMP server under Windows that contains the Apache web server, the PHP interpreter, and mySQL. There are others as well, such as the Xitami web server, etc., that work equally well with PHP under windows.


How do you test a Briggs and stratton coil?

One of these should help (from Briggs & Stratton's online knowledgebase) http://faqs.custhelp.com/cgi-bin/faqs.cfg/php/enduser/std_adp.php?p_faqid=3761 http://faqs.custhelp.com/cgi-bin/faqs.cfg/php/enduser/std_adp.php?p_faqid=3428 http://faqs.custhelp.com/cgi-bin/faqs.cfg/php/enduser/std_adp.php?p_faqid=3438


What is the difference between PHP and CGI?

The benefits of running PHP-CGI are:** It is more secure. The PHP runs as your user rather than dhapache. That means you can put your database passwords in a file readable only by you and your php scripts can still access it!* It is more flexible. Because of security concerns when running PHP as an Apache module (which means it runs as our dhapache user), we have disabled a number of commands with the non-CGI PHP. This will cause installation problems with certain popular PHP scripts (such as Gallery) if you choose to run PHP not as a CGI!* It's just as fast as running PHP as an Apache module, and we include more default libraries.There are a FEW VERY MINOR drawbacks to running PHP-CGI. They are:** Custom 404 pages won't work for .php files with PHP-CGI. Or will they? See n74's comment below!* Variables in the URL which are not regular ?foo=bar variables won't work without using mod_rewrite (http://httpd.apache.org/docs/mod/mod_rewrite.html) (example.com/blah.php/username/info/variable).* Custom php directives in .htaccess files (php_include_dir /home/user;/home/user/example_dir) won't work.* The $_SERVER['SCRIPT_NAME'] variable will return the php.cgi binary rather than the name of your script* Persistant database connections will not work. PHP's mysql_pconnect() function will just open a new connection because it can't find a persistant one.If one of those is a show-stopper for you, you can easily switch to running PHP as an Apache module and not CGI, but be prepared for a bunch of potential security and ease-of-use issues! If you don't know what any of these drawbacks mean, you're fine just using the default setting of PHP-CGI and not worrying about anything!


How do you set up a hit counter?

Using either CGI or PHP and a MYSQL table.


What are the different technologies available to make webpage dynamic?

CGI,asp.net,PHP,JSP


How do you install crystal reports for php?

how to create report in php


What are the capabilities of PHP?

PHP is a server-side scripting language capable of most anything other CGI languages can accomplish.Such as,Collecting form dataDynamic page contentCookie management


How do you install PHP scripts?

You need to upload the scripts to web hosting space that support PHP.


How many PHP-based websites are there?

Nearly all websites have some sort of PHP backend, although a large number use other scripts as well -- Perl, Python, ASP, CGI.


How do you run php programs?

You need to install PHP either on a pre built apache server such as xampp or download PHP directly from the website.


How do you install php in window?

Download xampp or wamp and everything you need to run PHP would be installed with it