How to setup JET (Linux)

Install Lamp Server

Installing Lamp server will install php web services and mysql onto your linux server. Please type in the following command in your linux console.

				
					$ sudo apt-get install lamp-server^
				
			
You will be prompted Y/n. Select Y to proceed with the installation.

Note: You may be required to get the latest list of available packages and their versions for your OS first. To do this, run:

				
					$ sudo apt-get update
				
			

Resetting mysql password

By default in a fresh installation, mysql root user has a default value for authentication. This may be ‘auth_socket’ or something else.

To ensure that the password will work, it needs to be setup with ‘caching_sha2_password’ authentication.

Below are the steps to do so.

				
					$ sudo mysql -u root

>USE mysql;

>UPDATE user 
SET plugin = 'caching_sha2_password', authentication_string = '' 
WHERE User = 'root' AND Host = 'localhost';
>FLUSH PRIVILEGES;

>ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'password123';
>FLUSH PRIVILEGES;

>Quit

$ sudo mysql_secure_installation

Enable password validation policy → (Choose Yes)
Remove anonymous users → (Choose Yes)
Disallow root login remotely → (Choose Yes)
Remove test database → (Choose Yes)
Reload privileges → (Choose Yes)

$ sudo systemctl restart mysql
				
			
Replace “password123” with a password of your choice

Update permissions of the web service folder

Run the commands below to navigate to the /var/www folder and update the permissions of the web service folder:

				
					$ cd /var/www
$ sudo chmod a=rwx html
				
			

Symbolic links for data drive

Skip the previous step if you are doing this.

This is meant for if you have a separate Data disk from the OS disk.

Step 1:Backup /var/www/html to /data/application
				
					$ sudo cp -avr /var/www/html/. /data/application
				
			
Step 2: Remove the html folder.
				
					$ sudo rm -r /var/www/html
				
			
Step 3: Create a symbolic link.
				
					$ sudo ln -sfn /data/application /var/www/html
				
			
Step 4: Update folder permissions
				
					sudo chmod a=rwx /data/application/
				
			

Pre-requisites (php 7.4 example)

  • Install the Linux zip utility
				
					$ sudo apt-get install unzip
$ sudo systemctl restart apache2
				
			
  • Install the php zip PHP
				
					$ sudo apt-get install php7.4-zip
$ sudo systemctl restart apache2
				
			
  • Install the xmlrpc module in PHP
				
					$ apt-get install php7.4-xmlrpc
$ sudo systemctl restart apache2
				
			
  • Install the xml module in PHP
				
					$ sudo apt-get install php7.4-xml
$ sudo systemctl restart apache2
				
			
  • Install the curl module in PHP
				
					$ sudo apt-get install php7.4-curl
$ sudo systemctl restart apache2
				
			
  • Increase the file upload limit in PHP
    • Access php.ini on your PHP installation
    • Edit the following line with the appropriate value. In this example, I set it as 100M for both.
				
					upload_max_filesize = 100M
post_max_size = 100M
				
			
    • Restart the Apache service
				
					$ sudo systemctl restart apache2
				
			
  • Increase Memory Limit in PHP
    • Access php.ini on your PHP installation
    • Edit the following line with the appropriate value based on your server ram allocation.
				
					memory_limit = 500M
				
			
    • Restart the Apache service.
				
					$ sudo systemctl restart apache2
				
			

Transfer the installer file into /var/www/html

Download and transfer the installer.php file to /var/www/html

Run the installer.php file on a web browser in the same network

Enter SQL credentials and Company ID.

Company ID can be retrieved from the email where you are issued when you purchased JET.

Create your default console login

Login to the console with the credentials you created above

After login, you can begin to create your sites and start using JET

Suggest Edit
×

Hello!

Click one of our representatives below to chat on WhatsApp or send an email to sales@jetworkflow.com

× How can I help you?