如何在vesta cpanel上安装laravel

问题描述 投票:1回答:1

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

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
linux laravel redhat vesta
1个回答
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
© www.soinside.com 2019 - 2024. All rights reserved.