Displaying PHP errors when : The localhost page isn’t working (on Ubuntu)

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=8TY_yiTdDhM



Duration: 6:02
32,712 views
129


How to display php errors when your page says :
The localhost page isn’t working

3 way to see php errors :

1) add script in php file.
ini_set("display_errors", "1");
error_reporting(E_ALL);

2) check apache.log
sudo cat /var/log/apache2/error.log

3) setting "display_errors = On" in php.ini
- sudo vi /etc/php/5.6/apache2/php.ini
- restart apache with : sudo service apache2 restart




Other Videos By Ambar Hasbiyatmoko


2017-04-18Samba Tutorial (Centos 7) - samba share with password
2017-04-16Can't install Arduino (Ubuntu16.04) - xdg mime: file 'lin/cc.arduino.arduinoide.xml' does not exist
2017-04-16Phpmyadmin Tutorial - Create a user and grant privileges only their own databases
2017-04-15Membuat server web sendiri (laptop + ubuntu 16.04) menggunakan ISP firstmedia
2017-04-14Samba (Centos 7) - install and share folder from centos 7 to windows 7
2017-04-13Setting codeigniter in subfolder on nginx (ubuntu 16.04)
2017-04-12Codeigniter error (ubuntu) - mysqli::real connect: HY000/1698: Access denied user 'root'@'localhost'
2017-04-12Codeigniter (Ubuntu 16.04) - The Encrypt library requires the Mcrypt extension.
2017-04-11Install Android Studio on Ubuntu 16.04
2017-04-10Samba (centos - windows7) : Windows cannot access centos. You do not have permission to access.
2017-04-10Displaying PHP errors when : The localhost page isn’t working (on Ubuntu)
2017-04-08Virtualbox - Port forward web server (guest to host)
2017-04-07Slick jquery slider - Fix image width
2017-04-05Virtualbox on centos 7 - Kernel driver not installed (rc=-1908)
2017-04-04Codeigniter + Nginx configuration on Ubuntu 16.04
2017-04-04install nginx + php5.6 on Ubuntu 16.04
2017-04-03Virtualbox error - Failed to create the hard disk storage, with UUID already exists
2017-04-03Mariadb (Ubuntu) - ERROR 1698 (28000): Access denied for user 'root'@'localhost'
2017-04-02Virtualbox on Centos 7 - No package kernel-devel-3.10.0-327 available.
2017-03-31Install virtualbox on Centos 7
2017-03-28Ubuntu, Pgadmin(delete DB) - An error has occurred: database is being accessed by other users.



Tags:
php
localhost
error
setting
apache
script
page
log
error_reporting
linux
ubuntu
terminal
check