【问题标题】:Move laravel to new server将 laravel 移至新服务器
【发布时间】:2016-08-04 11:51:24
【问题描述】:

我有一个 laravel 项目,想在另一台服务器和域上复制它。

我做了什么:

  • 下载了我电脑上的所有文件
  • 已将所有文件上传到 新服务器
  • 导出数据库并导入新数据库
  • 更改了数据库设置 .env

新的服务器 public_html 文件夹是我用于 laravel public_html 的文件夹。所以文件和文件夹结构应该和原服务器上的一样。

我认为这应该足够了,但是当我访问新域时,我得到的只是:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

可能出了什么问题?

【问题讨论】:

    标签: laravel dns server project move


    【解决方案1】:

    您是否运行了以下命令

    sudo chmod 755 -R laravel-project-name            // ur project name
    sudo chmod -R o+w laravel-project-name/storage    // same here
    

    请问您使用的是哪个版本和平台? 如果您使用 ubuntu,请使用上述内容,也不要在 Google 上搜索。

    【讨论】:

    • 我没有SSH连接,无法访问终端,有必要吗?
    • Linux 服务器上的 Laravel 5.1.5
    • 是的,您需要这样做或使用 ftp 授予权限或连接您的服务器管理员
    • 我有 ftp 访问权限,有没有关于我需要做什么的教程?
    • 从 ftp 执行或联系管理员,然后通过文件夹名称传递命令
    猜你喜欢
    • 2016-01-11
    • 1970-01-01
    • 2023-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-08
    • 1970-01-01
    相关资源
    最近更新 更多