• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

suPHP option

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.
 
By using mod_suphp, this will change your permissions system.

suPHP allows pages to run as YOUR user (instead of the "nobody" or "apache" user), which means files no longer have to be chmodded to world writable (777/666) for the webserver to be able to write.
The news 777 is now 755
Trying to put 777 will (normally) result in getting errors when running scripts (that's a suphp security because you should not have to use 777 anymore)

As for things like webdav, you would use it as a mod_dav, which is outside the suphp perimeter, and so it won't create files within users permission but apache permissions.
Upload a php page using webdav, and then try to access it, suphp will complain and exits because file is not owned by your user
 
I attempted to use mod_suPHP on Fedora Core 4 from (http://dries.ulyssis.org/rpm/packages/mod_suphp/info.html)

however when i tried to configure it all page source was being downloaded and no error logs or anything was working.
since then i have removed the packaged and it is still continuing to output page sources

I have renamed the php.conf back and i can access some sites with the filename (E.G: index.php) but when i try and access just a domain it downloads the file. could someone point me in the right direction or tell me where i should check for more specific errors.
 
I think ive got it working... possably Firefox and IE Cache's but im unsure
my php.conf file is:
#
# 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

Not sure whats needed and what aint for normal operations but firefox was saying it was application/x-httpd-php so i added it to try and see if it would work.
 
A basic CentOS 4/PHP 4 non-suPHP php.conf looks like this:

Code:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .php4 .php3 .phtml
DirectoryIndex index.php index.php3

The AddType statement voor application/x-httpd-php is definitely needed.
 
Problem with suphp install

Hi everybody. I would like to get suphp working on my server because I too am tired of my few users saying "but I can do that everywhere else" with reference to files processed by Apache. I followed the excellent directions by dom974, but ran into some issues. Hopefully, someone can point to where I went wrong:

1. I installed suphp (no apparent problem) with yum: $yum install mod_suphp
2. I edited suphp.conf in httpd/conf.d/: $vi suphp.conf
>suPHP_engine on
3. could not find suphp.ini in any directory: $find / -iname *suphp*
4. could not find php handler in httpd.conf

Did I miss something simple? Any help appreciated in advence.

-John


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.
 
Hello,

I tried to install this.

But it gets an error ( 500 )

Logs show this:

[Fri Mar 23 16:34:28 2007] [error] [client xxx.xxx.187.31] /usr/sbin/suphp: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory, referer: http://xxx.host.com/index.php ( example )

it's a fedora core 4 BOX , 2 GB RAM and all well at all
 
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.

Which OS did this work on?
 
Could anyone tell me how to install suPHP on suse 10.1? I have the .rpm file and it is installed, but what now?
 
For those who concern on mod_suPHP, Power Toys now modify the vhost.conf propeerly and also add a small php.ini into user httpdocs.
Also we detect in new version (4.3.0) if you have mod_suPHP enabled and then we add to skeleton (if you wish), this will help you to not enable to all domains, it will be enbled by default. Working well on some tested servers, especially Joomla guys love this feature :)
 
When i change the suphp.conf settings mysql stops working in php, only scripts that do not use mysql work, any ideas?

Maybe for some will be imp. information, for us took 1 day to found it.
The problem is that for some reason the extensions are not loaded if mod_suphp is enabled.
We found this problem on Debian (Ubuntu) only, not on RedHat, could be that is just on some servers happennig.
The solution is to add to each php.ini (maybe in skeleton) to load extensions also from there not only in /etc/php.ini
Work for us - hope this help.
 
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.

Hi now that latest version of Plesk supports Horde and AtMail what your the correct code be add to httpd.conf?

Thanks in advance, DM.
 
suPHP Horde and @Mail (AtMail)

I've worked it out for @Mail and Horde simply amend httpd.conf to:

Code:
<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>

DM.
 
As for things like webdav, you would use it as a mod_dav, which is outside the suphp perimeter, and so it won't create files within users permission but apache permissions.
sonnerie gratuite
 
Back
Top