Originally posted by dom974
I assume there will be too many questions like : why is chmoding 777 giving me errors ? why is webdav not working properly, etc ...
Hi,
Could you expand a bit on why suPHP could cause that kind of errors?
Thanks.
Originally posted by dom974
I assume there will be too many questions like : why is chmoding 777 giving me errors ? why is webdav not working properly, etc ...
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php5_module modules/libphp5.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler application/x-httpd-php .php
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
Originally posted by dom974
Hi,
Just a quick word to say that I've successfully installed suPHP on my Plesk8 box !!
It was pretty easy:
1/ yum install mod_suphp
2/ vi suphp.conf in httpd directory
put suphp engine to on
put suphp config path to/etc/yoursuphp dir where you have your suphp.ini file
3/ vi httpd.conf
remove php handler because it's already used by suphp
4/ service httpd restart
... and that's all it works like a charm now !
bye
dominique.
Originally posted by dom974
Hi,
Just a quick word to say that I've successfully installed suPHP on my Plesk8 box !!
It was pretty easy:
1/ yum install mod_suphp
2/ vi suphp.conf in httpd directory
put suphp engine to on
put suphp config path to/etc/yoursuphp dir where you have your suphp.ini file
3/ vi httpd.conf
remove php handler because it's already used by suphp
4/ service httpd restart
... and that's all it works like a charm now !
bye
dominique.
When i change the suphp.conf settings mysql stops working in php, only scripts that do not use mysql work, any ideas?
hi benji,
I don't know for plesk 7.5. My plesk box has been plesk8 right from the start.
But as far as I know, I don't see why it shouldn't work. If you're running apache2/php4-5, that would work.
I just installed the rpm package made for fedora/rh and I didn't have to modify loads of things.
Once I got suphp to work (as a module for apache mod_suphp it's not compiled directly but loaded as a dso), I wasn't able to use my horde webmail.
So if it's your case, just put something like that in your httpd.conf file:
Code:<Directory /usr/share/psa-horde> php_admin_flag engine on suPHP_Engine off AddHandler php5-script .php AddType text/html .php </Directory>
don't forget the AddHandler directive otherwise mod_php is activated but it doesn't take in charge of php files (was my case)
dominique.
<Directory /usr/share/psa-horde>
php_admin_flag engine on
suPHP_Engine off
AddHandler php5-script .php
AddType text/html .php
</Directory>
<Directory /var/www/atmail>
php_admin_flag engine on
suPHP_Engine off
AddHandler php5-script .php
AddType text/html .php
</Directory>