PHP Not Working After Following Tutorial On Setting Up (LAMP) stack on Ubuntu 14.04
Hello! I started a new Ubuntu 14.04 droplet and followed the tutorial here:
Everything seemed to be going ok until i setup a simple test php page that just had php_info() on it. When I attempted to view the page online I got an HTTP Error 500. My apache error log reported:
[Sat Jul 30 12:38:01.847132 2016] [:error] [pid 6164] [client xx.xx.xx.xx:51976] PHP Fatal error: Call to undefined function php_info() in /var/www/html/info.php on line 3
Unsure what to do from here. Doing a php -v from the command line confirms PHP is installed and i’m not seeing errors (I did reboot Apache several times):
PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright © 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright © 1999-2014, by Zend Technologies
Googling for this didn’t seem to solve the problem. Suggestions?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.