Easy steps to deploy all versions of Laravel on CyberPanel
- Login to CyberPanel
- [Server] Security > Firewall.
- Open 7080 TCP Port
- Reset OpenLiteSpeed panel password using SSH Terminal
- Run the following script:
/usr/local/lsws/admin/misc/admpass.sh
- Access the panel by going to: https://YOUR_SERVER_IP:7080
- Make sure you have previously created a website and placed all your Laravel files in the public_html directory.
- Open OLS Panel > Virtual Hosts > yourwebsite > General tab > General
- Change Document Root from
$VH_ROOT/public_html
to$VH_ROOT/public_html/public
- Save and Graceful Restart
- Success
- Login SSH Terminal
cp /usr/local/lsws/lsphpXX /usr/bin/
- Check PHP Version
php -v
- Success