Actions
Install¶
Install Repository¶
Install Package¶
yum install wordpress
Basic Setup¶
best is to follow http://codex.wordpress.org/Installing_WordPress
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)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT
Bye
$
- open
http://example.com/wordpress
- 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 http://wiki.centos.org/HowTos/Https
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
http://wordpress.org/extend/plugins/configure-smtp/installation/
Backup/Restore¶
MySQL¶
Update¶
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 http://codex.wordpress.org/Upgrading_WordPress- Backup all files and settings
cd /var/www/html/
tar -pcvzf example.com.yyyymmdd.tar.gz ./example.com
chown root:root example.com.yyyymmdd.tar.gz
chmod 600 example.com.yyyy.tar.gz
- Backup database, refer to appropriate section.
- login to http://example.com/wp-admin and deactivate all plugins
- logout admin-dashboard
- delete old
wp-includes
andwp-admin
directories
cd /var/www/html/example.com/wp-includes
/bin/rm -r *
cd /
rmdir /var/www/html/example.com/wp-includes
cd /var/www/html/example.com/wp-admin
/bin/rm -r *
cd /
rmdir /var/www/html/example.com/wp-admin
- copy new
wp-includes
andwp-admin
directories in place
cp -r /usr/share/wordpress/wp-includes /var/www/html/example.com
chown -R apache:apache /var/www/html/example.com/wp-includes
cp -r /usr/share/wordpress/wp-admin /var/www/html/example.com
chown -R apache:apache /var/www/html/example.com/wp-admin
- Upload the individual files from the new
wp-content
folder to your existingwp-content
folder, overwriting existing files. Do NOT delete your existingwp-content
folder. Do NOT delete any files or folders in your existingwp-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/example.com/wp-content/.
chown -R apache:apache /var/www/html/example.com/wp-content
- 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/example.com/.
chown apache:apache /var/www/html/example.com/*
- 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 likehttp://example.com/wordpress/wp-admin/upgrade.php
. 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 http://example.com/wp-admin and reactivate necessary plugins
Troubleshooting¶
This site has some really useful informationUpdated by Jeremias Keihsler almost 8 years ago · 4 revisions