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

0 Members and 3 Guests 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

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!!?