Neeraj Kumar
Neeraj Kumar

Reputation: 1058

How to change PHP Server API to Apache 2.0 Handler from CGI/FastCGI?

I have a Plesk 12 server in which PHP is running with Server API CGI/FastCGI. But some of my script requirements I have to change it to Apache 2.0 Handler.

I have performed several changes in Apache configs to enable Apache 2.0 Handler but not successful.

Please help me out of this.

Upvotes: 3

Views: 15345

Answers (3)

For php8.0 : a2disconf php8.0-fpm

Upvotes: 1

am05mhz
am05mhz

Reputation: 2875

if you have access to parallels plesk admin panel, you can find the option under

hosting services (in the left panel) >> service plan (still in the left panel)

then you choose which service plan to change, then go to

hosting parameters tab (in the main panel)

then scroll down until you find the settings

note: this is valid for plesk panel 11.5.30 Update #47 and if you have access to the subscription plan settings

Upvotes: 0

websky
websky

Reputation: 3172

Edit /etc/httpd/conf/httpd.conf

####    PHP as fast cgi
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

Restart the apache
 /etc/init.d/httpd restart

Upvotes: 2

Related Questions