Woodpecker
Woodpecker

Reputation: 115

how to install laravel on vesta cpanel

I follow the followlink link for installing laravel on vesta cp. http://blog.bobbyallen.me/2015/03/25/how-to-host-a-laravel-4-and-5-application-on-a-vestacp-account/ I got the followin errors.Plese solve my issue.

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

Upvotes: 1

Views: 2485

Answers (1)

Javed Iqbal
Javed Iqbal

Reputation: 166

upload your project on the following path.

/home/admin/web/project_name/public_html/

change your config like database name etc.

execute the following commands on server terminal.

# 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

Upvotes: 1

Related Questions