Finding the root directory is a basic need for many installations that may be required for OpenCart. The root directory is the directory in which your installation is based. The following screenshot shows it from the perspective of the File Manager application from Cpanel:
Based on the screenshot above, you can see that the easiest way to find the root directory is to simply find the folder where your OPENCART files and folders are setup. Here the steps using File Manager in Cpanel to find the directory:
- Login to Cpanel then open the File Manager application. You will see the following screen come up when you first click on File Manager:
Select the directory you wish to open (if you you're not sure, then leave it on HOME DIRECTORY), click on show hidden files (if the option appears as per above), and then click on GO.
- The file manager will then open into the main screen of the File Manager (same as initially displayed at the beginning of the article). Make sure to choose the folder that contains your OpenCart installation files. If you're not sure of the folder, you can verify by looking for the CONFIG.PHP file. Each PHP file can be selected and then opened with either the EDIT or CODE EDIT option in the top right of the File Manager.
The main thing to note in the example of the CONFIG.PHP above is that you can identify the OPENCART installation because one of the directories uses the name OPENCART. This may not always be the same on your server. If you do not know the installation for your OPENCART installation, then you may need to consult with your developer or contact technical support so that they can help you find it immediately.
- Once you have identified the directory of the installation, make sure to make a note of it for future reference. This information will aid you in installing future third-party applications.
Locating the ROOT DIRECTORY of your installation is typically an easy matter, but an important one if you are involved in adding installations or making adjustments to files for your OpenCart installation. Once you have found this information, make sure you save it so that you can reference it in future updates to your OpenCart 1.5 installation.