OpenApp Wordpress
Contents |
What does OpenApp Wordpress include?
OpenApp Wordpress consists of the following software:
- Wordpress
- Apache2 with mod_php
- Mysql server
- Postfix
- OpenPanel with mod-wordpress, mod-backup, mod-smtp
- OpenApp-tuning
- OpenApp-backup
Installing OpenApp Wordpress
- Please note that OpenApp always expects a clean install! /var/www/ and directories like that might be deleted by OpenApp
- Make sure that you have the OpenPanel sources in your sources.list and your softwarelist is up to date. Follow instructions on OpenPanel_and_APT
- Now install OpenApp Wordpress
apt-get install openapp-wordpress
- During the install, you will get some questions:
- Mysql-server
- The password that the user root should use to login to Mysql (Twice)
- Postfix
- The type of configuration you want. Select 'Internet Site' (press enter). OpenApp will configure postfix later on
- System mail name. This should be the hostname of your system and should already be entered (press enter). OpenApp can configure this later on
- Mysql-server
- Set a password for OpenPanel
openpanel-cli "update user password=<your password>"
- You can now login at https://<your ipaddress>:4089/ with the password entered in the previous step
- You are now in the OpenPanel-interface of your machine. Here, you can easily configure backups, outgoing email and the basic settings needed to be able to login on the Wordpress admin-interface.
- In the Wordpress-tab, you need to make sure that you enter a password and the correct URL that Wordpress must use as it's base-URL. Wordpress redirects to that URL when you try to login, so make sure that it points to your machine.
- Configure your SMTP-settings in the SMTP-tab. If you do not know which smarthost you should be using, you can leave it disabled. That should work in most of the situations.
- Configure your backups! That will make sure that your machine creates a backup each day/week/month, and will enable you to easily recover from disasters
- Login to the Wordpress admin-interfaces at the url you entered in OpenPanel, and don't forget to configure Wordpress.
Updating OpenApp Wordpress
Wordpress will not be updated by OpenApp, since it can update itself via de admin-interface. OpenApp will run apt-get update and apt-get dist-upgrade every night if you enable it in the 'Upgrades'-tab. That will upgrade all the software on the machine and may install new packages when needed.
Backing up OpenApp Wordpress
When you configure backups via OpenPanel, OpenApp-backup will run daily/weekly/montly and leave a executable file in /var/backups/. To restore from this file, please read about OpenApp_Backup. For OpenApp Wordpress, make sure that the wordpress module for OpenApp-backup is enabled. You can check this by running
OpenApp-backup -n
Which will show you the modules that are executed by OpenApp-backup. If wordpress is not listed, run
OpenApp-backup-enmod wordpress
to enable the OpenApp-backup wordpress module.
Building an image
To build an image for OpenApp Wordpress (so that you have pre-configured everything for your user) take the following steps:
echo "<password>" | OpenApp-wordpress-passwd stdin
- Run
/var/openpanel/tools/OpenApp-smtp-configure-postfix "<hostname of the machine>" "<true|false smarthost>" "<smarthost, if former value is true>" "<admin emailaddress>"
- Run
openpanel-cli "update user password=<password>"