this is obsolete doc -- see http://doc.nethence.com/ instead

Wordpress configuration 

 

http://pbraun.nethence.com/doc/www/wordpress.html 

http://pbraun.nethence.com/doc/lang/wordpressdev.html 

 

Installation 

Get your prefered language Wordpress (http://fr.wordpress.org/) and deploy it to your vhost dir, 

unzip wordpress-2.9.2-fr_FR.zip
mv wordpress /home/www/www.example.net

fix the perms, 

cd /home/www
chown -R nobody:nobody www.example.net
chown -R apache:wheel www.example.net/wp-content
chmod 775 www.example.net/wp-content/plugins
chmod 775 www.example.net/wp-content/themes

note. when you send some plugins to wp-content/plugins as wheeled user, fix the perms thereafter, to let apache edit the file through the Wordpress interface, 

chown -R apache:wheel www.example.net/wp-content

 

Configure the Apache vhost, 

<VirtualHost *:80>
        ServerName www.example.net
        DocumentRoot /home/www/www.example.net
        CustomLog /var/log/httpd/example_access.log combined
        ErrorLog /var/log/httpd/example_errors.log
        <Directory "/home/www/www.example.net">
                AllowOverride All
        </Directory>
</VirtualHost>

 

Connect to MySQL, 

mysql -uroot -p

create a database 

create database example;

create a user and give it some privileges against that database, 

create user USERNAME identified by 'PASSWORD';
grant all on example to USERNAME;

 

Deploy the Wordpress database into MySQL, 

http: //www.example.net/

copy/paste the configuration to, 

cd /home/www/www.example.net
wp-config.php

 

I'm not sure the mbstring package is needed for wordpress. Just in case here's how to get it on redhat, 

yum install php-mbstring

 

Customization 

To activate Permalinks, add this to your Apache vhost configuration, 

<Directory "/path/to/www.example.com">

  AllowOverride All 

</Directory>

and configure this permalink in Settings, 

Wordpress > Settings > Permalinks
Custom : /%postname%/

then copy/paste to .htaccess manually 

note. older Wordpress versions just needed this, 

Wordpress > Settings > Permalinks
Custom : /

 

Configure, 

  (FR) Réglages > Général > Slogan : ... 

  (FR) Réglages > Ecriture > Taille de saisie : 25 lignes 

  (FR) Réglages > Ecriture > Décocher emoticones 

  (FR) Réglages > Ecriture > valid XHTML 

  (FR) Réglages > Lecture > Une page statique : ... 

  (FR) Réglages > Lecture > pages affichent 25 

  (FR) Réglages > Lecture > syndication dernier 25 

  (FR) Réglages > Permaliens > Personalisé : /%postname%/ 

  (FR) Réglages > Discussion > Réglages par défaut des articles : tout décocher 

  (FR) Réglages > Discussion > Réglages par défaut des articles : tout décocher 

Note. about the static page, older Wordpress versions needed the sem-static-front plugin (http://www.semiologic.com/) 

 

Update procedure 

- Delete "wp-content/" and "wp-admin/" 

- Extract the last zip archive available and overwite the old files with it 

- Point your browser to "/wp-admin/upgrade.php" 

- Reapply your prefered file permissions 

- Check everything works fine 

Ref. http://codex.wordpress.org/Upgrading_WordPress 

 

Security 

We're assuming user quotas are needed, hence using group writes to enable Apache modifications. If the .htaccess file exists, 

chown USERNAME:apache website/.htaccess

secure the folders, 

chown -R USERNAME:nobody website/
chown -R USERNAME:apache website/wp-content/themes
chown -R USERNAME:apache website/wp-content/uploads
chmod -R g+w website/wp-content/themes
chmod -R g+w website/wp-content/uploads

Ref. http://codex.wordpress.org/Changing_File_Permissions 

Note. Wordpress defaults may be changed into wp-config.php, 

define('FS_CHMOD_FILE',0775);
define('FS_CHMOD_DIR',0775);

 

Editing wp-config.php : http://codex.wordpress.org/Editing_wp-config.php 

Get a new key : http://api.wordpress.org/secret-key/1.0/ 

 

Plugins 

- Auto-hyperlink URLs (http://coffee2code.com/wp-plugins/auto-hyperlink-urls/) 

- sitemap generator + options 

- insert PHP 

- Raw HTML (http://wordpress.org/extend/plugins/raw-html/), Insert HTML or EmbedIt 

note. yes that's needed : the default editor, even in HTML mode, still adds <br> and removes tags 

note. a possible workaround : http://wordpress.org/support/topic/102799?replies=6 

- button to insert youtube video 

http://wordpress.org/extend/plugins/vipers-video-quicktags/installation/ 

http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/ 

- 24 plugins : http://www.css4design.com/blog/24-plugins-wordpress 

 

Ref. http://coffee2code.com/wp-plugins/ 

 

Wordpress and PHPlist : http://www.idealwebtools.com/blog/jesseheap-helpwithwordpressphplist/ 

plugin wordpress : http://www.lejournaldublog.com/tag/plugin-wordpress/ 

La liste des plugins Wordpress utilisés sur le Journal du Blog : http://www.lejournaldublog.com/la-liste-des-plugins-wordpress-utilises-sur-le-journal-du-blog/ 

 

References 

Free Wordpress hosting : http://wordpress.com/ 

Domain Registration and Mapping : http://en.blog.wordpress.com/2006/10/24/domain-mapping-registration/ 

http://www.cagintranet.com/archive/10-little-known-wordpress-theme-tricks/ 

http://www.webinventif.fr/wordpress-controler-laffichage-de-votre-liste-de-billets-via-query_posts/ 

WordPress en français : http://xavier.borderie.net/wp-fr/ 

WordPress francophone : http://wordpress-fr.net/