Install Repository

Install epel repository

Install Package

yum install wordpress

Basic Setup

best is to follow

create MySQL-DB

$ mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname" IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.01 sec)

mysql> EXIT
  • open
  • enter username/password for ADMIN

Wordpress Farm

after some discussion and testing following set-up was chosen:
  • Wordpress is just a bunch of PHP-scripts. Copy all files from usr/share/wordpress/ over to the root-folder of the site
  • set-up each site individually each one with a separate MySQL-DB

SSL secured web-server

see also

configure outgoing mail

WordPress does not send mail via SMTP out of the box. Following Plugin is working with Wordpress 3.5.1 Configure SMTP



MariaDB 5.5 Disaster Recovery


While updating Plugins and Themes can be done via the Admin-Panel the wordpress-core needs to be updated on our machines manually.

this is basically taken from
  • Backup all files and settings
cd /var/www/html/
tar -pcvzf ./
chown root:root
chmod 600
  • Backup database, refer to appropriate section.
  • login to and deactivate all plugins
  • logout admin-dashboard
  • delete old wp-includes and wp-admin directories
cd /var/www/html/
/bin/rm -r *
cd /
rmdir /var/www/html/
cd /var/www/html/
/bin/rm -r *
cd /
rmdir /var/www/html/
  • copy new wp-includes and wp-admin directories in place
cp -r /usr/share/wordpress/wp-includes /var/www/html/
chown -R apache:apache /var/www/html/
cp -r /usr/share/wordpress/wp-admin /var/www/html/
chown -R apache:apache /var/www/html/
  • Upload the individual files from the new wp-content folder to your existing wp-content folder, overwriting existing files. Do NOT delete your existing wp-content folder. Do NOT delete any files or folders in your existing wp-content directory (except for the one being overwritten by new files).
rsync --verbose --progress --stats --partial --recursive /usr/share/wordpress/wp-content/* /var/www/html/
chown -R apache:apache /var/www/html/
  • Upload all new loose files from the root directory of the new version to your existing wordpress root directory.
rsync --verbose --progress --stats --partial --exclude "wp-config.php" /usr/share/wordpress/* /var/www/html/
chown apache:apache /var/www/html/*
  • Visit your main WordPress admin page at /wp-admin. You may be asked to login again. If a database upgrade is necessary at this point, WordPress will detect it and give you a link to a URL like Follow that link and follow the instructions. This will update your database to be compatible with the latest code. You should do this as soon as possible.
  • login to and reactivate necessary plugins


This site has some really useful information

Updated by Jeremias Keihsler about 4 years ago · 4 revisions