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.

80 questions
0
votes
1 answer

smarty and suphp permissions - saving as different user

Right now i have to give 777 permission to the directory where files are saved and instead of saving it as "user1" is saving it as apache -rwxrwxrwx 1 apache apache 6865 Aug 30 17:20 homepage.tpl.php How can the files be saved as user1 and without…
웃mauri
  • 179
  • 2
  • 14
0
votes
2 answers

suPHP using unbuffered output?

I have a script on a shared host that uses suPHP. I need unbuffered output (so I can flush before starting a lengthy subroutine) but can't find anyway to get it working, so my flush calls basically just get ignored. I have tried tweaking the…
ima747
  • 4,667
  • 3
  • 36
  • 46
0
votes
4 answers

suPHP execute PHP script as root

I have created several websites. Now I need to perform root tasks. I created a webplatform and installed. root owns all scripts in /var/private-www/ and they are chmodded (0777). In /var/private-www/test.php stands: . My…
www.data-blogger.com
  • 4,076
  • 7
  • 43
  • 65
0
votes
1 answer

suphp internal server error 500. file "../index.php" is writeable by others suPHP 0.7.2

I have just uploaded a new website, but I keep showing the following error: Internal Server Error File "/home/mirahcom/public_html/pay/cdash/login.php" is writeable by others Does anyone know why this issue occurs?
0
votes
1 answer

Phpinfo shows the wrong php handler info

I set the php handler as suphp in cPanel WHM When i execute /usr/local/cpanel/bin/rebuild_phpconf --current it shows php handler as suphp But when i check phpinfo it shows FPM/FastCGI Which one is the right info?
Utku Dalmaz
  • 9,780
  • 28
  • 90
  • 130
0
votes
1 answer

what is the importance of suPHP?

this might be a real noob question , but I couldn't find an answer. when using regular PHP , if we execute echo `whoami`; it outputs apache. but when suPHP enabled, above code will output the user's name. I'm wondering how this helps to improve…
lasan
  • 199
  • 1
  • 13
0
votes
1 answer

Mistakenly Deleted suphp.conf file

I used apache 2.2.4 webserver in my server and it uses su_php but I mistakenly deleted http-suphp.conf file and my website doesn't run. I searched for any solution but I got nothing. the path of su_php in my httpd.conf file is :…
Hossein Ahmadi
  • 839
  • 2
  • 11
  • 24
0
votes
1 answer

suphp error on suPHP_UserGroup

i'm using ubuntu 15.04. I have installed suphp (repo) with the guide from this url: Install suphp with apache on ubuntu After I define the virtual host like this example: ServerName some-site.com ServerAlias…
Yehuda
  • 157
  • 12
0
votes
1 answer

php ‘apache_note’ function whilst SUPHP is active

I am using maxminds geoip apache mod extention. It requires the php function 'apache_note'. However while suphp is active I am unable to access the function. Ideally I would like to use suphp as I understand it offers security benefits. Is it…
Pablo
  • 4,273
  • 7
  • 33
  • 34
0
votes
1 answer

suPHP / PHP script timeout

After my host enabled suPHP, a previously working script has been timing out after ~3min (it varies, but the script has not run for more then 3, AFAIK). The odd part is, the script is not throwing any errors that I can see (and yes, full PHP error…
phpwns
  • 451
  • 1
  • 4
  • 10
0
votes
1 answer

Script timed out before returning headers: script.php, refererer http://

One of my applications is rendering a huge PDF-file. After adjusting some settings at my PHP I noticed suPHP throws an error 500-page after 5 minutes of running the script. However, I don't want to disable the maximum time since it's an webserver…
user443346
0
votes
0 answers

suphp run files as different owner from same directory

I'm trying to use suphp to run php scripts as different users from within the same directory. For example, I have /var/www/ as the webroot which is owned by www-data and inside I have 2 files with different ownsers: a.php (chmod 640, chown…
user1220022
  • 11,167
  • 19
  • 41
  • 57
0
votes
1 answer

move_uploaded_files works with suPHP, but not DSO

i have a dedicated server with one site. i have DSO enabled. i have to have it enabled as suPHP is a serious resource hog. the load time between DSO and suPHP is night and day. i have an issue with move_uploaded_files. under DSO PHP is running as a…
John H
  • 1
0
votes
2 answers

virtualhost configuration on centos6 vps for a symfony2 project failing with 500 error

I have a VPS running Centos6 (although if my luck so far carries on I might throw it out of the window!). I am trying to get a small symfony2 project up and running but Im bashing against this error message in the server logs. There are other…
DevDonkey
  • 4,835
  • 2
  • 27
  • 41
0
votes
2 answers

Apache 2.4 with FastCGI php5-fpm on ubuntu 14.04

I am trying to replace SuPHP with FastCGI. Earlier, I had folders with different owners and groups. Each group had www-data as a member as well. When any php file was run using the browser, it was run as the owner of the file. So if a file was owned…
Kshitiz
  • 2,852
  • 5
  • 32
  • 41