Control Web Panel

WebPanel => Information => Topic started by: IgorA100 on October 31, 2015, 06:00:57 PM

Title: How to disable suPHP ?
Post by: IgorA100 on October 31, 2015, 06:00:57 PM
Hi !
How to disable suPHP a specific domain?
If I add the suPHP_Engine off a specific domain, php scripts do not work. The screen displays the text of the script.
Title: Re: How to disable suPHP ?
Post by: Farukh Khan on October 31, 2015, 06:56:40 PM
Same problem here.
Title: Re: How to disable suPHP ?
Post by: Igor S. on November 03, 2015, 08:54:12 AM
Hello.

If you want using PHP as Apache's module, you can add it to your VirtualHost.
For example:

a) Copying your PHP module to the Apache's modules folder:
Code: [Select]
cp /usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so /usr/local/apache/modules/
Edit your VirtualHost:
b) Disable suPHP
Code: [Select]
suPHP_Engine offc) add it to your VirtualHost:
Code: [Select]
<FilesMatch \.php$>
        LoadModule php5_module modules/libphp5.so
        SetHandler application/x-httpd-php
</FilesMatch>
d) and restart Apache:
Code: [Select]
service httpd restart
Title: Re: How to disable suPHP ?
Post by: hmdshariati on April 09, 2017, 08:06:23 AM
Hello.

If you want using PHP as Apache's module, you can add it to your VirtualHost.
For example:

a) Copying your PHP module to the Apache's modules folder:
Code: [Select]
cp /usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so /usr/local/apache/modules/
Edit your VirtualHost:
b) Disable suPHP
Code: [Select]
suPHP_Engine offc) add it to your VirtualHost:
Code: [Select]
<FilesMatch \.php$>
        LoadModule php5_module modules/libphp5.so
        SetHandler application/x-httpd-php
</FilesMatch>
d) and restart Apache:
Code: [Select]
service httpd restart

but there is not any php source in src!!?
Title: Re: How to disable suPHP ?
Post by: santOS on January 22, 2018, 05:57:04 PM
/usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so

that address has not cwp folder.
Title: Re: How to disable suPHP ?
Post by: santOS on January 23, 2018, 10:00:24 AM
I need some files and folders always be chmod 777.
I need disable suphp.
I can not find in web and in my server libphp5.so file. my php is 5.6.30 and Apache/2.4.29 and centos 7.
Please help me and say how i can find this file on the web.
Thanks
Title: Re: How to disable suPHP ?
Post by: bullten on January 25, 2018, 07:41:04 PM
This might help you

http://forum.centos-webpanel.com/how-to/disable-suphp-and-use-dso-with-apache-2-4-28-and-php-5-6-33/msg15339/?topicseen#msg15339