Getting blank PHP page over Apache

前端 未结 8 1595
南方客
南方客 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

    0 讨论(0)
  • 2020-12-14 11:09

    I have the same issue... The problem is in the iptables. (It seems like it)

    Try with:

    service iptables stop
    ## check if it stop...
    service iptables status
    

    Then try to reload the page again.

    If you had other solution please share.

    [edit] Restarting the iptables service is working for me.

    Try:

    service iptables restart
    
    0 讨论(0)
提交回复
热议问题