Friday, December 23, 2016

phpsysinfo no longer works in Ubuntu 16.04 LTS

Symptom:

- You see either of the below two error messages when trying to browse a phpsysinfo web page.
- The problem is observed in both upgraded system and fresh install with 16.04 and 16.04.1




Cause:

- The first issue is due to missing PHP 7 mod for Apache 2 web server
- The reason for second issue is unknown but the latest phpsysinfo in github already resolve the issue.

Solution:

The first issue can be resolved by installing the required mod:
# apt-get install libapache2-mod-php7.0
The second issue can be resolved by replacing the phpsysinfo with latest version for github
# mv /usr/share/phpsysinfo /usr/share/phpsysinfo~
# git clone https://github.com/phpsysinfo/phpsysinfo.git
# mv /usr/share/phpsysinfo~/phpsysinfo.ini /usr/share/phpsysinfo/phpsysinfo.ini