How to Install Craft CMS in cPanel
Knowledgebase Article
}
Knowledgebase Article
Craft is a content management system (CMS) that’s laser-focused on doing one thing really, really well: managing content.
And since content comes in all shapes and sizes, Craft was built to be as flexible as possible, without compromising on the ease of use for content authors.
To install Craft in cPanel:
1: Download Craft and save it on your computer.
2: Login to your cPanel and upload the Craft archive to the document root of the domain or subdomain where you want to install it.
3: Once it's uploaded, go back to the document root folder and extract the archive:
4: Enter the Craft public folder and move the files outside of it - to your domain/subdomain's document root:
4: Open the index.php file and set the $craftPath
When moving the files from the public folder to the document root, then the $craftPath would be:
$craftPath = './craft';
5: Rename the htaccess file to: .htaccess:
6. Create a database and database user for the Craft application.
Go to cPanel >> Databases >> MySQL Database Wizard and create a new database, database user (save the details) and add all privileges to that user.
Now go to the File Manager and open the Craft database config file: craft/config/db.php
Fill it with the details of the database you just created:
That's it! Now go to: your-craft-domain.com/admin and complete the setup.
Should you need any further assistance, please do not hesitate to contact us.
Powered by WHMCompleteSolution