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
1
vote
1 answer

centos Web Panel (CWP) htaccess redirect issue (mod_rewrite)

I have recently installed centos cwp and ran to an issue with htaccess where it does not redirect correctly to the index.php file. The code below is working offline on local host on Xampp and it actually redirect any url to index.php for the files…
Ramin Rabii
  • 359
  • 4
  • 14
1
vote
0 answers

suPHP error: not within configured docroot

On my Ubuntu server 14.04 I've changed the Apache document root thanks to a symbolic link. I firstly renamed the original /var/www directory to /var/www-old than I created a symbolic link to the new document root: sudo ln -s /srv/datadisk01…
Duddy67
  • 836
  • 2
  • 10
  • 26
1
vote
0 answers

exec() with SuPHP and SafeMode Off (php.ini local) show wrong path and fail execution

Try this But on shell see--> sh:…
abkrim
  • 3,512
  • 7
  • 43
  • 69
1
vote
1 answer

Database connection error. Magento 1.7 with correct login info using PHP 5.4

While trying to connect with Installation Wizard, I get a Database connection error. Though I was able to set-up a basic user-login on Codegniter to the same database using the same credentials. So that should eleminate this common assumption. What…
Shane
  • 1,629
  • 3
  • 23
  • 50
1
vote
2 answers

Disable MOD_PHP in vhosts and activate suphp

I need to desactivate mod_php on a vhost and let it working for other vhosts, I need to disable it in order to activate suphp. here is the vhost config : Options +Indexes ServerName www.native.org ServerAlias native.org …
Ali Mezgani
  • 1,229
  • 3
  • 13
  • 19
1
vote
0 answers

Accessing Enviroment Variables in PHP Script while using suPHP

I'm able to setup suPHP successfully and its running fine. But I'm facing a problem in accessing my environment variables which I was setting in /etc/init.d/httpd. Before using suPHP I was able to access them in my PHP scripts using variable order…
1
vote
0 answers

Enable XDebug PHP debugger for only specific websites

I'm running a CentOS web server with suPHP and I need to enable the XDebug PHP debugger for only a few select websites. I've added the suPHP_ConfigPath setting in the .htaccess file so I can have a custom php.ini file for these websites, and I've…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
1
vote
0 answers

Global file access with suPHP

I need users to have read only access to global files. Currently I add a symlink to the global files into the user directories. This seems to work until I access a file within the symlinked directory. At that time, I receive the following errors…
Jason McCreary
  • 71,546
  • 23
  • 135
  • 174
1
vote
1 answer

Drupal multisite setup with suExec/suPHP and symlinks

I want to have one Drupal copy to maintain, but a lot of sites running from that copy. I'm using cPanel to create users and add bandwidth and disk space limits, therefor I need to place uploads within the cPanel user's home dir. A user's site config…
hhorn
  • 101
  • 1
  • 7
0
votes
1 answer

Need help implementing PHP sessions in suPHP

I asked this question before here but user CheekySoft pointed out that I was "asking how to implement my proposed solution" where instead I should just "state my problem and ask for solution ideas". So here goes. On the linux server I have the…
puk
  • 16,318
  • 29
  • 119
  • 199
0
votes
2 answers

Using PHP to load html page inhibits any attempt at using up to date css file

I have user permissions on my .html files other than 0744. They are actually set to 0700 so to get around this, I have suPHP set up, and I use a load.php file to access and load all the files. The file in question is a simple .html file like…
puk
  • 16,318
  • 29
  • 119
  • 199
0
votes
1 answer

Is it possible to use suPHP to return an entire HTML file?

For the sake of argument, lets assume that I can't change my file permissions. Furthermore, assume all my .html files have the permission 0700 like so: -rwx------ 1 user user 0 2012-01-09 19:50 aquinas.html -rwx------ 1 user user 0 2012-01-09 19:50…
puk
  • 16,318
  • 29
  • 119
  • 199
0
votes
1 answer

Set up a webserver for multiple users and makes PHP scripts run under their account (with their permissions)

I'm setting up an Apache 2.2 webserver for multiple users (having the "developers" profile). They need to execute PHP scripts/applications (both home-made and acquired) and run I tried using *mod_userdir* but the problem is that Apache (thus the…
CDuv
  • 2,098
  • 3
  • 22
  • 28
0
votes
1 answer

Find values of suPHP variables (ie. ${HOME}, ${USERNAME}, ${GROUPNAME}…)

I keep getting 500 (Internal Server Error) and I suspect this is because I am setting docroot to docroot=${HOME}*. I want to 'peek under the hood' because I suspect ${HOME} is what is causing the problems. How can I do this, or at least write all…
puk
  • 16,318
  • 29
  • 119
  • 199
0
votes
1 answer

Need Apache to ignore options in .htaccess

I run a hosting service for student at my our faculty. We run PHP with suPHP and for security we need symlinks to be set to "SymLinksIfOwnerMatch". This has the very unfortunate error that if people have htaccess "Options FollowSymLinks" or "Options…