我使用下面的链接在vesta cp上安装laravel。我在errors.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发布于 2018-08-30 18:41:32
按照以下路径上传您的项目。
/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-autoloadhttps://stackoverflow.com/questions/51929850
复制相似问题