【问题标题】:How to deploy fuelphp website to server如何将fuelphp网站部署到服务器
【发布时间】:2013-06-29 20:50:03
【问题描述】:

我是fuelPHP的新手,我开发了一个简单的应用程序,当我将文件上传到我的网络服务器时,我遇到了这些错误:

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home1/tdfdf/public_html/site/site/public/index.php on line 22

Fatal error: require() [function.require]: Failed opening required '/bootstrap.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home1/tdfdf/public_html/site/site/public/index.php on line 44

我可能在这里错过了一些配置。我还想从 url 中删除这个“/public”

有人可以帮忙吗?

【问题讨论】:

    标签: apache fuelphp


    【解决方案1】:

    我找到了解决方案。 DIR 没有为旧版本的 PHP 定义。我将服务器设置更改为在 PHP 5.3 上运行,它就像魔术一样工作。

    谢谢。

    【讨论】:

      猜你喜欢
      • 2019-03-16
      • 1970-01-01
      • 2013-01-18
      • 2012-01-25
      • 1970-01-01
      • 2021-10-29
      • 1970-01-01
      • 2016-08-11
      • 1970-01-01
      相关资源
      最近更新 更多