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.
Same problem here.
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
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!!?
/usr/local/src/cwp/php-YOUR-VERSION/libs/libphp5.so
that address has not cwp folder.
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
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