John_Betong
18:11:31

LINUX INSTALLATION


I use Linux Ubuntu 16.04 LTS both for the Localhost and Online sites and must say it makes coding websites a lot easier than using Windows :)

I think this setup should be similar to a WAMP, XAMP, MAMP installation because they should all have a similar folder structure.

Installation

Step 1/3:
CodeIgniter4 ZIP was downloaded and unzipped into the Localhost's CodeIgniter4/ folder.
Step 2/3:
CodeIgniter4/application/ was copied and pasted to john-betong.tk/application/
Step 3/3:
public/index.php was copied and pasted to john-betong.tk/public_html

Localhost:

/home/john/www/
____ci2/
______CodeIgniter4/
________ application/   (copied)
________/public
__________ index.php   (copied)
________system/

____john-betong.tk/
______application/   (pasted)
______public_html/
__________index.php   (pasted)


Online:

/var/www/
____ci2/
______CodeIgniter4/
________ application/   (copied)
________/public
__________ index.php   (copied)
________system/

____john-betong.tk/
______application/   (pasted)
______public_html/
__________index.php   (pasted)

 
Note 1:
This structure is ideal for GitHub to only download CodeIgniter4 modified files.
Also using FileZilla only CodeIgniter4 modified files require uploading to the Online server.
Note 2:
john-betong.tk/public_html/   is the   DOCUMENT_ROOT
Note 3: file path settings:
File:    john-betong.tk/public_html/index.php
  $pathsPath = '../application/Config/Paths.php';
File:    john-betong.tk/application/Config/paths.php
  public $systemDirectory = '../../ci2/CodeIgniter4/system';
  public $applicationDirectory = '../application';
  public $publicDirectory = 'public_html';

 

Wonderful place for a footer Environment: production Page rendered in 0.0108 seconds.