mysql deprecated: White screen of death
Simple, web-based address & phone book
Brought to you by:
chatelao
Application works on my old server (Debian (6.0.10) with PHP 5.4.43, but not on the replacement Ubuntu 14.04.3 LTS with PHP 5.5.9. Simply ger the white screen of death (WSOD).
Fixed the permissions issues on the directories. Still got the WSOD.
Much debugging later, came accross:
http://php.net/manual/en/mysqli.quickstart.dual-interface.php
Changed /etc/addressbook/apache.conf
to include
php_admin_flag display_errors on \# error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED; \# php_admin_value error_reporting 22517 \# error_reporting = E_ALL ~E_DEPRECATED; php_admin_value error_reporting 24575
Application now works as expected (limited testing, no WSOD)
The full /etc/addressbook/apache.conf
Alias /addressbook /usr/share/addressbook <Directory /usr/share/addressbook> Options FollowSymLinks RewriteEngine on # RewriteBase / # AllowOverride None <IfModule mod_php5.c> php_flag register_globals off php_admin_flag display_errors on # error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED; # php_admin_value error_reporting 22517 # error_reporting = E_ALL ~E_DEPRECATED; php_admin_value error_reporting 24575 </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> # access to configtest is limited by default to prevent information leak <Files configtest.php> order deny,allow deny from all allow from 127.0.0.1 allow from myClient.myDomain.net </Files> </Directory> <Directory /usr/share/addressbook/include> Deny from all AllowOverride None </Directory> \# users will prefer a simple URL like http://mail.example.com #<VirtualHost 1.2.3.4> # DocumentRoot /usr/share/addressbook # ServerName web.myDomain.net #</VirtualHost>
Anonymous