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/ 我得到了以下错误。请解决我的问题。

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
4

1 回答 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
于 2018-08-30T10:41:32.397 回答