Questions tagged [suphp]

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

suPHP is a tool for executing PHP scripts with the permissions of their owners. In practice this means that a user can execute a script within his own files and folders. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

It is often used on systems where there are multiple clients present.

Official page

70 questions
1
vote
2 answers

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, but that would be the logical place to put a login…
puk
  • 285
  • 1
  • 6
  • 18
1
vote
2 answers

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 Loaded Modules core mod_log_config mod_logio prefork http_core…
puk
  • 285
  • 1
  • 6
  • 18
1
vote
2 answers

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 scripts is easier to monitor with suphp. However I am…
ujjain
  • 3,963
  • 15
  • 50
  • 88
1
vote
1 answer

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 different Owner:Group. The requirement is that PHP scripts…
filip
  • 125
  • 6
1
vote
1 answer

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 webserver_user=www-data ;Path all scripts have to be in …
amarc
  • 163
  • 3
  • 8
1
vote
0 answers

PHP giving 500 internal server error on new server

I am trying to run a simple PHP script which displays phpinfo() but I am getting 500 internal server error. What could be the reason? Is it because PHP handler is set to suPHP and I shall change it to DSO or CGI? Thanks
Ali
1
vote
2 answers

Apache + SuExec + php-fpm - how to set them up?

I wonder if there is a good guide on how to setup Apache + SuExec + php-fpm? I have a server which I am going to use several separate website. So, I need php to be run as site-owner user. As I can see, php-fpm is a little different from php-fcgi. Is…
Vladislav Rastrusny
  • 2,581
  • 12
  • 39
  • 56
0
votes
1 answer

Centos Apache 2.4 exec suphp bin with chmod 0444

I am stuck on this since fews days, I am using suPHP & Apache 2.4 on Centos 6 on VPS (OVH) since few years, then since sunday, the binary chmod is always restored to 0444 so it cannot execute and throws a 500. It works correctly when I set to it…
David
  • 1
  • 1
0
votes
1 answer

possible to stop other users from looking at files of other home directories?

i have to enable apache website access using suphp and enable ssh as well. i have enabled cagefs but i am not able to chroot each user into their own directories. I want that no user leaves his home directory to see files of other users. When is set…
Farhan
  • 4,210
  • 9
  • 47
  • 76
0
votes
1 answer

PHP 5.4 packages are installed but the server is using PHP 5.3

I'm trying to upgrade PHP 5.3 to 5.4 on a CentOS 6.7 VPS. Followed the Webtatic instructions here: https://webtatic.com/packages/php54/ Now at a stage where the 5.4 packages are installed, but PHP 5.3 is still being used and lots of Internal 500…
Rich Smith
  • 121
  • 2
0
votes
1 answer

Apache with suPHP does not honor php_admin_value in vhost config

I just found out that overriding php.ini settings in the vhost configuration does not work on Apache with suPHP. The system is Ubuntu Server Edition 14.04 LTS and I installed Apache + PHP like this: apt-get install apache2 apache2-mpm-prefork…
matpen
  • 387
  • 2
  • 4
  • 10
0
votes
1 answer

What are the security implications of the below apache conf file

I have a situation where I want to share a codebase when accessing via a subdomain. sub1.example1.com shares sub1.example2.com Both example1.com and example2.com have there on virtual host file. I have changed the document root of example1.com to…
jhodgson4
  • 101
  • 1
0
votes
1 answer

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 exploding with tmp allocations, etc). This is a…
EcchiOli
  • 1
  • 1
0
votes
1 answer

Apache fast-cgi and php-fpm - 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 and groups. Each group had www-data as a member as…
Kshitiz
  • 119
  • 6
0
votes
1 answer

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 file - how would i achieve disabling the single…
morleyc
  • 1,120
  • 13
  • 45
  • 86