suPHP is a tool for executing PHP scripts with the permissions of their owners.

learn more… | top users | synonyms

1
vote
0answers
42 views

ChrootDirectory for SFTP user in virtual host directory with write permissions and SuPHP

I am trying to give a SFTP user (user2) writeable access to a virtual host directory (website) in /var/www/mywebsite under Ubuntu 12.04. I have setup sshd_config to use Chrooting so that this user ...
-1
votes
1answer
79 views

Cpanel + CSF + suPHP = no php brute force protection?

I have NOT found anyone else talking about brute force detection in CSF with suPHP enabled. Maybe I'm not seeing the real picture or need but it feels that suPHP is weak at brute force detection. Is ...
0
votes
0answers
45 views

Webroot directory separation for Apache: suPHP or suEXEC ?

I've been reading a lot about directory permission setup under apache 2.4. Basically I am running a small number of clients with PHP apps on my dedicated Ubuntu (php 5.5.3 + apache 2.4). I know that ...
1
vote
1answer
874 views

Who or what is sending spam from my server ( CentOS / Apache / suPHP )

My server is sending lots of spam and I searched for the problem for hours now. After googling I found a forum where they talked about this and mentioned to dig into the exim log, so I did and found ...
2
votes
2answers
1k views

mod_security not actually blocking requests despite rule trigger & returning 403

I've pulled my finger out and installed mod_security to protect our WHMCS installation (a PHP based billing system) from some of the more obvious SQL injection attacks to try and minimise our ...
0
votes
1answer
87 views

403 on all requests (html , php and anything) on all domains , Directadmin

i tryed to install SuPhp on a directadmin install following HOWTO: PHP 5 CLI to PHP 5 CGI + suPHP , it worked fine before i try to install suphp but now i get 403 on all requests on any domian ...
0
votes
1answer
78 views

Custom PHP.ini file

One of my clients is requesting register_globals to be turned on so his site can normally work. But I disabled custom php.ini files with suphp because of security issues. I must do this because of ...
0
votes
1answer
35 views

Limit Php.ini File Change Per User

I'm using suPHP with Apache 2 and users is allowed to use their own php.ini How can I limit changes of global php.ini values to only few modications? Thanks
0
votes
1answer
370 views

suphp error Directory / is not owned by admin

I'm trying to run a test phpinfo page from: /home/admin/testdomain.com But it displays such error: Internal Server Error Directory / is not owned by admin suPHP 0.7.1 My /etc/suphp.conf is like ...
0
votes
2answers
176 views

What happens when pid_max is reached

As the title suggests, what happens when pid_max (32bit standard is 32768) is reached with many zombie-processes? On our server a user generates a lot of suphp defunct zombie processes and this ...
0
votes
1answer
152 views

From suPHP to mod_php

I have a Centos6 64-bit server, Apache/2.2.15, PHP5.3.3, one IP and four name-based virtual hosts and SSL/SNI to provide https in addition to http. All those hosts are assigned to different linux ...
1
vote
1answer
924 views

Mod_ruid2 vs. SuPHP

I'm setting up a new server and I'm in doubt whether I install php/apache with SuPhp or mod_ruid2. I'd a lot of troubles with SuPHP before and it's definitely slower than mod_ruid2. But is mod_ruid2 ...
2
votes
1answer
677 views

Can you enable suphp to follow symlinks for the docroot?

I'm trying to clone a website into a user's home directory and symlink from my website folder to public_html. drwxrwxr-x 5 myuser myuser 4096 Dec 3 12:00 ./ drwxr-xr-x 4 myuser myuser 4096 Dec 3 ...
2
votes
1answer
363 views

Php Type - what is the difference? [closed]

I have VPS with kloxo installed on it. Inside the Web Server config section there is a possibility to select between 6 options of PHP Type which are as follow: suphp suphp_worker suphp_event mod_php ...
1
vote
2answers
217 views

Securing php on a shared apache

I'm going to install apache+php in a server where two users, A and B, will deploy their website. I'm trying to achieve isolation of users' space for security reasons: that is no scripts from site A ...
0
votes
1answer
544 views

500 error after installing su_php, permissions issues, “UID of script ”/index.php“ is smaller than min_uid”

I have just installed su_php on my server (amazon ec2 instance), It is required for 1 of my applications. Now, I am getting a 500 Internal server error when visiting all of my hosted sites. The ...
0
votes
1answer
619 views

