Control Web Panel

WebPanel => Apache => Topic started by: nova on December 11, 2015, 10:45:52 PM

Title: How to Set default Apache PHP Handler to cgi
Post by: nova on December 11, 2015, 10:45:52 PM
hi,

im using all server one php configuration.
need all accounts run php cgi mode.
need this :
# /usr/local/cpanel/bin/rebuild_phpconf --current
Available handlers: suphp dso fcgi cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: cgi
SUEXEC: not installed
RUID2: not installed

is possible ? change easy likely cpanel php handler ?
How can I change the easy way.
im change setting and not found a solution..

allways retun 500 error or Not Found

The requested URL /test.php was not found on this server. :)


Title: Re: How to Set default Apache PHP Handler to cgi
Post by: Igor S. on December 15, 2015, 07:50:21 AM
Hello.

This is the CentOS Web Panel forum, not a CPanel.
The CWP are using PHP as CGI (suPhp).
Title: Re: How to Set default Apache PHP Handler to cgi
Post by: nova on December 15, 2015, 10:15:37 AM
hi Igor,

Yes I know! I just asked a simple way to say Have to change. I wrote cPanel as an example.

Unfortunately I could not find a solution. I went to the DSO mode.

Thank you for the answer. Best regards.
Title: Re: How to Set default Apache PHP Handler to cgi
Post by: Igor S. on December 18, 2015, 08:39:31 AM
hi Igor,

Yes I know! I just asked a simple way to say Have to change. I wrote cPanel as an example.

Unfortunately I could not find a solution. I went to the DSO mode.

Thank you for the answer. Best regards.

Hi.
If you want to use DSO, you can check this solution (http://'http://forum.centos-webpanel.com/informations/how-to-disable-suphp/msg4601/#msg4601') .