QuickInstall Error Installation Directory is Not Empty
Installing your preferred platform for your website is made easier using the application installers of your cPanel.
Jump to a Section:
- Softaculous ⤵
- QuickInstall ⤵
- How to Resolve This Error for Your Primary Domain ⤵
- Trouble Installing WordPress For a Subdomain or Addon Domain ⤵
- Still Getting the Error? ⤵
Softaculous
If the Softaculous application is already available in your account, you can get WordPress, one of the most common platforms, and other CMS running in minutes. This video tutorial will assist you with your WordPress installation using the Softaculous installer.
- You are logged into your Customer Portal. You can also log in after clicking the link.
- The hosting package you are attempting to access is either a Shared or Cloud.
An installation already exists at https://yourdomain.com as per our records. To re-install the application please uninstall the existing installation!"
If you encounter an error when installing WordPress using Softaculous like the prompt above, you need to remove the first installation then re-install WordPress. We have created a video guide to assist you in the uninstallation using the Softaculous application.
To uninstall WordPress using Softaculous:
- Under the Softaculous homepage, click the Installations box on top.
- Locate the WordPress site you wish to uninstall.
- On the list of Options on the right-hand side of that website name, click the x Remove icon.
- Scroll down the next page and click the Remove Installation button.
- A pop-up will appear, notifying you that this is an irreversible process. If you wish to proceed, click OK.
- Once the uninstallation is done, click Return to Overview.
- Re-install WordPress.
If you wish to go back to your cPanel, click the cPanel icon found on the top-right menu.
QuickInstall
QuickInstall is another application you will find in your cPanel. Though we strongly suggest using Softaculous, you can still utilize the QuickInstall as your installer. Please refer to this article for detailed instructions on how to use this application, QuickInstall.
When you're trying to install WordPress with the QuickInstall method, sometimes you'll get the error "Installation directory is not empty. Please install to an empty location". This error presents when there are files already present in the directory you're trying to install WordPress to and can be remedied by clearing the directory. This article covers how to achieve this for your Primary domain, Addon, and Subdomains.
How to Resolve This Error for Your Primary Domain
- In the cPanel, click on File Manager in the Files section.
- On the left-hand side, select the folder public_html, as this is the document root for your primary domain.
- In the upper right-hand corner, click on the Settings button.
- Check the box next to Show Hidden Files and click Save, this allows you to see all of the files in the folder.
- Select all of the files and folders in the directory by clicking the Select All button at the top of the window.
- Then, click x Delete, to move everything to the trash.
Now that the directory is clear, you should be able to install WordPress without getting any errors. If you're still getting this error, see the section below on checking the database.
Trouble Installing WordPress For a Subdomain or Addon Domain
The process is the same as the above except for the directory you need to clear. To determine what the document root for the site, you'll need to do the following.
- Locate the Domains box in the cPanel and then select either Addon Domains or Subdomains.
- Scroll down to see the list of domains.
- Take note of the directory in the second column labeled Document Root this is where the files for the site live.
- Open the directory:
a. If the directory listed starts with/example.com, then it will be listed on the left-hand side of the file manager in the home directory.
b. If there is another directory name before your domain name, such as/public_html/example.com, then you will select public_html in the file manager, and then double-click the example.com folder inside the public_html directory to open it.
- In the upper right-hand corner, click on the Settings button.
- Check the box next to Show Hidden Files and click Save, this allows you to see all of the files in the folder.
- Select all of the files and folders in the directory by clicking the Select All button at the top of the window.
- Then, click x Delete, to move everything to the trash.
Now that the directory is clear, you should be able to install WordPress without getting any errors. If you're still getting this error, see the section below on checking the database.
Still Getting the Error?
Doing the process above should resolve the issue. However, if it does not, then the problem could be that the database or database user that the QuickInstall process is trying to create already exists, and it needs to be renamed or deleted.
During the QuickInstall process, it will create a database named cpaneluser_wrdp# and a corresponding database user with the same name. If either the database or user already exists without the matching user/database, then you may see the error.
This problem can be remedied by renaming or deleting the existing user or database. See our guide here on how to do that: How to Create or Delete a MySQL Database or User