我点击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错误。请解决我的问题。
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
答案 0 :(得分: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