Your account access includes the ability to easily access, view, edit or delete any files that exist on your account. This is effortlessly done through the cPanel control panel file management section.
Accessing the File Manager
The first step is to log into your cPanel account. If you are unsure on how to do this, please view the following help article - How to log into cPanel.
Once you have logged in, scroll down to the 'Files' section and choose the option 'File Manager'.
File Manager Options
Take a moment to familiarise yourself with the options available in File Manager.
Down the left hand side, we can see the folders that on are on the account. Each of those have options to expand and collapse the folders to explore further into the respective directories.
At the top, we can see a series of menu options giving us the ability to create files, create folders, upload, delete, rename or edit files.
Create a New File
Firstly decide where you would like the new file to be placed. Usually you'd choose the 'public_html' folder because this contains all of your website folders and files. Click this folder to open it.
To create the new file, select the 'File' button from the top menu option.
Next give the file a name in the 'New File Name' section and remember to provide the extension i.e. text, .html or .php. Once entered, 'Create New File'.
We can now see that the new file has been created in the respective folder with the respective name.
Edit a File
To edit a file, click onto its name (you should find that it is now highlighted). Select 'Edit' from the top menu.
This process will now open the File Manager Text Editor. Select 'Edit'.
The file will now open with the respective content. In our example, our file is blank.
Add the desired text into the file. Note that if you prefer to write in HTML, take advantage of the 'Use Code Editor' menu option.
Once you are happy with the changes, choose 'Save Changes' from the menu.
To verify the changes, select the file again and choose 'View' from the top menu.
You should now see a preview of your file.
Upload a File
If you have a file that you would like to upload, choose the 'Upload' option from the top menu.
Choose the 'Select File' button and locate the file on your system that you would like to upload to your site.
Once selected, the process should automatically start the upload and confirm the progress.
Once marked as 100%, return to the File Manager by selecting the 'Go Back' option.
Returning to the File Manager, choose the 'Reload' menu option.
You should now note your new file upload has been added.
Delete a File
If you would like to delete a file, locate the file and select it (you should find that it is highlighted). Choose the 'Delete' menu item from the top.
The process will now ask you to confirm that you are deleting the file.
To confirm, select the 'Confirm' option.
From this article you should now be confident on how to explore your account files in File Manager, how to create a new file, how to edit a file and how to delete a file.
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...