Author Topic: How to disable suPHP ?  (Read 64804 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to disable suPHP ?
« 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.

Offline
**
Re: How to disable suPHP ?
« Reply #1 on: October 31, 2015, 06:56:40 PM »
Same problem here.

Offline
*****
Re: How to disable suPHP ?
« Reply #2 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
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How to disable suPHP ?
« Reply #3 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!!?

Offline
*
Re: How to disable suPHP ?
« Reply #4 on: January 22, 2018, 05:57:04 PM »
/usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so

that address has not cwp folder.

Offline
*
Re: How to disable suPHP ?
« Reply #5 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
« Last Edit: January 23, 2018, 10:02:12 AM by santOS »