Open main menu

CDOT Wiki β

SRA840 Lab8

Revision as of 17:17, 11 April 2009 by Milton.paiva (talk | contribs) (Milton Paiva Neto)

Milton Paiva Neto

1. To install WordPress

Installation

Setting up the database parameters

Create a database named wordpress and grant the proper permissions.

# mysql -u root -p
mysql> create database wordpress;
mysql> grant all on wordpress.* to wordpress@localhost identified by 'password';
mysql> quit


Installing wordpress

#cd /usr/ports/www/wordpress
#make
#make install

Integration with mysql server

  1. vim /usr/local/www/data/wordpress/wp-config.php

<?php // ** MySQL settings ** // define('DB_NAME', 'wordpress'); // The name of the database define('DB_USER', 'wordpress'); // Your MySQL username define('DB_PASSWORD', 'password'); // ...and password define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value define('DB_CHARSET', 'utf8'); define('DB_COLLATE', );

2. To install WordPress plugins -

Varinder Singh

Installing wordpress plugins

Installation of wordpress plugins is easy process. I have installed the three plugins given below

  1. Free Kareem (Support for Free Speech)
  2. Get Recent Comments (Display the most recent comments or trackbacks with your own formatting in the sidebar. Visit Options/Recent Comments after activation of the plugin)
  3. Wp Super Cache (Very Fast caching plugin)

Installation steps

1. #cd /usr/local/www/data/wordpress/wp-content/plugins
2. #elinks://http://downloads.wordpress.org/plugin/free-kareem-0.5.5.zip
3. #unzip free-kareem-0.5.5.zip
4. #rm free-kareem-0.5.5.zip
5. http://host.domain.com//wordpress/wp-admin/
6. click on plugins. It will show all new plugins just uploaded at location  /usr/local/www/data/wordpress/wp-content/plugins.
7. Click the activate.Its done!

Repeat the steps from 1 to 7 for rest of two plugins.