服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. httpd
  3. 500内部服务器错误在cgi-bin中运行php文件
Intereting Posts
在执行iptables NAT时获取“请求者”的IP 用于静态IP主机的Cisco ASA 5505networking路由 ARRredirect规则(错误404) scp到远程服务器失速,无法隔离原因 在RAID10或RAID5上运行交换? Nginx的正则expression式configuration为404图像 为nginx中的每个元素设置caching/过期时间? 尽pipeASA 5510上存在安全级别差异,但VLAN之间的stream量仍然被阻塞 在Debian 9下的Xen上使用virt-manager创build虚拟机Stretch接收错误:'operation failed:Failed to balloon domain0 memory' 当没有人login时,净使用不能连接到再次共享 后缀更多alias_maps中的来源,首先匹配? cmd.exe版本比较? 即使在standalone.xml文件中正确绑定了IP地址,也无法远程访问jboss 部署后,我可以更改Google Compute Engine项目的区域吗? Django + NGINX httpsredirect(414请求URI过大)

500内部服务器错误在cgi-bin中运行php文件

500内部服务器错误时显示

我访问http://mysite.com/cgi-bin/test.php

test.php的

<p> title here</p> <?php echo "hi"; ?> 

错误日志显示

  • Apache2主虚拟主机
  • Apache不会停止启动
  • MOD_REWRITE不能创build正确的path
  • 向httpd.conf文件添加新域时出现问题
  • Apache – Files指令不起作用
 (8)Exec format error: exec of '/var/www/cgi-bin/test.php' failed'. Premature end of script headers: test.php. 

通过添加解决它

  AddHandler application/x-httpd-php .php 

  • plesk 10 – 我一直在删除和添加子域,但他们仍然出现
  • 这是正常的吗? 多个httpd进程
  • 将https子域redirect到www域
  • 无法重新启动Apache(HTTPD)
  • httpd失败 – 状态未知?

您需要AddHandler语句,否则脚本将作为CGI执行,而不是PHP。

  • Apache(httpd)为网站主页创build一个位置指令
  • 奇怪的请求到我的主机名,如“server.hostname.xx OPTIONS * HTTP / 1.0”
  • 设置http:// domain和http:// ip来显示不同的目录
  • 我可以编译Passenger(mod_rails / mod_rack)来build立静态链接的Apache httpd吗?
  • 当其他“子域”存在时,重写subdomain.domain.com
  • httpd在通过rc脚本加载时不加载httpd.conf文件
  • 是httpd端口打开什么的
  • 在Fedora 16上降级httpd
  • Apache阻止来自<ip>客户端的有效允许
  • 这iptables规则禁止访问服务器使用https:// …:7777?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy