Changes

Jump to navigation Jump to search
4,320 bytes added ,  05:58, 23 November 2012
Line 601: Line 601:     
===smeserver-wordpress===
 
===smeserver-wordpress===
 +
 +
'''Install wordpress contrib from the SME7 repo:'''
 +
 +
yum --enablerepo=sme7contribs --enablerepo=smecontribs install wordpress smeserver-wordpress
 +
 +
signal-event post-upgrade; signal-event reboot
 +
 +
 +
'''Initial Setup'''
 +
 +
To setup wordpress start your browser with the URL http://www.yourmaindomain/wordpress and complete the forms.
 +
To make basic setup just enter a blog name and an administrator email address then click Setup.
 +
On the next screen you will be presented with the admin user name and a randomly generated admin password. Record these somewhere safe now!
 +
Then click the Log in button, and enter your admin username (ie admin) and password (the ones just displayed on the previous screen).
 +
The initial setup is done in the Settings link at the top right corner of the blog screen.
 +
Configure as required, and save your changes before exiting.
 +
 +
Optional: If you want to change the domain URL that wordpress will be accessed with, apply any changes to the URL property before setting up wordpress, refer to options below, default is wordpress.
 +
 +
 +
'''Upgrade Wordpress:'''
 +
 +
Download the 3.4.2 tar file from wordpress.org.
 +
 +
Put the tar file in /opt, extract it and adjust ownership if necessary.
 +
tar xvf wordpress-3.4.2.tar
 +
 +
chown -R root:root wordpress
 +
 +
Go to http://www.yourdomain/wordpress/wp-admin and choose yes to update the Wordpress database.
 +
 +
Now you'll be able to download themes and extract them in your /opt/wordpress/wp-content/themes directory and apply them in wp-admin.
 +
 +
 +
'''Usage:'''
 +
 +
Normal access by bloggers -> www.yourdomain.com/wordpress/
 +
 +
Admin or backend user access -> www.yourdomain.com/wordpress/wp-login.php
 +
 +
 +
'''Options:'''
 +
 +
<nowiki>*****THIS SECTION MAY NEED REVISION*****</nowiki>
 +
 +
*You can fine tune access to wordpress with DB settings:
 +
 +
http://wiki.contribs.org/Web_Application_RPM#New_DB_settings
 +
 +
*Local Settings:
 +
 +
The config file is now templated, so changes need to be made in a new fragment, eg:
 +
 +
nano /etc/e-smith/templates/opt/wordpress/wp-config.php/05local
 +
 +
check which setting you want to change with:
 +
 +
cat /opt/wordpress/wp-config-sample.php
 +
 +
then add the new setting in the new fragment and expand, it will overrule the old:
 +
 +
expand-template /opt/wordpress/wp-config.php
 +
 +
If you think your setting should be the default, raise a bug.
 +
 +
 +
'''Recommended Plugin (Akismet install):'''
 +
 +
Spam filtering is a popular plugin and recommended to prevent excessive spam being added to your wordpress blogsite.
 +
To configure the Akismet plugin offered by Wordpress do the following:
 +
 +
Login as admin.
 +
Click on the Plugins link at top right of page.
 +
The Plugin Management page will appear, and a list of Inactive Plugins is shown.
 +
Check the tick box next to Akismet and then click on Activate
 +
To complete the process you will need to enter your Wordpress.com API key
 +
Click on the "enter your WordPress.com API key" link at the top of the page.
 +
If you do not already have a key, then click on the (Get your key) link.
 +
This will take you to the wordpress.com site. You need to create a new user account (if you don't already have one).
 +
Click the Signup link and enter required details. Select the option to create "Just a username please" and do not create a blog site at wordpress.com.
 +
You will receive a email confirmation to activate your account.
 +
After confirming your account creation, you will receive another email advising your new account details, and giving you the API key details.
 +
Return to the admin page of your new wordpress blog site and click on the Plugins link.
 +
Select Akismet configuration and enter your API key details.
 +
If preferred, tick the check box next to "Automatically discard spam comments on posts older than a month"
 +
Click the Update options button, and you should then see a confirmation notice that your key has been verified.
 +
Configure other Akismet settings as required.
 +
Save your changes, exit as admin user, and start using your blogsite.
 +
 +
 +
'''Un-installation of Wordpress and removal of MySQL database:'''
 +
 +
1. To remove the package issue the following command on the SME Server shell:
 +
 +
rpm -e wordpress smeserver-wordpress
 +
 +
2. Delete MySQL database:
 +
mysql
 +
drop database wordpress;
 +
 +
3. Delete MySQL user:
 +
mysql
 +
USE mysql;
 +
DELETE FROM user WHERE user = 'wordpress';
 +
FLUSH PRIVILEGES;
    
===smeserver-zabbix-agent===
 
===smeserver-zabbix-agent===
1

edit

Navigation menu