Getting blank PHP page over Apache

前端 未结 8 1602
南方客
南方客 2020-12-14 10:37

In a newly setup digitalOcean cloud server (CentOS), I have installed php and Apache. The webserver is running fine:

[root@a2m5cent01 httpd]# service httpd s         


        
8条回答
  •  再見小時候
    2020-12-14 11:03

    Since everything looks at its default state, have you checked this part just for confirmation

    cat /etc/php.ini | grep log_errors

    If log_errors is disabled then enable it and check this below log after restarting httpd. /var/log/httpd/error_log

    -- Also check this part from php configuration.
    cat /etc/php.ini | grep error_reporting

    This value should be enabled by default so that display_errors will work.
    error_reporting = E_ALL

提交回复
热议问题