本地主机 HTTP 错误 500

本地主机 HTTP 错误 500

我遇到一个问题,当我将内容添加到我的页面 index.php 时,它显示“此页面不起作用,本地主机目前无法处理此请求。HTTP 错误 500”

在出现此问题之前,我的端口有问题。我刚刚将端口 80 更改为 8080

我正在使用 Xampp。以下是来自 Xampp Apache2 的日志:

[Sun Jan 24 16:21:54.168107 2021] [ssl:warn] [pid 74410] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 24 16:21:54.168156 2021] [ssl:warn] [pid 74410] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 24 16:21:54.194898 2021] [ssl:warn] [pid 74411] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 24 16:21:54.194914 2021] [ssl:warn] [pid 74411] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 24 16:21:54.194983 2021] [lbmethod_heartbeat:notice] [pid 74411] AH02282: No slotmem from mod_heartmonitor
[Sun Jan 24 16:21:54.202714 2021] [mpm_prefork:notice] [pid 74411] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1i PHP/8.0.1 mod_perl/2.0.11 Perl/v5.32.0 configured -- resuming normal operations
[Sun Jan 24 16:21:54.202780 2021] [core:notice] [pid 74411] AH00094: Command line: '/opt/lampp/bin/httpd -E /opt/lampp/logs/error_log -D SSL -D PHP'

感谢帮助!

相关内容