doukui4836 2019-07-19 21:27
浏览 250

PHP脚本返回500内部服务器错误

I get 500 error for PHP scripts, but HTML files are served without a problem.

Here are my configs:

httpd.conf

    <VirtualHost 127.0.0.1:8080>
    ServerName example.com
    DocumentRoot /var/www/example/data/www/example.com
    ServerAdmin example@mail.com
    AddDefaultCharset off
    SuexecUserGroup root root
    CustomLog /var/www/httpd-logs/example.com.access.log combined
    ErrorLog /var/www/httpd-logs/example.com.error.log
    <FilesMatch "\.ph(p[3-5]?|tml)$">
        SetHandler application/x-httpd-php5
    </FilesMatch>
    SetEnvIf X-Forwarded-Proto https HTTPS=on
    ScriptAlias /php-bin/ /var/www/php-bin-isp-php56/example/
    AddHandler application/x-httpd-php5 .php .php3 .php4 .php5 .phtml
    Action application/x-httpd-php5 /php-bin/php
    ScriptAlias /cgi-bin/ /var/www/example/data/www/example.com/cgi-bin/
    ServerAlias www.en.tour.mosmetro.ru
    DirectoryIndex index.html index.php
    </VirtualHost>
    <Directory /var/www/example/data/www/example.com>
        Options +ExecCGI
    </Directory>

error log

[Sat Jul 20 00:13:42.939412 2019] [cgi:error] [pid 6532] [client 127.0.0.1:39994] End of script output before headers: php
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大