This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Issues with Drupal and Sentora (WSOD) due to proc_open and escapeshellarg
#1
Issues with Drupal and Sentora (WSOD) due to proc_open and escapeshellarg
So, I'm posting this here in hopes someone can help explain what this is and why it caused problems.

Basically I got Sentora up and running with 6 of my websites on a VPS through digitalocean (fantastic web hosting provider btw). All the sites were running fine, until I moved my biggest Drupal site with the most modules and customizations.

I was getting Drupal white pages (WSOD - white screen of death) all over the place on random pages. I would view a content page, it would be fine, but then when I went to edit it, bam, WSOD and no idea what was going on.

Also when I tried to change things in the administrative area of Drupal, most was okay, but some pages like the configuration page for Image settings (image Magick and GD2) would show a WSOD.

Very strange.

Well, I could never figure out how to enable the errors to show, I had them enabled and also added the necessary info to the index.php to turn on display of errors, but I still got a WSOD (if you know how I can fix that, please let me know in the comments). So since I wasn't getting anything helpful, I enabled the database logging module.

Then when I reloaded the pages that were going WSOD, the Drupal log started to show the errors.

Basically errors came up stating issues with escapeshellarg and proc_open being disabled.

The errors were something like this:
sentora proc_open() has been disabled for security reasons in
and
sentora escapeshellarg() has been disabled for security reasons in

Having no idea what these are or why they were coming up, I kept searching Google. Then I came across something called Suhosin that Sentora uses. So I took a wild guess and figured these two things being disabled were probably causing my issues. I don't know what these are, but none of my shared hosting providers I have used in the past had these disabled, as I never came across this issue. So I don't know why Sentora disables these by default. You would think they wouldn't be.

Anyway, I found out you can go into the Sentora control panel and edit the code directly in the interface.

You can edit the Suhosin values by going to the control panel "Module Admin" > "Apache Config" > "Suhosin Valueā€¯

The text box has these values:

php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_nice, proc_open, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"

I basically removed these items:
escapeshellarg and proc_open
popen, pclose, proc_nice, proc_open, proc_terminate, proc_get_status, proc_close

I tried just removing escapeshellarg and proc_open, but the error for proc_open kept appearing in the log files and I was still getting the WSOD. So finally I just decided to try removing everything proc related.

Then after restarting Apache and loading the page, everything magically started working again. no more WSOD and no more errors in my log file.

I'm posting this here in case anyone else is out there searching for Drupal Sentora issues due to these two things. Hopefully this post will save you hours of research and pulling your hair out.

Also if you can comment or share information around this stuff, that would be greatly appreciated!

Thanks!
Reply
Thanks given by:


Messages In This Thread
Issues with Drupal and Sentora (WSOD) due to proc_open and escapeshellarg - by americanninja - 04-10-2015, 12:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Is Sentora dead? rajeevrrs 2 3 ,971 12-17-2022, 09:20 AM
Last Post: TGates
Sentora debug and error files johnnyp 0 1 ,590 10-27-2022, 06:16 PM
Last Post: johnnyp
Transfer Account to another Sentora BenI 1 3 ,333 07-21-2022, 07:19 PM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 2 Guest(s)