Magento2 installation step-by-step on cPanel/WHM

Magento is somewhat the best e-commere software that can catalyse the growth of any business.Installing magento using the cpanel is quicker than downloading the initial files. The article will try to explain in two ways. That is using the command line or via the web-interface.

This article will highlight step-by-step methods you need to successfully install magento2 using cpanel.

Via command line

Try to get magento 2 version from and transfer files via FTP to your server root directory.

2- create an SSH account and from your cpanel follow further procedure

3- Magento is very concern about security so file permissions setup prior to install is vey mandatory. Change permissions by using these commands.

cd public_html

find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;

find var vendor pub/static pub/media app/etc -type d -exec chmod g+w {} \;

chmod u+x bin/magento

You may run itno an “operation not permitted” error, this is due to Cpanel runs as <CpanelUserName>:noboddy user and which have no permisions.  to correct this error change public_html directory owner to <CpanelUserName>:<CpanelUserName> by using this Command.

chown -R <CpanelUserName>:<CpanelUserName> public_html

NB (this operation must be done as root in-order to work)

4- Create database, database user connect database with user.

5- Now you are ready to install through Web interface (You can also install it through command line). For web installation navigate to your url in browser and magento installation step will guide you.

6- Now you can set your magento mode or environments as per your requirements,

you can check current magento mode by

cd public_html
 bin/magento deploy:mode:show

For changing mode you can use:

bin/magento deploy:mode:set developer
 bin/magento deploy:mode:set production

upon doing production mode will activate cache, generate static files and will use recommended optimization setting (if your store front not loading Js, css please follow

Now your magento is install and ready to use.


Step 1 – Log into your cPanel account

Access the area that will present a variety of applications

installing via softaculous. The installation process will be helpful here as it will try to determine your diskspace and other relevant information

Magento installation

This is the area that you will verify software version, if it is much newer, you will opt for an older version to avoid pitfall of bugs. old version software has keen bug fixes.Also if you are one step ahead and you have your eye on a particular module from the Magento Connect marketplace, it is also recommended to review what version that module supports before proceeding.

The next part is the admin area. This will almost be your heart of all web-administration of your website, you will add/modify content etc.

After completing adding configurations, the magento installation process will begin

once the installation has finished, Softaculous will send an email to your web hosting’s email address. Below is the message you’ll get once the installation is successful.

Once through with the admin settings for configuration the backed will look in the following way.

Once installed, go to the admin area. The back-end will automatically fit to any device that the website is browsed in, such as  smart phones or a little wider for tablets like the iPad or Nexus, or straight forward full width to your desktop or laptop monitor.




Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s