This is the repository for Cafe Variome Net in CodeIgniter 4.
$ git clone https://github.com/CafeVariomeUoL/CafeVariomeNet.git
$ mv CafeVariomeNet/ you_desired_directory/
$ sudo chown $USER:$USER your_desired_directory -R
$ mysql -u [username] -p
$ CREATE DATABASE cafevariomenet;
The CafeVariomeNet database must be populated with the following command:
$ mysql -u [username] -p cafevariomenet < cafevariomenet-schema.sql
Set the permission within the root directory of Cafe Variome Net: Checking the corresponding user within the Linux distribution with the following command:
$ ps aux | egrep '(apache|httpd)'
On Ubuntu the Apache user is www-data.
$ setfacl -m u:www-data:rwx -R writable/ writable/logs writable/session/ writable/cache/
The base URL needs to be set in the system using the following commands:
$ vim app/Config/App.php
public $baseURL=’<URL_TO_ACCESS_CAFEVARIOMENET>’;
Similarly, the database credentials need to be set using the following commands:
$ vim app/Config/Database.php
public $default = [
'DSN' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => 'Your Password',
'database' => 'cafevariome',
'DBDriver' => 'MySQLi',
'DBPrefix' => '',
'pConnect' => false,
'DBDebug' => (ENVIRONMENT !== 'production'),
'cacheOn' => false,
'cacheDir' => '',
'charset' => 'utf8',
'DBCollat' => 'utf8_general_ci',
'swapPre' => '',
'encrypt' => false,
'compress' => false,
'strictOn' => false,
'failover' => [],
'port' => 3306,
];
In the root directory of Cafe Variome Net where the composer.json resides, run the below command:
$ composer install
The following command needs to be executed in the root directory of Cafe Variome Net where index.php resides:
$ php index.php CLI addInstallation