WordPress Installation and Tips
WordPress is a widely used content management system (CMS) for creating and managing websites.
More information about WordPress:
https://www.green.ch/en/introduction-to-wordpress
Install WordPress
WordPress can be installed directly through your hosting. Before installation, we recommend checking the domain assignment, document root and PHP version.
Installation guide:
https://www.green.ch/en/install-wordpress
Alternatively, WordPress can be installed using the application installer:
https://www.green.ch/en/install-applications
Install WordPress using the application installer
- Sign in to my.green.ch.
- Open All domains.
- Click the arrow icon next to the hosting for the required domain.
- Set a new password for the primary FTP access.
- Open the Applications section.
- Select WordPress.
- Start the installation.
The installer generally uses the document root of the selected domain as the target directory.
Existing WordPress installations are normally not overwritten. However, if several domains use the same document root, a message may appear stating that the resource already exists.
The installation will only work once the DNS records correctly point to the IP address of your web hosting.
https://www.green.ch/en/finding-ip-address-and-name-of-web-server
Otherwise, the following message appears:
“The domain does not yet resolve to the hosting system. Please try again later.”
Check the document root
Before installation, check which directory is linked to which domain.
- Open the Domains section.
- Check the displayed document roots.
- If necessary, select Actions → Edit domain.
- Check the configured document root.
More information:
https://www.green.ch/en/change-the-document-root
Check the PHP version
We recommend using a current PHP version for WordPress.
- Open the Domains section.
- Select Actions → PHP Settings.
- Select a current PHP version.
- Save the change.
Current WordPress versions support current PHP versions. However, individual third-party plugins or themes may be incompatible. After making the change, check whether the website continues to function correctly.
More information:
https://www.green.ch/de/php-version-und-php-einstellungen-ihrer-domain-aendern
Recommendation for WordPress
Linux Hosting is generally recommended for WordPress. Microsoft Windows Hosting continues to be supported, but WordPress generally works more easily and with better compatibility on Linux.
Windows Hosting may require additional adjustments, for example to the web.config file.
More information:
https://www.green.ch/en/recommendation-webhosting
https://www.green.ch/en/recommendation-windows-hosting
SSL for WordPress
An SSL certificate should be activated for WordPress so that the website can be accessed via HTTPS.
More information:
https://www.green.ch/en/ssl-wordpress-hosting
https://www.green.ch/en/ssl-certificate-error-with-wordpress-hosting
https://www.green.ch/en/activating-the-ssl-certificate
Migrate WordPress
The Duplicator plugin is commonly used to migrate an existing WordPress website.
More information:
https://www.green.ch/en/wordpress-migration-including-duplicator
When using Duplicator, the following setting has been used successfully in documented cases:
- Backups → Database settings
- Change SQL Mode from MySQL Dump to PHP Code
Before a migration, you generally need:
- a new MySQL database
- a suitable database user
- a prepared document root
More information:
https://www.green.ch/en/mysql-database-create
Backups and restoration
Always create a backup before updates, migrations or major changes.
With WordPress, files and the database belong together. Therefore, restore both components when performing a restoration.
More information:
https://www.green.ch/en/restore-from-backup
Common WordPress problems
Error 503
Error 503 can occur when the available hosting resources are exhausted or when plugins, themes or external access overload the website.
More information:
https://www.green.ch/en/wordpress-error-503
General WordPress errors
Many WordPress problems are caused by plugins, themes, updates or incorrect configurations.
More information:
https://www.green.ch/en/general-wordpress-errors-updates-etc
Database problems
If WordPress reports database errors or content is no longer displayed correctly, the database may need to be repaired.
More information:
https://www.green.ch/en/repair-wordpress-database
Optimise WordPress
Optimisation can improve the website's loading time and stability.
More information:
https://www.green.ch/en/wordpress-optimize
Information about Object Cache:
https://www.green.ch/en/wordpress-object-cache
Security
The most common causes of compromised WordPress websites are outdated plugins, outdated themes and insecure passwords.
WordPress websites are frequently targeted by automated attacks. Therefore, always keep WordPress, themes and plugins up to date.
In addition, the protection of the WordPress backend can be improved:
- Change the login URL so that /wp-admin is not used by default.
- Limit failed login attempts.
- Remove plugins that are not needed.
- Use strong passwords.
More information:
https://www.green.ch/en/secure-password
https://www.green.ch/en/website-hacked-what-to-do
https://www.green.ch/en/hacked-website-cleanup
Note on deleting WordPress installations:
If a WordPress installation needs to be removed, for example following a security incident or website compromise, WordPress should ideally be deleted last. Where possible, first remove the linked databases, plugins and other associated content. If the WordPress files are deleted before the linked components, references may remain, which can prevent databases from being removed automatically. In such cases, manual intervention by the hosting provider may be required. During a later reinstallation, remaining plugin references may also occasionally cause errors.