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

learn more… | top users | synonyms

1
vote
1answer
29 views

setting up suPHP with puppetlabs/apache on centos 6.5

I am trying to set up suPHP on a centos 6.5 box with the puppetlabs/apache module. Apache Configuration file { "/var/www/vhosts": ensure => "directory", owner => "root", ...
0
votes
1answer
85 views

Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM

There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not googleable). Why might I choose one over ...
1
vote
0answers
31 views

suPHP won't allow access to PHP sources

I am running suPHP with Apache2 and PHP5.4 on a Debian Wheezy. I found out that .phps files won't be showed and access will result in a 403 page. The same file with equal chmod/chown/chgrp will be ...
0
votes
0answers
28 views

Apache2 + Chroot + PHP global prepend

I have a Debian Wheezy server with PHP 5.4 and Apache 2.4 . I have following problem: User A has home dir /home/user_a with public directory /home/user_a/public_html User B has home dir ...
1
vote
1answer
45 views

target uid/gid (510/510) mismatch with directory (500/500) or program (500/500)

Just updated Apache to 2.2.29 and setup mod_suphp through DirectAdmin, however, upon restarting all of my PHP sites start outputting this error in the suexec_log. target uid/gid (510/510) mismatch ...
0
votes
1answer
46 views

Apache + SuPHP + hundreds of visitors + web uploading = CPU on its knees. Any idea other than Switch To NginX?

In certain conditions, a CMS brings my server on its knees (0% CPU left while the server load is never above 20% usually, officially from mysqld, tons of wait and tml in mysql, mysql's slow log ...
0
votes
0answers
45 views

Installing suPHP with PHP5.5

I'm using PHP 5.5 on my CentOS server and installed using yum and the webtatic repository (package is php55w). I need to use suPHP on my server but I realize that the mod_suphp package available ...
1
vote
1answer
125 views

Creating new users using PHP not recognized by Apache 2.4

I have a server setup where new linux users are created using (PHP) shell_exec ( '/usr/sbin/useradd ' . $username ); exec ('usermod -a -G ' . $username . ' '. $username); #add user into the usergroup ...
0
votes
1answer
892 views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
1answer
52 views

SuPhp 500 internal server error

Hi i upgraded php to PHP Version 5.4.32 Now SuPhp generate a 500 internal server error If i switch to DSO it runs but that cause other php read write permission error I have tried with permission ...
-2
votes
1answer
40 views

Why am I getting a save dialog box when I try to open phpmyadmin? [closed]

I got my apache2 server running and using suphp. I get a php test file to work at /var/www/html and at /home/usr/public_html. When I step into server/phpmyadmin I get a file save dialog box. The link ...
0
votes
1answer
53 views

Override PHP options with .htaccess, DSO works (suPHP doesn't)

I am using .htaccess in a sub directory as below: php_value apc.cache_by_default 0 But this throws an error, if i use DSO, then it works. I understand with suPHP I have to ovveride with a php.ini ...
1
vote
1answer
118 views

suPHP : proper use of the chroot feature

I started using suPHP recently, and I'm spending an amazing amount of time debugging the configurations and different compile options to get something that actually works. I've tried contacting the ...
2
votes
1answer
101 views

suPHP and Apache DBD : change GID only

(Note: if you're familiar with suPHP setups and want to skip the question's details, you'll find a quick explanation of what I'm trying to achieve at the end) I am currently setting up a machine to ...
1
vote
0answers
86 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
152 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
66 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
2k 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 ...
3
votes
2answers
3k 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
115 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
85 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
39 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
555 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
284 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
194 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 ...
2
votes
1answer
1k 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
986 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
441 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
233 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
705 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
803 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
211 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
276 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
239 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
515 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
662 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
511 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
475 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
1answer
1k 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
645 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 ...
3
votes
1answer
1k 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
555 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
133 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
490 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
549 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
2k 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
668 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
108 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
556 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
1k 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 ...