How to disable suPHP ?

Started by IgorA100, October 31, 2015, 06:00:57 PM

Previous topic - Next topic

IgorA100

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.

Farukh Khan


Igor S.

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:

cp /usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so /usr/local/apache/modules/

Edit your VirtualHost:
b) Disable suPHP
suPHP_Engine off
c) add it to your VirtualHost:

<FilesMatch \.php$>
        LoadModule php5_module modules/libphp5.so
        SetHandler application/x-httpd-php
</FilesMatch>

d) and restart Apache:
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

hmdshariati

Quote from: 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:

cp /usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so /usr/local/apache/modules/

Edit your VirtualHost:
b) Disable suPHP
suPHP_Engine off
c) add it to your VirtualHost:

<FilesMatch \.php$>
        LoadModule php5_module modules/libphp5.so
        SetHandler application/x-httpd-php
</FilesMatch>

d) and restart Apache:
service httpd restart

but there is not any php source in src!!?

santOS

/usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so

that address has not cwp folder.

santOS

#5
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