dongzhang7961 2014-05-08 01:36 采纳率: 0%
浏览 53
已采纳

Yii部署仅显示空白屏幕

I'm trying to deploy my Yii website to a Ubuntu 14.10 server, but all I get is a blank screen...

The server is properly setup with the lamp configuration

Steps taken so far:

  • I've uploaded the framework folder to a location that is referenced by the config file

  • I've uploaded my files with index.php to the proper folder

  • I've changed the permissions of the assets and protected/runtime folders to read-write (chmod 777)

  • I've even checked the requirements folder index.php that yii provides. It indicates that everything is all set to go...

I know that the index.php is being properly accessed because I can turn on yii debugging and see the debug messages.

What's really weird is that the log doesn't show an error and the last entry refers the line that does "render" of my index view in the SiteController.

Do you think the permissions of the view folder is wrong? I also checked if it was the htaccess file, but I've tried accessing the site with the htaccess file enabled and disabled with no result.

I have no idea what is going on...I'd greatly appreciate any help you guys can throw my way

  • 写回答

1条回答 默认 最新

  • douli4337 2014-05-08 14:46
    关注

    Just wrapping this up. Alejandro's term of (PHP White Screen of Death) yielded many other topics on stackoverflow.

    For those curious, I used the settings from this answer and found out that I was missing dirname(FILE) from all my require_once statements.

    Funny thing is that, everything worked on my local dev xampp environment, but needed that dirname for the unix server.

    Now I can continue finishing deployment.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法