【问题标题】:how to install laravel on vesta cpanel如何在vesta cpanel上安装laravel
【发布时间】:2019-01-26 12:44:03
【问题描述】:

我按照以下链接在vesta cp 上安装laravel。 http://blog.bobbyallen.me/2015/03/25/how-to-host-a-laravel-4-and-5-application-on-a-vestacp-account/ 我收到了以下错误。请解决我的问题。

Warning: require(): open_basedir restriction in effect. File(/home/admin/web/2xpzgpbdpqmkpvax.onion/private/app_data/bootstrap/autoload.php) is not within the allowed path(s): (/home/admin/web/2xpzgpbdpqmkpvax.onion/public_html:/home/admin/tmp) in /home/admin/web/2xpzgpbdpqmkpvax.onion/public_html/index.php on line 25

【问题讨论】:

  • 警告:require(): open_basedir 限制生效。 似乎是权限问题。
  • 是的先生,你能解决这个问题吗?
  • 不,我没有,只是指出这很可能是权限问题,您需要搜索/谷歌,联系支持等。我个人不会关注 2015 年的任何内容(逐步-step guide)技术变化非常快。

标签: linux laravel redhat vesta


【解决方案1】:

通过以下路径上传您的项目。

/home/admin/web/project_name/public_html/

更改您的配置,例如数据库名称等。

在服务器端执行以下命令。

# Clear Laravel cache and the compiled classes
php artisan cache:clear
php artisan clear-compiled

# Change the storage and cache directories permission
sudo chmod -R 777 storage
sudo chmod -R 777 bootstrap/cache

# Regenerate the composer autoload file
composer dump-autoload

【讨论】:

    猜你喜欢
    • 2014-03-31
    • 2016-02-04
    • 1970-01-01
    • 1970-01-01
    • 2020-05-30
    • 2015-02-07
    • 1970-01-01
    • 2013-03-15
    • 2023-02-02
    相关资源
    最近更新 更多