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
38
votes
8 answers

Where can I find error log files for PHP?

Where can I find error log files? I need to check them for solving an internal server error shown after installing suPHP.
user1010966
  • 473
  • 1
  • 6
  • 13
11
votes
2 answers

Get meaningful information when fopen() fails (PHP/suPHP)

How do I get something more meaningful than 'FALSE' when I can't open a file. $myFile = "/home/user/testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); When I use the die statement, can't open file is returned to the client, and…
puk
  • 16,318
  • 29
  • 119
  • 199
9
votes
2 answers

Why is PHP 5.5's OPcache showing zero hits? suPHP the culprit?

PHP 5.5's OPcache extension is enabled on my (shared) web host, but for some reason it always reports "0 hits" in the stats. Could that be because it's not compatible with suPHP? Or anyone have any other suggestions as to why there are 0 cache…
Simon East
  • 55,742
  • 17
  • 139
  • 133
7
votes
1 answer

Implementing log in alongside suPHP

How can a log in like feature be designed to use suPHP's file permissions. For example, if I have a website at www.example.com and the following two users with their own home directories, each with a php script test.php, and a validateUser.php…
puk
  • 16,318
  • 29
  • 119
  • 199
5
votes
1 answer

Missing suphp in Ubuntu 16.04

I am working on a new LAMP server based on Ubuntu 16.04, but it seems there are no libapache2-mod-suphp package available in the default repositories. On my formerly Ubuntu server it was available via a simple apt-get install…
Halacs
  • 832
  • 2
  • 8
  • 19
4
votes
2 answers

memory_limit = 1024M, still, Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp

I know that there is another question with a similar title/error, but i think this is a different problem. Context: Running wordpress 3.6.1, PHP 5.3.27, MySql 5.1.70, on a shared Linux host, 1gb Memory. .htaccess: suPHP_ConfigPath…
bentael
  • 1,987
  • 2
  • 21
  • 27
3
votes
2 answers

Joomla 2.5 and Global Configuration admin page

WE recently upgrade our site from Joomla 1.7 to Joomla 2.5. Everything seems to be working fine, except one single page, which is the global configuration page. See: https://i.stack.imgur.com/06Elb.jpg I have tried reuploading the administrator…
3
votes
1 answer

How to enable mod_rewrite in php.ini on shared hosting

I recently hosted my website in shared hosting the sites mod_rewrite is not working. I there anything I have to add in php.ini file to enable the mod_rewrite option in php.ini file.
vinoth
  • 471
  • 3
  • 7
  • 14
3
votes
1 answer

Problem with imagick module - PHP

I have a strange error in the image magick php module. ImagickException [ 1 ]: Postscript delegate failed '/tmp/magick-XXxIARsr': wd7C.cache @ error/pdf.c/ReadPDFImage/638 From what it seems it's a problem with authorization. I have suphp and suexec…
Stéphane Goetz
  • 682
  • 1
  • 7
  • 16
3
votes
1 answer

php.ini with suPHP in .htaccess

My server uses suPHP and so each website has it's own php.ini file. My host recommended adding the following in my .htaccess file: suPHP_ConfigPath /home/user/public_html This basically points to the site's…
iagdotme
  • 1,033
  • 2
  • 21
  • 38
3
votes
1 answer

Is there suPHP alternative?

I recently installed Ubuntu 16.04 and found out that suPHP is deprecated.... Is there any alternative way to setup the same thing like running php script as with each user's privilege? I tried some directions using fastcgi, fcgi, fpm. But I'm not…
Genie
  • 185
  • 1
  • 8
3
votes
1 answer

SoftException in Application.cpp:422: Mismatch between target UID (584) and UID (99) of file

I was setting up the Apache on CentOS server. My first testing script index.php as well as any others was causing: 500 Internal Server Error I opened the log file (in my case /usr/local/apache/logs/error_log and /usr/local/apache/logs/suphp_log)…
Adam Bubela
  • 9,433
  • 4
  • 27
  • 31
3
votes
1 answer

Switched from SuPHP to FCGI - CURL error 23: Failed writing body

We just updated our server (WHM) to use FCGI instead of SuPHP, and now we're getting errors from CURL: [curl] 23: Failed writing body (0 != 8) I'm guessing this is related to ownership / permissions, but I'm not sure. Where does CURL write body's…
MattD
  • 179
  • 1
  • 13
3
votes
2 answers

Should I use FastCGI or SuPHP for my VPS?

I have a VPS running Centos and a Cpanel installation. 2 GB RAM. It currently runs Apache 1.3.42. I could also use 2.0.64 or 2.2.22, should I upgrade? PHP (5.3) runs as SuPHP. I'm wondering if I should stick with the current setup? Or should I…
Aaron Kreider
  • 1,705
  • 5
  • 22
  • 44
2
votes
2 answers

How do I force Git to use the owner and permissions of the enclosing folder?

I have been noticing that when I pull changes to my server that it automatically adds group write access to the files that are changed. However since I am using suPHP that causes a 500 error, so I am needing to disregard any permissions and…
OpensaurusRex
  • 842
  • 1
  • 12
  • 30
1
2 3 4 5 6