服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. httpd
  3. 500内部服务器错误在cgi-bin中运行php文件
Intereting Posts
防止像Linux发行版那样手动安装firefox来自动更新 如何启动到BIOS – IBM System X3400 M3 计算DRBD元大小 Windows 2003隐藏了具有IP限制的匿名共享 如何使Nginx的子目录的文件path也包括index.php(Magento Multistore) 想要在Ubuntu上运行asp.net 4网站。 这是简单的吗? 错误标题:ap_headers_output_filter()将caching标题放入htaccess文件后 通过不同的接口路由某些域 SSH在authentication后挂起 什么是坚实的Windows Server 2008 VPS托pipe(最好)在欧洲? 单独的文件和目录权限由NFS共享上的Windows设置 无法在Mac的Zsh中使用stty 公钥authenticationOpenSSH的Windows端口 如何使用virt-install创buildguest虚拟机后删除guest虚拟机 无法通过Mac共享本地networking中的文件?

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