Saturday, January 5, 2008

HowTo: Fedora WordPress Installation

How to blog from your own desktop?
How to install WordPress?

Yes, you can start blogging from web hosting firms, but have you tried blogging from your own desktop using WordPress? If not, read on.

WordPress installation process is as easy as installing any other software in Fedora.
You could try to blog from your own desktop, test some themes and plugins faster, do some WordPress export and import and most of all, enjoy the speed right from your own desktop!

Here's how to install WordPress into your desktop.

WordPress Installation

Back to the yum cave, and pull out our yum weapon and launch yum

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# yum -y install wordpress
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

WordPress does not need any dependency when being installed. The yum download size is about 3MB.

By default installation, WordPress would be installed into /usr/share/wordpress. If you want to run wordpress from your apache root folder like /var/www/html/wordpress,
simply issue the below commands.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# cd /var/www/html
# ln -s /usr/share/wordpress
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Login to your MySQL server
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# mysql -u root -pYOURMYSQL-PASSWORD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Once inside your MySQL server, create a new database to be used by WordPress like so
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mysql> create database wordpress-db;
mysql> quit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Then launch your favorite editor and edit /etc/wordpress/wp-config.php. Make sure you edit the words that are in BOLD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
define('DB_NAME', 'wordpress-db'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Start your Apache and MySQL server
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# service apache start; service mysqld start
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fire up your browser and open your WordPress management page like so:

http://you-ip-address/wordpress/

That's basically it.

If you got an error saying, Error establishing a database connection, check you database name, database username and password. Make sure your apache and mysql are both running.

Start blogging from your desktop now.

My apology for late posting here due to a well celebrated holiday seasons. I welcome you and happy new year all !

7 comments:

SawRub said...

really helped me in installation and config.
Thanks

Anonymous said...

Don't work. http://localhost say:

Error establishing a database connection

VeRTiTO said...

login into your mysql server

# mysql -u username -p

Then create a database for your Wordpress

mysql> create database mywordpress-database;

mysql> quit;

then from CLI start

# service mysqld start

and browse your new wordpress site

Anonymous said...

Worked verry well thanks.

daniel said...

after doing all that, i put http:// localhost/wordpress and it brings me just a blank page, i cant see the wordpress management page

VeRTiTO said...

http://localhost/wp-admin/

Scott said...

Many thanks. This made it quite simple on Fedora 15.

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy