VPN Script

1 - Upload the files

It's suggested to upload the files in your home directory in cPanel, delete your current "public_html" folder (after making sure it's already empty, if it's not just make a backup) and changing the "public" folder name in the uploaded files to "public_html".

2 - Show hidden files

If you are preffering to access the File Manager in cPanel to edit your enviroment file, make sure you check the "Show Hidden Files (dotfiles)" in Settings panel, which can be accessed at top right corner of the page.

3 - Create your .env file

Duplicate the .env.example file and rename it to .env

Open the .env file and edit the contents of it to match your settings

4 - Run migrations / import db

If you have SSH access, please locate your artisan file and run the following command

php artisan migrate

Your artisan file should be in /home/username

-- If you don't have SSH access, please import database.sql manually.

4 - Generate application key

If you have SSH access, please locate your artisan file and run the following command

php artisan key:generate

Your artisan file should be in /home/username

-- If you don't have SSH access, you can put the application key manually in .env file

Make sure the APP_KEY is 32 characters in length and includes alphanumeric characters only.

5 - Run seeders

If you have SSH access, please locate your artisan file and run the following command

php artisan db:seed

Your artisan file should be in /home/username

-- If you don't have SSH access, please visit the following url to run seeder

http://yoursite.com/install

6 - Setup cron jobs for scheduler

Go to your Cron Jobs panel and add the following command to run every minute:

/usr/local/bin/php /home/username/artisan schedule:run >/dev/null 2>&1

Change the command path artisan to match your own username / path.

7 - Default Admin

Username: admin Password: vpnscript

Last updated