我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

nginx上的php停止执行php代码

I recently set up nginx and php. PHP is running and executes index.php just fine. It will output echo "hello world!"; just fine.

However after that, I'm including several PHP files and once this happens, it starts displaying the PHP code in the browser -- not executing the code.

What can I do to troubleshoot this? Any ideas?

There was someone on serverfault with a problem i think is similar to yours, maybe worth checking: https://serverfault.com/questions/247093/getting-php-to-work-with-nginx

近期文章

  • 获取具有唯一属性值的节点
  • .htaccess并在URL中删除文件名
  • 为内页添加第二个侧边栏
  • 在getJSON jquery中传递输入值
  • 有页面限制的BigCommerce API问题
  • WHILE中的IF语句不起作用
  • 在PHP中的引用中解释PHP
  • 使用AJAX和方法POST提交表单
  • 如何打印0.00009和更低的数字[重复]
  • 从表中返回一组联系人
  • 页面重定向。 会话数据丢失
  • cakephp手动sql查询在一个表中
  • 用php [关闭]从2个mysql表中获取数据
  • 使用标题重定向到其他页面
  • preg_match正确的正则表达式
  • 如果Codeigniter不存在则插入
  • xampp htaccess目录到子域
  • 没有临时文件夹(无法上传文件)
  • zendframework 2 elfinder助手错误
  • 无法弄清楚如何开始使用PHP [关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华