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!
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!