How can PHP be integrated as fcgi to specify PHP version and configuration in different Apache contexts?
To integrate PHP as FastCGI in Apache to specify PHP version and configuration in different contexts, you can use the `SetHandler` directive in Apache configuration files. By setting up different handlers for different contexts, you can specify the PHP version and configuration settings for each context. ```apache <Directory "/path/to/directory"> Options +ExecCGI AddHandler php7.4-fcgi .php Action php7.4-fcgi /php7.4-fcgi SetHandler php7.4-fcgi </Directory> <Directory "/path/to/another/directory"> Options +ExecCGI AddHandler php7.2-fcgi .php Action php7.2-fcgi /php7.2-fcgi SetHandler php7.2-fcgi </Directory> ```
Related questions
-
numerical values column names database
-
PHP explode array_filter
-
PHP configuration .htaccess files php_value