The WordPress installation process usually goes smoothly, but newbies may encounter some error prompts. These problems may seem complicated and complex, but they can be easily solved by finding the cause. This section summarizes the common problems of failed installations and specific solutions to help you quickly troubleshoot and complete the installation.
I. Database connection failure (the most common error)
misbehavior
The installation prompts: "Error establishing a database connection" or "Error establishing a database connection" and you cannot proceed to the next step.
Possible causes and solutions
- Incorrectly filled in database information (in the case of 90%)
- checkpoints: Whether the database name, user name, and password are the same as the record (case sensitive).
- Workout steps:
- Log in to the Pagoda panel and go to the "Database" page to confirm the database name and user name.
- If the password is wrong, click "More" → "Change Password" to generate a new password and record it.
- Return to the installation page, refill with the correct information and submit.
- Database host address error
- checkpoints: Is the "database host" correct (almost always for newbies)
localhost)。 - Workout steps:
- Default
localhostNo modifications are required. - If the server provider specifies (e.g. some overseas hosts), fill in the address provided (e.g.
mysql.example.com)。
- Default
- checkpoints: Is the "database host" correct (almost always for newbies)
- Database service not started
- checkpoints: Whether the MySQL service on the server is running properly.
- Workout steps:
- Log in to the Pagoda panel and click on "Software Store" on the left side.
- Locate the MySQL installation and check if the status is "Running".
- If it is not running, click the "Restart" button to start the service.
- Database user has no privileges
- checkpoints: Whether the database user has permission to access the database.
- Workout steps:
- Login to the Pagoda panel and go to "Databases" → Click on "Manage" after Databases and go to phpMyAdmin.
- Click on the top menu "User Accounts" to find the corresponding database user.
- Confirm that the user has "All Rights" to the target database, if not then re-authorize.
II. Permission error (unable to create file/write configuration)
misbehavior
The installation is interrupted by "Unable to write wp-config.php file" or "Unable to create directory".
Possible causes and solutions
- Insufficient web directory permissions
- checkpoints: Whether the permissions of the web root directory on the server are set correctly.
- Workout steps:
- Log in to the Pagoda Panel, go to "Sites" → Find the corresponding site, and click "More" → "Privileges".
- Set "Directory Permissions" to
755If the "File Permission" is set to644。 - Ownership options
www(or the server's default runtime user), click Apply.
- Manually create the wp-config.php file
- If prompted for a configuration file that cannot be written, create it manually:
- On the Installation Errors page, click "Create Profile" and copy the code from the page.
- Login to Pagoda Panel, go to the root directory of your website, click "New File", name it as
wp-config.php。 - Double-click the file to open the editor, paste the copied code and click 'Save'.
- Go back to the installation page and click "Proceed with installation" to continue.
- If prompted for a configuration file that cannot be written, create it manually:
- File ownership error
- checkpoints: Whether the file belongs to a running user of the server (e.g., a running user of Apache or Nginx).
- Workout steps:
- In the Pagoda File Manager, check the website root directory and click Permissions.
- Change the "Owner" and "Groups to which you belong" to the server runtime user (usually the
wwwOrnginx)。 - Check "Apply to subdirectories" and click "OK".
Third, the installation process is interrupted or white screen
misbehavior
Halfway through the installation, it suddenly gets stuck, the page goes blank (white screen), or "500 Internal Server Error" is displayed.
Possible causes and solutions
- PHP version incompatibility
- checkpoints: Whether the server PHP version meets the WordPress requirements (recommended 7.4 and above).
- Workout steps:
- Log in to the Pagoda Panel, go to "Websites" → Find the corresponding website and click "PHP Version".
- Select PHP 7.4 or 8.0 (for best compatibility) and click 'Switch'.
- Switch and revisit the installation page.
- Insufficient PHP memory limit
- checkpoints: PHP memory limit is too low, causing the installation process to break.
- Workout steps:
- Login to the Pagoda Panel, go to "Software Store" → Find the installed PHP and click "Settings".
- Go to "Profiles" and search for
memory_limit, change the value to128MOr256M。 - Click Save to restart the PHP service.
- Corrupt or incomplete installation files
- checkpoints: The uploaded WordPress installation package is not corrupt.
- Workout steps:
- Redownload the WordPress installation package from the official source (see section 7.1).
- Log in to the Pagoda panel and delete all files in the root directory of your website.
- Re-upload and unzip the new installation package (refer to section 7.2) and start the installation again.
IV. Other common errors and solutions
- Domain name not resolving or server port not open
- misbehavior: The installation page cannot be opened when accessing the domain name, showing "Unable to access this site".
- Workout steps:
- Check that the domain name has resolved to the server IP (refer to Section 4.4).
- Log in to the server console and verify that ports 80 (HTTP) and 443 (HTTPS) are open.
- If accessing via IP, verify that the Pagoda Panel does not restrict IP access.
- Database table prefix conflicts
- misbehavior: Prompts "Table already exists" or data is messed up after installation.
- Workout steps:
- If WordPress was previously installed, log into phpMyAdmin and delete the old database tables.
- or modify the table prefixes during installation (e.g., change the
wp_change intowp2023_)。
- Firewall or security plug-in blocking
- misbehavior: The installation page loads slowly or is blocked.
- Workout steps:
- Temporarily disable the server firewall or security group rules (turn them back on after the installation is complete).
- If you are using a domestic server, check if it is blocked due to filing issues (port 80/443 is not available for unregistered domains).
General tips for troubleshooting errors
- Viewing the Error Log
- Login to Pagoda Panel, go to "Sites" → "Logs" of the corresponding site, and check "Error Log", which will record the specific error reasons.
- Simplified installation environment
- If a complex server configuration is used, temporarily restore the default settings (e.g. PHP extensions, pseudo-static rules, etc.).
- call for help
- Copy the text of the error message and search for a solution in a search engine (you can usually find solutions to similar problems).
- Contact the server provider's customer service and provide screenshots of the error so that a technician can assist in troubleshooting.
wrap-up
Most of the installation failures are caused by incorrect information filling, improper privilege settings or incompatible environments, following the methods in this section to check one by one, 99% problems can be solved. If multiple attempts still fail, it is recommended to reorganize the process: from database creation, file uploading to filling in the information, double-check each step to ensure that the operation is correct.
Once you've solved the problem, you're well on your way to getting into the WordPress backend and starting to build your website.