douzachan4578 2013-07-30 23:57
浏览 17
已采纳

使用capistrano部署后,php站点上的500服务器错误

I'm using railsless deploy to deploy a sample php application to my server, everything seems to work OK (folders are created and everything is uploaded and symlinked) however when I try to visit the site on my browser I get a 500 internal server error even though there's nothing but an index.php file with a "Hello World" string, here's how my config file looks like:

set :application, "sample"
set :folder, "projects"

set :repository, "."

set :scm, :none

set :use_sudo, false

set :user, "myuser"
set :domain, "mydomain.com"
set :ssh_options, { :forward_agent => true }
set :port, 2222

set :deploy_via, :copy
set :copy_cache, true
set :copy_compression, :gzip 
set :keep_releases, 4

set :deploy_to, "/home/myuser/public_html/#{folder}/#{application}"

server domain, :app, :web

I should be able to see my project when I visit "mydomain.com/projects/sample/current" but no luck. Any help would be appreciated.

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • doupingtang9627 2013-12-19 07:21
    关注

    The problem was that the folders were set with group-write permissions and my host is configured to not show these files but a 500 error instead, removing these permissions fixed the issue.

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

报告相同问题?

悬赏问题

  • ¥15 关于LT3758反激式负压电源,功率三极管烧毁的问题
  • ¥20 aruba ap305 CAP转IAP
  • ¥20 rockchip rk3588 ffmedia运行异常
  • ¥30 如何用 Java 简单系统设计?(相关搜索:服务器|面向对象设计|随机数)
  • ¥15 鸿蒙开发(关键词-开发环境)
  • ¥15 错误使用 mex Embedding metadata in the MEX file failed.
  • ¥30 Fractal eXtreme 64-bit求解锁15天限制
  • ¥30 openvpn 启动错误
  • ¥15 有偿解决脑电仪导出数据edf时出现报错,有偿
  • ¥15 关于下载R包”org.Hs.eg.db“的时候,遇到了could not find function "file.edit"的问题!