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

suPHP setting user/group to virtual host and using docroot

I am trying to get suPHP working, i followed tutorials and seem to have it installed correctly. now my issue is this 1) i set docroot in the suphp.conf file, but its set to /var/www by default. The problem I have with this is that my domains are…
Eli
  • 4,329
  • 6
  • 53
  • 78
2
votes
1 answer

PHP scp file from remote server

How do I from a PHP script scp a file from a remote server ? I have tried shell_exec("scp remote:file dir") but that does not work because user apaache does not have a shell associated on the remote server, and can therefore not do ssh. I have…
Axel Bregnsbo
  • 3,773
  • 2
  • 22
  • 16
2
votes
1 answer

suPHP causing error for directory ownership

[Fri Mar 11 14:48:20 2016] [error] [client 181.236.205.241] SoftException in Application.cpp:594: Directory /home/myuser/public_html is not owned by myuser How can I fix this error without giving the directory the ownership myuser. It MUST be…
Toskan
  • 13,911
  • 14
  • 95
  • 185
2
votes
1 answer

apcu and suPHP - possible?

Is it possible to use apcu (as a php 5.5 module) in combination with suPHP? The answer to What is best PHP Handler for APC says no: suPHP also cannot work with an opcode caching extension such as eAccelerator or APC but this post is over a year…
Urs
  • 4,984
  • 7
  • 54
  • 116
2
votes
1 answer

What is the simplest way to check if PHPSUEXEC or SUPHP is enabled, with a php script

I need to check if PHPSUEXEC or SUPHP is enabled. How can I do that within a php script?
Ali Selcuk
  • 145
  • 8
2
votes
1 answer

how to configure apache to run pages with a different group id than files

I have a vps with godaddy with the following: centos 6 latest apache whm/cpanel I am running with suphp enabled. files and folders are all 755,644 i have a program located at: /home/programname/public_html this program edits files located on the…
Keefer
  • 21
  • 3
1
vote
1 answer

Memory and performance with PHP as DSO, FCGID or SuPHP and xCache

This question might be a bit long and specific, but I have been attempting to find conclusive answers to the following questions for about a month now and I have yet to find decisive information. A question as specific as this is hard to generalize…
eleven59
  • 137
  • 4
  • 15
1
vote
3 answers

Apache not allowing me to enter folders belonging to other users

I am trying to set up PHP sessions for suPHP (see here). I need to have my php validation file owned by the user so that when suPHP kicks in, it will do so for the correct user. However, I also don't want the user to have access to that file, o.w.…
puk
  • 16,318
  • 29
  • 119
  • 199
1
vote
1 answer

Is there any security with suPHP?

I asked this question a while back and even though I put up several bounties, I never got much of an answer (see here). More generally, I want to know if there is any concept of security with suPHP? What's to stop anyone from going…
puk
  • 16,318
  • 29
  • 119
  • 199
1
vote
0 answers

htaccess, Suphp and mod_rewrite issue

I bought a script called fastAmazon. The developer wrote it for traditional server config using mod_rewrite. My hosting (site5) utilizes SuPHP which I've learned requires that the php config rules be out of htaccess and into the php.ini file. Okay…
Ben Racicot
  • 5,332
  • 12
  • 66
  • 130
1
vote
2 answers

How do I disable suphp on ubuntu 10.04 server

I have put together a small ubuntu 10.04 server with apache2 and php for use only for testing purposes. I am finding suphp keeps getting in my way. Doubtless this is a useful tool for security etc, but right now, as this is only a local testing…
Finglish
  • 9,692
  • 14
  • 70
  • 114
1
vote
1 answer

Is it possible to restrict all server requests to one php script

For the moment assume that I have access to my own server so I can write whatever index.html file I want. Is it possible to only allow myself to call one single php script on the server. For example if I have the following scripts in the /var/www/…
puk
  • 16,318
  • 29
  • 119
  • 199
1
vote
2 answers

how to check if my shared hosting has suexec or suphp

I need to check if my shared host has suexec or suphp. I found this documentation: http://www.alain.knaff.lu/howto/PhpSuexec/ At the very end of this document there is a test. When I run the test, it says: Warning: system() has been disabled for…
camcam
  • 2,585
  • 8
  • 49
  • 65
1
vote
0 answers

SuPhp versus no suPhp script

I have an error, with Suphp activated, no problem, but with Suphp not activated I have this error appears I suppose in this case imagewebp is not supported by the server. Do you know how to resolve this ? [26-Dec-2019 02:17:59 America/New_York] PHP…
Arkan
  • 11
  • 1
1
vote
1 answer

Trying to run php files which have been created by svn hook with owner nobody, suphp enabled

I have created a svn repository hook which will update a working copy on the server (main dev version) depending on directory. This is now working properly, but only if the working copy is owned by nobody. Problem with this is that with suphp…
jaz9090
  • 951
  • 10
  • 22