Difference between revisions of "Wordpress"

From YobiWiki
Jump to navigation Jump to search
m (Reverted edits by Springer342 (Talk) to last revision by PhilippeTeuwen)
 
(8 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
</pre>
 
</pre>
   
  +
UPDATE: see [http://wordpress.org/development/2008/04/wordpress-251/ this page] to patch a security issue in v2.5 and to setup a SECRET_KEY in your installation.
Beware that by default emails are sent from wordpress@your.blog.domain and it's pretty hard to change that everywhere without hacking the code, so make sure you have a corresponding MX record (otherwise some spam filters could refuse to deliver the mail to the newly registered users waiting for a password) and ideally make sure your MTA accepts to receive replies in case someone tries to reply to those mails...
 
   
 
==Plugins==
 
==Plugins==
Line 26: Line 26:
   
 
===[[OpenID]]===
 
===[[OpenID]]===
install [http://wordpress.org/extend/plugins/openid/ this plugin]
+
Install [http://wordpress.org/extend/plugins/openid/ this plugin]
   
 
If you have already the package php-openid, then you've to disable the one of the plugin:
 
If you have already the package php-openid, then you've to disable the one of the plugin:
 
rm -rf /usr/share/wordpress/wp-content/plugins/openid/Auth
 
rm -rf /usr/share/wordpress/wp-content/plugins/openid/Auth
  +
  +
===Login Warning Banner===
  +
To make your colleagues aware that they're using a public blog, you can use this [http://wordpress.org/extend/plugins/login-warning-banner/ Login Warning Banner plugin]
  +
<br>To to add such warning to the comments form too, simply add a line at the end of the php:
  +
<source lang=php>
  +
// Run Warning Banner Function
  +
add_action('login_form', 'warn_banner');
  +
add_action('comment_form', 'warn_banner');
  +
</source>
  +
===Mail From===
 
Beware that by default emails are sent from wordpress@your.blog.domain, so make sure you have a corresponding MX record (otherwise some spam filters could refuse to deliver the mail to the newly registered users waiting for a password) and ideally make sure your MTA accepts to receive replies in case someone tries to reply to those mails...
  +
  +
With Debian once you added the "your.blog.domain" to the list of local_domains you can also use /etc/email-addresses to overwrite the From: address by another one so you don't need the MX record in that case.
  +
  +
Or... just install [http://wordpress.org/extend/plugins/mail-from/ this plugin] and configure the From: as you like :-)
  +
<br>It's amazing how everything can be tuned with plugins!
  +
  +
===Dashboard Widget Manager===
  +
Install the following [http://www.viper007bond.com/wordpress-plugins/dashboard-widget-manager/ plugin] to be able to manage your dashboard easily
  +
===Disable Update notifications===
  +
That's the trade-off, either allows the code to automatically check for updates or block all output connections because it's safer...
  +
* [http://wordpress.org/extend/plugins/disable-wordpress-core-update/ Disable WordPress Core Update]
  +
* [http://wordpress.org/extend/plugins/disable-wordpress-plugin-updates/ Disable WordPress Plugin Updates]
  +
* [http://wordpress.org/extend/plugins/anonymous-wordpress-plugin-updates/ Anonymous WordPress Plugin Updates] as using the feature doesn't mean you want to give away all the infos on you...
   
 
==Client==
 
==Client==
 
[http://www.scribefire.com/ ScribeFire] is a very nice plugin for Firefox to write blogs easily
 
[http://www.scribefire.com/ ScribeFire] is a very nice plugin for Firefox to write blogs easily
  +
==Misc==
  +
Notes for me to copy/paste the overview to Lotus Notes (erk!)
  +
* Go to http://blog.../feed with firefox
  +
* Save as feed.xhtml
  +
$ awk 'BEGIN{print " <html><body> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"}/feedContent/,/<\/html>/' feed.xhtml > feed.html
  +
* Open feed.html in IE (now works also with FF3)
  +
* Copy/paste to Lotus Notes

Latest revision as of 20:36, 15 July 2010

Installation

apt-get install wordpress

Setup apache to point to /usr/share/wordpress.
See the /usr/share/doc/wordpress/examples/apache.conf
Database setup can be done with the help of a script in /usr/share/doc/wordpress/examples/setup-mysql

bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress <my.blog.site>


It's a bit more tricky if your mysql server is not localhost, you can make a copy of the script and make some adjustments and/or create the DB and user manually

To get nicer URLs (e.g. <my.blog>/2008/04/mypost), add this to /etc/wordpress/htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

UPDATE: see this page to patch a security issue in v2.5 and to setup a SECRET_KEY in your installation.

Plugins

Piwik

Install the following plugin
Then go to admin settings -> Google Analytics and copy-paste the code from Piwik

OpenID

Install this plugin

If you have already the package php-openid, then you've to disable the one of the plugin:

rm -rf /usr/share/wordpress/wp-content/plugins/openid/Auth

Login Warning Banner

To make your colleagues aware that they're using a public blog, you can use this Login Warning Banner plugin
To to add such warning to the comments form too, simply add a line at the end of the php:

// Run Warning Banner Function
add_action('login_form', 'warn_banner');
add_action('comment_form', 'warn_banner');

Mail From

Beware that by default emails are sent from wordpress@your.blog.domain, so make sure you have a corresponding MX record (otherwise some spam filters could refuse to deliver the mail to the newly registered users waiting for a password) and ideally make sure your MTA accepts to receive replies in case someone tries to reply to those mails...

With Debian once you added the "your.blog.domain" to the list of local_domains you can also use /etc/email-addresses to overwrite the From: address by another one so you don't need the MX record in that case.

Or... just install this plugin and configure the From: as you like :-)
It's amazing how everything can be tuned with plugins!

Dashboard Widget Manager

Install the following plugin to be able to manage your dashboard easily

Disable Update notifications

That's the trade-off, either allows the code to automatically check for updates or block all output connections because it's safer...

Client

ScribeFire is a very nice plugin for Firefox to write blogs easily

Misc

Notes for me to copy/paste the overview to Lotus Notes (erk!)

$ awk 'BEGIN{print "   <html><body> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"}/feedContent/,/<\/html>/' feed.xhtml  > feed.html
  • Open feed.html in IE (now works also with FF3)
  • Copy/paste to Lotus Notes