How to configure PHP3 extension on domains?

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 9.5.2 for Windows
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:57:06 UTC

Modified:

2016-12-21 19:37:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to configure PHP3 extension on domains?

Symptoms

How to configure PHP3 extension on domains? I would like ot use PHP3 and PHP extensions for domain scripts.

Resolution

By default domain uses PHP and Plesk knows about .php extension only. The same information you may see in template PHP:

    # cat /usr/local/psa/admin/conf/templates/default/service/php_over_fastcgi.php
<IfModule mod_fcgid.c>
<Files ~ (\\.php$)>
SetHandler fcgid-script
FCGIWrapper <?php echo $VAR->server->webserver->apache->phpCgiBin ?> .php
Options +ExecCGI
</Files>
</IfModule>

1) If you would like to change PHP settings for all domain, you should modify template like below:

    # cat /usr/local/psa/admin/conf/templates/default/service/php_over_fastcgi.php
<IfModule mod_fcgid.c>
<Files ~ (\\.(php|php3)$)>
SetHandler fcgid-script
FCGIWrapper <?php echo $VAR->server->webserver->apache->phpCgiBin ?> .php
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php3
Options +ExecCGI
</Files>
</IfModule>

2) And reconfigure domain/domains with command below:

    # /usr/local/psa/admin/bin/httpdmng  --reconfigure-domain domain.tld
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Have more questions? Submit a request
Please sign in to leave a comment.