Can't access PHP files through mod_userdir when suPHP is installed

After installing suPHP using DirectAdmin custombuild I can't access my PHP files with mod_userdir. e.g. http://ip/~user That's what I did: cd /usr/local/directadmin mv custombuild custombuild.old ...
0
votes
1answer
176 views

Files uploaded with php scripts are owned by apache on Directadmin

Uploaded files are owned by apache, I have DirectAdmin installed and also mod_suexec is loaded into Apache. So is there anyway to upload file with account owner under mod_php(php5_module)?
0
votes
1answer
220 views

Ubuntu with SuPHP and Wordpress - default perms of .htaccess file gives Apache 500 Error

Wordpress creates the .htaccess file with 600 file permissions (when permalinks are configured, etc.). I had to give it 655 before SuPHP would allow the homepage to load. I thought any files should be ...
1
vote
0answers
176 views

Suphp connection reset by peer in error logs

In my Linux server's logs I have this record nearly every 5 minutes. I couldn't find the reason for two weeks and I would be very happy if you can recommend me a way to diagnose the problem. It is ...
1
vote
1answer
446 views

Suphp and mod_fcgid on one server

Hi is it possible? My script not work with mod_fcgid, but work with suphp so I would like run one domain with suphp and other with mod_fcgid+xcache on one server. I don't want run every sites with ...
1
vote
2answers
541 views

Using SuPHP on a VPS

I am running a site with a WordPress CMS. I tried to install W3 Total Cache to speed up the site files, but I didn't know which opcode to pick (I am on a VPS), so I put a support ticket in with my ...
0
votes
1answer
308 views

CSF Log Watching

I run suphp so the uid of scripts is for the user not the webserver. My log files are also in /home/$user/logs/error.log CSF only monitors /var/log/apache2/error.log However because of my setup i ...
0
votes
2answers
420 views

Can i Run php5-suhosin with suPHP?

I currently run suPHP and have just installed php5-suhosin. Can I run them both together and if so where do I configure suhosin? As usually it is in the php5 ini file but suphp doesnt use that i dont ...
0
votes
0answers
180 views

Internal Server Error - Stack smashing detected

On certain pages on my VPS I get the following error. This happens with multiple VHOSTs. It has happened on both Wordpress and vanilla forums. It only happens when I run suphp rather than normal ...
0
votes
0answers
669 views

suPHP Causes Internal Server Error

WHen i enable suphp and disable php5 i get an internal server error, and these two in my error log. I have tried for ages to figure it out however it still will not work. It originally used to work ...
0
votes
1answer
780 views

500 internal error suphp

I'm using godaddy CentOS, Cpanle, suphp with easyapache and when i try to hit my php page i get 500 error and following lines in Apache log: [Fri Apr 20 04:23:48 2012] [error] [client ...
1
vote
1answer
540 views

fcgid / suExec + phpMyAdmin

I recently installed mod_fcgid and suExEc on my Ubuntu server following these instructions: http://www.howtoforge.com/Fhow-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-10.04 Since suExec does ...
1
vote
1answer
773 views

How do I change permissions and ownership after git-pull, to match folder?

The company I work for is using Git for deployment and because of this it overwrites specific permissions and ownerships. What is the best way to make sure that the folder ownerships and permissions ...
2
votes
1answer
459 views

Least, secure and enough permissions for public_html and folders and files under public_html using SuPHP for shared hosting environment

I have a server with SuPHP and DirectAdmin. Many (but not ALL) of my users are running Joomla and Wordpress. Will it make a problem if I chmod public_html and sub-folders to 700? Will they NEED more ...
0
votes
1answer
125 views

Adding a Python handler in suPHP?

I have the PHP handler working perfectly fine, but one of my friends would like to use Python as well. I have Python installed on my server at /usr/bin/python2 (for Python2) as well as /usr/bin/python ...
2
votes
2answers
416 views

Centos Suphp , How do I get Alias with Phpmyadmin working

I have configured my CentOS installation with Apache with suPHP. It works very well. But when I install PHPMyAdmin I get a permissions problem. Because PHPMyAdmin is located under ...
0
votes
2answers
494 views

php scripts are running under apache uid

I have a vps, running directadmin with apache 2 and php 5. It all worked fine, until today, since i discovered that PHP scripts are executed under apache:apache, and not under file's owner uid. This ...
0
votes
1answer
1k views

