meder omuraliev
meder omuraliev

Reputation: 186742

How can I tell if my Apache2+PHP uses CGI/FCGI?

If I haven't setup FastCGI or mod_php, does that mean my vanilla Apache2 uses CGI for PHP?

Upvotes: 2

Views: 1504

Answers (2)

Bede Constantinides
Bede Constantinides

Reputation: 2569

phpinfo() includes this information on it's third row of output as 'Server API'.

In your case (running under mod_php), 'Apache 2.0 Handler' will be displayed.

For one reason or another, php_sapi_name() didn't work for me.

Upvotes: 6

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799400

Use php_sapi_name() to find out.

Upvotes: 4

Related Questions