1. Home
  2. Knowledge Base
  3. Website
  4. Website Tips
  5. How to install CodeIgniter via SSH command line

How to install CodeIgniter via SSH command line

Step 1: Login to server and choose the particular user directory
Step 2: Navigate to public_html folder
Step 3: Run the below commands to download CodeIgniter file from the internet and extract the wordpress files on the wordpress installation directory.

+++
Command: wget https://codeload.github.com/bcit-ci/CodeIgniter/zip/3.1.8

unzip CodeIgniter_file-name.zip
+++

Step 4: Now we have to create the database for the user directory. We can do it either by the cPanel database option or command line.

+++
create database your-CodeIgniter_dbname;
grant usage on *.* to username@localhost identified by ‘password’;
grant all privileges on your-CodeIgniter_dbname.* to username@localhost;
+++

The first command create the database, Second command allows the user to connect the database. Third command grant all privileges to the user.

Step 5: Alternatively, you can follow the below steps to create the database via cPanel interface and set to the wordpress installtion.

+++
From cPanel: Login to your cPanel > Database section > mysql databases > Create database and user > Assign user to the CodeIgniter database
+++

Step 6: open the application/config/database.php file with a text editor and set your database settings.

+++
Command: vi application/config/database.php
+++

Step 7: Once you have completed the installation, start edit your website as per your requirement

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support