Mismatch between target UID (99) and UID (XX) of file

I'm kind of a server noob. I'm just running httpd server which uses Nobody as the owner of the processes. My php files are chmod as 755 with ownership as Apache:Apache. It triggers this error ...
0
votes
1answer
583 views

Apache, suPHP, CentOS. Memory limit being hit by gd, but memory limit is set much higher than when it dies

We have a server that's handling uploads. The memory limit is set at a ridiculously high level in php.ini (800 M).. however we have gd, which is managing the image resizing, but it is dying at about ...
0
votes
1answer
103 views

Restrict web access above a given directory (Apache 2.0 & suPHP)

How do I restrict web access to parent folders of the main website directory. For example if I have the following directories/files: / ├── home │   └── user │   │   ├── img.png │   │   ├── script.js ...
1
vote
2answers
517 views

Using /home folder for website (under Apache2.0 and suPHP)

Using suPHP my goal is to have my website point to my /home folder and every user within the home folder have their own index.html page. I don't currently have an index.html page in my /home folder, ...
0
votes
1answer
916 views

suPHP permission requirements for all files or only PHP scripts?

Generally with PHP, files/folders have a permission of 0777 when we want to write to them. suPHP forbids a permission of 0777. Instead, files are supposed to have a permission of 0644 and folders have ...
0
votes
2answers
789 views

Am I running PHP or suPHP

I am testing to see if I am running PHP or suPHP. when I issue phpinfo() I get back over 600 lines of data. The only mention of suPHP occurs here <tr><td class="e">Loaded Modules ...
0
votes
1answer
745 views

Apache: How to switch from CGI/FastCGI Server API to DSO?

Apache: How to switch from CGI/FastCGI Server API to DSO? I want to switch back and forth. I found this answer for the reverse step, but I need the the first part: Apache: How to switch to ...
4
votes
1answer
204 views

What exactly does SuPHP do?

And is it necessary? I've read a bunch of pages on it and I can't for the life of me actually figure it out, as opposed to what apache and just plain old php already do.
1
vote
2answers
1k views

Should I use suphp or mod_php for shared hosting?

I am considering using suphp. It seems that newly created files in php get ownership apache.apache and this can become an issue. Also it seems that monitoring of spam sent and load usage by php ...
0
votes
1answer
312 views

Gentoo server with suPHP cannot create child processes - out of memory

The exact error message is this: 12)Cannot allocate memory: couldn't create child process: /usr/sbin/suphp for <php script file> This is not a VPS, it's a generic Gentoo server. There is 1G ...
0
votes
1answer
253 views

Initial Fatal Error: Out of Memory on Wordpress after switching to suPHP

I recently rebuilt Apache to include mod_suPHP (previously using DSO). But after switching to suPHP, Wordpress sites hosted on my VPS would return something like, Fatal error: Out of memory ...
2
votes
1answer
462 views

php4 and php5 together, same extension, restrict 4 to a folder

Is there any way I could have php 4 and 5 installed in the same server, while keeping the same ".php" extension for both, and making it so only a specific folder (+subfolders) in the server run under ...
1
vote
2answers
2k views

Running mod_php and suPHP same time

I recently went from Debian Lenny with 5.2.x and was able to use mod_php for any php files that were not located in /home/ and suPHP for all the php files that were located in /home/. I did this ...
0
votes
1answer
451 views

Change location of error_log for userdir + suphp

I have needed to duplicate a FastCGI + suPHP, and I have re-created the setup but unlike the CentOS one my error_log files are all in /log/apache/ instead of the directories where the script triggered ...
1
vote
1answer
299 views

Security / Permissions when multiple sites accessing single directory : SuPHP

I am on a HostGator "Basic" Dedicated linux server. A current project calls for an image library that is accessible from multiple sites on the server. We are running SuPHP so each site has a ...
6
votes
2answers
4k views

Running phpmyadmin and suphp

I have a Debian Lenny web server. It is running apache2 with libapache2-mod-suphp. Unfortunately, suphp makes impossible to use phpmyadmin, as phpmyadmin is installed in /usr/share/phpmyadmin and ...
1
vote
1answer
2k views

suPHP not working

OS: Ubuntu 10.04 etc/suphp/suphp.conf: [global] ;Path to logfile logfile=/var/log/suphp/suphp.log ;Loglevel loglevel=info ;User Apache is running as ...