Server Installation
1. Introduction
You can use any server that has terminal access for demo purpose, but to run effectively on production environment we would recommend the requirements below.
Any server with UBUNTU Preferred
2 GB Ram
30 GB Storage
vCPU 2 cores
2. Installation Requirement
Apache
PHP8.1
mysql
phpmyadmin
composer
Git
Laravel Supervisor (optional)
3. Server Setup (skip the below steps if using control panel)
3.1. Install Apache
Open the ssh terminal using pemfile of your aws instance
Run "sudo apt install apache2" to install an apache2
Run "sudo apt update"
Run "sudo nano /etc/apache2/sites-available/000-default.conf" to edit the config follow next step.
Run "sudo service apache2 restart" to restart the apache2.
3.2.Install PHP8.1
Please follow the instrctions from the reference link below. And Install the php extensions below. bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm,curl,xml
3.3.Install mysql
Run the below commands one by one
sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
sudo service mysql restart
To create a new user for mysql
sudo mysql -u root
use mysql;
GRANT ALL ON . TO 'taxi_user'@'%' IDENTIFIED BY 'RideSurd@123' WITH GRANT OPTION;
FLUSH PRIVILEGES;
3.4. Install phpmyadmin
Open the path "var/www/html". and dowonload the phpmyadmin package using below command.
Unzip the downloaded package and rename it to "pma".
3.5. Install composer
Please follow the instructions from the reference link below.
3.6. Install git
Please follow the instructions from the reference link below.
3.7. Install FTP (optional)
Follow the below instructions to install ftp on ubuntu server
install vsftpd - sudo apt install vsftpd
take backup of config file by following command sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak
edit vsftpd.conf by following command sudo nano /etc/vsftpd.conf and add the below lines at bottom of the file and save the file.
4. Setup Laravel Supervisor
Follow the below steps for setup the laravel supervisor
sudo apt-get install supervisor
sudo nano /etc/supervisor/conf.d/laravel-worker.conf
Paste the below lines in that file
Note:user can be ubuntu/root & project name should be yours
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start laravel-worker:*
5. Upload script to server
Whether you are using a control panel or ssh access and have completed all necessary server installation, follow the step below to upload script to server
5.1. Using GIT
Unzip the download script
locate the server folder folder
open with a text editor, or open in a terminal
run git init, git commit and git push
On the server login via ssh, locate the dir and run git pull,
Install packages and complete setup by running the below commands
Paste your DB credentials
5.2 Using control panel file upload
upload the server folder to your cpanel
create a file .env and paste the content of .env.example
6. Complete your setup
open the created .env file
Set your license code and username
Run the following commands
If everything is successful, visit https://base_url/setup to complete setup
Setup your super admin login and click continue
Last updated