Chat with us, powered by LiveChat

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Say hello to redesigned Cloudways, an empowering Startup Program, enhanced Staging, a new Let’s Encrypt Wildcard SSL certificate feature, and more. GET STARTED

How to Host CodeIgniter PHP on Cloud using SSH

Updated on  24th May

3 Min Read
Reading Time: 3 minutes

Codeigniter is an open source MVC framework used to make dynamic websites using PHP including ecommerce, blogs and many more.

We, at Cloudways, have been getting many requests from our clients to add codeigniter as a one-click application install. We are looking into the feasibility of adding this app inside the Console. Meanwhile, we think it is a great idea to teach our users how to easily install any version of codeigniter on Cloudways PHP MySQL hosting through SSH terminal.

host codeigniter using ssh

You can follow the below steps:

Step 1: Launch PHP Stack

Signup or login to your Cloudways account and launch a new php stack server. You can find the option under the Server Management tab and click “Add App”. Select PHP Stack, as shown in the picture.


Wait for the server to be fully launch.

Step 2: Login to your SSH Terminal

Navigate to Server Management tab and under your Master Credentials launch SSH terminal.


Step 3: Install Codeigniter Using wget Command

Now go to the official page of codeigniter on github. Right click on the Download Zip button, and click copy link address. Now go to your SSH terminal and type these commands to goto your root folder where you will download the codeigniter.

Now type ls and copy the name of the newly created folder and paste this command from the browser.

Since you are now in your root now type wget and paste the link that you have copied.

This will download the zip content of Codeigniter on your server.

Codeigniter Installation

Step 4: Unzip the Folder

Since the file you downloaded is zip you need to unzip it by typing

Now type ls -al to view the files. You will see that the folder in which the content of Codeigniter has been unzipped to, is big. We need to rename it to use it easily. For this, type the following command

Now, lets remove the index.php and file from your root folder by typing this command.

php hosting signup

Step 5: Configure Codeigniter

Now connect to your ftp server using filezilla or other software. Enter your ftp info, which can be found in Server Management tab under Master Credential tile.

Now go to your codeigniter folder which is under public_html. Goto application -> config -> config.php.  In config.php set your base URL to this.

Step 6: Run it

Now go to the application management tab and copy the application url. Paste the url in new tab and type /codeigniter at the end. If you see the page as in the picture, you have downloaded it correctly.

Codeigniter Installation

And we are done! You can now configure your server with your domain and start using it! Looking for a host provider? Haven’t tried Cloudways yet? Now is the perfect time to Sign Up and try out our proficiently Managed PHP Cloud Hosting platform. You have the option of choosing any of the four major cloud infrastructure provider from DigitalOcean, Vultr, GCE and Amazon.

Share your opinion in the comment section. COMMENT NOW

Ahmed Khan

Ahmed was a PHP community expert at Cloudways - A Managed PHP Hosting Cloud Platform. He is a software engineer with extensive knowledge in PHP and SEO. He loves watching Game of Thrones is his free time. Follow Ahmed on Twitter to stay updated with his works. You can email him at

Create PHP websites without the worry of server management.

Deploy your PHP app on optimized PHP hosting servers.

Get Our Newsletter
Be the first to get the latest updates and tutorials.