Menu

#162 mysql deprecated: White screen of death

V8.1.xx
open
chatelao
1
2015-08-09
2015-08-09
Anonymous
No

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

$mysql = mysql_connect("example.com", "user", "password");
mysql_select_db("test");
$res = mysql_query("SELECT 'the mysql extension for new developments.' AS _msg FROM DUAL", $mysql);
$row = mysql_fetch_assoc($res);
echo $row['_msg'];
?>

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>

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.