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
2
votes
2 answers

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 /usr/share/phpmyadmin. I do not want to use an extra vhost for every…
Sanchez34
  • 21
  • 1
2
votes
1 answer

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 php4? I have CentOS 5.5 x64 with whm/cpanel, so I…
hikari
  • 143
  • 1
  • 5
2
votes
2 answers

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 because I needed a default php.ini (given me all…
ParoX
  • 302
  • 1
  • 7
  • 21
1
vote
1 answer

how to prevent user from access another user file in php-fpm and nginx as suphp doing

I'm using Nginx and PHP-FPM and have many users , every user has his own user name and group but I see that every php execeutes run as id,uid,gid nobody, also I know that php-fpm.conf has user and group config as nobody I try to use pool but no luck…
ezak
  • 13
  • 1
  • 6
1
vote
0 answers

AWS Linux EC2 - How to install suPHP or FastCGI php hander

Seems I'm having permissions issue with AWS Linux EC2. Specifically, I am migrating a Joomla site, and extension and core updates from Joomla Admin won't install because of Apache user/group permission issues. I've done some digging and seems an…
BradM
  • 111
  • 3
1
vote
1 answer

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", group => "root", mode => 755, } …
Yamiko
  • 143
  • 1
  • 6
1
vote
0 answers

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 allowed to execute. My…
Daniel Marschall
  • 803
  • 4
  • 9
  • 20
1
vote
1 answer

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 exec ('usermod -a -G ' . $username . '…
Kshitiz
  • 119
  • 6
1
vote
1 answer

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 development team through their mailing list, but…
John WH Smith
  • 341
  • 5
  • 19
1
vote
0 answers

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 (user2) can only access this website directory.…
Chrysippus
  • 21
  • 2
1
vote
2 answers

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 should be able to read files in site B. To achieve…
Jack
  • 525
  • 1
  • 5
  • 13
1
vote
0 answers

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 inside error_log file. I use php 5.3.8 and litespeed…
trante
  • 131
  • 6
1
vote
1 answer

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 suphp because xcache don't work with it.
Kamil
  • 11
  • 2
1
vote
2 answers

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 host. The host came back telling me the…
Nick
  • 113
  • 5
1
vote
2 answers

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 screwed up the entire system, but the main problem…
user79003