We are strongly suggested AWS or Azure VPS with ubuntu OS. Because it is quite easy to setup and maintain. For an AWS we can create EC2 T2 medium or large instance. After created an instance from AWS or AZURE. we need to install the required softwares below.
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.
Options -Indexes AllowOverride All Require all granted ErrorDocument 403 "You Don't have a permission to access this URL" ErrorDocument 404 "Requesting Page not Found. Contact admin for further details" </Directory>
Run "sudo service apache2 restart" to restart the apache2.
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
Reference Link : https://computingforgeeks.com/how-to-install-php-on-ubuntu/
Run the below commands one by one
To create a new user for mysql
Open the path "var/www/html". and dowonload the phpmyadmin package using below command.
Unzip the downloaded package and rename it to "pma".
Please follow the instructions from the reference link below.
jenkins is used to upload the backend app code to the server via git repo.
To install jenkins you need to install JAVA. to install java run this command "sudo apt install openjdk-8-jdk ".
Follow the instructions from the reference link below. and skip the firewal setup.
Follow the instructions from the reference link below. install nodejs & npm as well.
Follow the instructions from the reference link below.
Reference Link: https://laravel.com/docs/8.x/queues#supervisor-configuration
Follow the instructions below & from the reference link.
Install the file
Run the server by below command
Reference Link: https://www.emqx.com/en/downloads?product=broker