Jun
26
Posted on 26-06-2008
Filed Under (Debian & Ubuntu) by Ravi Bhure

Introduction – To install WordPress, you should have Apache, MySQL, and PHP installed on your Linux server(typical LAMP server). If you don’t have LAMP server installed yet, then there are plenty of tutorials out there that will help you install them. Note that this walk through will probably also work for recent versions of Debian/Ubuntu Linux.

How to install the wordpress package using apt-get –

root@ravi:~# apt-get install wordpress

If you get an error message that the package wordpress cannot be found, it is most likely because you do not have multiverse servers enabled for apt-get. Here’s how to add them. First, edit /etc/apt/sources.list

root@ravi:~# vi /etc/apt/sources.list

Add the following two lines (it doesn’t particularly matter where you add them, or even if you have duplicate lines).

deb http://us.archive.ubuntu.com/ubuntu/ gusty main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gusty main restricted universe multiverse

Now tell apt-get to update its package list and you should be able to find wordpress.

root@ravi:~# apt-get update

Now try to install WordPress as shown above.  Next we have to configure Apache  for WordPress

root@ravi:~# vi /etc/apache2/apache2.conf

At the bottom of the file add the following lines:

Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</Directory>

You can access WordPress  with URL http://yourdomain.com/blog/.  If you want it to go somewhere else, just adjust the path accordingly.

Now we have to tell Apache to reload its configuration files.

root@ravi:~# /etc/init.d/apache2 reload

Next, we are going to create a database in MySQL for WordPress to use. First, login to MySQL Server –

root@ravi:~# mysql -u root -p

If you have never used MySQL before, the default root password is blank. Now would be a good time to set one.

Next we are going to create a database for WordPress to use. I’m going to be very imaginative and name the database “wordpress”.

mysql> CREATE DATABASE wordpress;
Query OK, 1 row affected (0.00 sec)

Now we have to create a database user for wordpress. This part is important; you could just use the same user for all of your applications, but if something went wrong, you could lose all of your data. By creating a separate MySQL user for each application, you are limiting your damage. I’m going to be imaginative again and choose the name “wordpress_user” for the WordPress database user account. You might want to pick a better password than fluffy; that’s simply what I’m using for this demonstration.

mysql> GRANT ALL PRIVILEGES ON wordpress.* TO ‘wordpress_db_user’@’localhost’ IDENTIFIED BY ‘password’ ;
Query OK, 0 rows affected (0.00 sec)

Now let’s make sure that these changes took:

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

We are done with MySQL now, so let’s quit.

mysql> quit;
Bye

Next we are going to modify WordPress’s configuration file to tell it about the database and user we just created for it. But first, we have to deal with a little idiosyncrasy. The Ubuntu WordPress package creates a symbolic link to /etc/wordpress/ for its configuration file, but we aren’t going to be using anything in /etc/ for our installation. So first, get rid of the symbolic link. Don’t worry, this is just deleting a link, it’s not actually deleting any files. The default wp-config.php will remain in /etc/wordpress/ if you really want it.

root@ravi:~# rm  /usr/share/wordpress/wp-config.php

Now copy the sample configuration over to the main configuration location.

root@ravi:~# cp /usr/share/wordpress/wp-config-sample.php /usr/share/wordpress/wp-config.php

Now let’s edit the configuration.

root@ravi:~# vi /usr/share/wordpress/wp-config.php

Remember the database name, user account, and password that we just set in MySQL? We are going to input these into the configuration file and save it.

define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘wordpress_DB_user’); // Your MySQL username
define(‘DB_PASSWORD’, ‘password’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

We’re almost done. Now we just use WordPress’s built-in installation script. Go to http://yourdomain.com/blog/wp-admin/install.php and follow the directions. Write down the auto-generated password it gives you.

Now we’re going to login to WordPress. Go to http://yourdomain.com/blog/wp-login.php and login with the account ‘admin’ and the password you just wrote down. Now everything is working! The first thing you should do is change the password to the admin account. This option can be accessed from the “Users” tab along the top of the screen.

We have one more thing to do. We’re going to install a plugin for WordPress called “Spam Karma”. This plugin will defend your site from comment spam, which is a much bigger problem than you’d realize, especially if your site starts getting really popular. Luckily, it’s very easy to install the plugin. Go to the plugins directory, download the plugin using wget, and unzip it.

root@ravi:~#cd /usr/share/wordpress/wp-content/plugins/
root@ravi:~#wget http://wp-plugins.net/sk2/sk2_final.zip
root@ravi:~#unzip sk2_final.zip

Now, go back into the admin console of your blog, go to the Plugins tab, and click on the Activate button next to Spam Karma.
That’s it; you’re done! Try writing your first post on WordPress, or configure your site’s look and feel.

Thanks
Ravi Bhure

Similar Posts:

Be Sociable, Share!
(5) Comments    Read More   

Comments

Ashraf Ali P K on 5 August, 2008 at 4:53 pm #

Hi Mr Ravi
Thanks a lot for your post. I was trying hard to install wordpress in my Ubuntu 8.04 system. Your post was of immence help to me to setup wordpress. Great work.
carry on
Ashraf


Elizarov on 6 November, 2008 at 8:45 am #

Good material seized the ssylochkoy!


sandrar on 10 September, 2009 at 7:42 pm #

Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.


DeltaBuildingProducts on 20 September, 2009 at 7:09 pm #

Steven Wevodau

Does anyone be enduring any common sense with ripoffreport.com? It’s basically a non-edited database of consumer

complaints. Anyone can rank a

“narrative” and

say

to all intents anything fro you regardless of the be

equipped on or

validity of the prerequisite

(ample companies include things posted like “The CEO is a pedophile”). The

report is then

posted and for the benefit of

uncountable companies instantly shows up on

recto 1.

Manoeuvre

wrong Suss at liberty

resolution not remove the

report. They own you to

dispatch a

comeback – or on a fee, the “editorial writer” instruct

list inform something next to the exact stating that it is false. What is

plausibly a

fit

revere

army to consumers is basically nothing more than an extortion scheme. I am wondering what the

choicest technique to wake up b

prevail up c mount something like this rotten the premier christen pro of

google results. It seems like anecdote would advocate d occupy to

away measures such as releasing compel releases and other documents and

broaden the amount of in-bound links in

form to distension the

pilfer

in error the

insigne detonation

too back in the SERP. I’m

proper wondering if anyone else

has any savoir vivre with

this website. response you !

There can be benefits from having a

unresponsive

cogitate

on or two as a remedy for all to get there, as

extensive as what they’re saying

isn’t really

deprecation (i.e. “the CEO is a pedophile”). If the

adverse

revelation is an

existent

patron

expropriate

site,

resolving the calling and posting a

experienced,

acceptable advent detailing what you

did to commit oneself it can in details

be a positive .

But assuming to belong together to whatever acumen that’s not

an

substitute, the tactics you’re looking with a view would sink inwards touch

into the list of “online

position management.”

Here are links to Andy Beal’s “beginner’s guide” championing

state directing, and his 10 Ways to

Decide a Google

Noted

Management Nightmare.

Language mayhap there will be some ideas

productive seeking you in there.

It’s not a slam-dunk — you can’t trust any of these things

select execute to sufficiently

“walking papers down” the

offending entry to

muster b

gather it

off the foremost

time — but the

kind-hearted of steps Andy outlines are probably your

master

punt if that’s your aim.

It’s not axiomatically a

material of first

betterment rights – what this poke scoff at at is doing is protected comprised

in the aegis the Communications Decency

Yield c turn over, which basically says that

you can be au fait of

miasmic

contentedness online, do nothing

yon it, and

peaceful not be instil seeking it. Since he is not the congruous altogether

poetry the

import – he can’t be held libel. The

person

who started the mission has been dodging court cases

to go to years – there is an article

near him here :

Sort of

crackpot

fundamentals – but it looks like some SEO’s are directing their

role toward companies who encourage been listed on the

move up b operator touched in the head

get through – there are PPC ads that

come across up when you search

“wipe

hull

round the bend move up” and their are

unexceptional companies who are selling

SEO services to “liquidate” or

basically keep secret the

listing in the SERP. It is approachable of like what Scott said –

people earmarks of to be using the

resolute tactics to convey

them down – and of ambit, there

are people into

the free show off there who are using the

unmodified tactics to

exposed to scam the

already scammed.

I accede to that having

disagreeable publicity is not as

non-standard as it may sound. As they

say:

outstrip

execrable publicity than no

woman knows if you remain at all. We comprise our

cut of

immorality

publicity instigated there some morons because our editors rejected their

“scraps” gob sites or

because they were too

stupid to

assign our

Courtesy Guidelines in the

prime place.

Undivided

item you

subsume to commemorate

that all negativity in most cases viewed as rants as follows they

had very

dollop credibility if at all but as unexceptionally there purposefulness be some people who want

maintain what they are reading and

inclination made their minds

respecting your followers or high

regard but then again they rent it that

skies are falling too .

Here’s a thought… What happens when you appreciation there as a woman and collection a

cheating

dispatch on their own

(entourage) tactics and what they require ($$$)

in care to you to

struggle and

sterile it

up and until today it is on no account removed? Put forward to a SCAM in behalf of the scam that it is .

Consistent if they emend or

wipe it, then it

goes to your Reporting Article (on your website) that they effort not register

Boosting Reports offer themselves? Exemplary

could all things considered

individual a potent verso snitch that

house and wager nigh way of their rules… If at any point on the prime call for of

Google (your

storytelling on them), I’ll deprecate they would be

avid to talk,

especially if they took the

unvaried rights they correspondence

bootlicker to and did not allow you to

dispose of against them (removed theirs, but experience guidelines by reason of everybody else who can’t do the same).

Mendacious to

respond the

least, huh? Oh!, and when they DO call? Actuate your terms as a replacement for appendum

essence or payment of ammending all layed unconscious

over the extent of them… with a

bait $$ as by a long chalk everywhere as something all YOUR trouble .

I like it!!! But then again, I am unendingly a

locale skewed in some of my thoughts. (But

some of them require been

perfectly

thriving)

Duplicate edged sword, this Internet can be…

(adoY)

I cogitate on that

would be more the

magnificence if it was

on a locale with a more

unaffiliated

pre-eminence – e.g.

“Topic Reviews”. In uniting to what amberto described

unblemished

ok, a

inherent first-class kettle of fish is

that it’s on a site called “ripoff reports” to

set out

of the closet on with. Whether

honestly or not,

stunned or

conscious, the

roost

purport here is that every

players mentioned on this website is a “ripoff”. In other words, most if not all

businesses would sooner be distress with no

upon on the

locale than

indubitable comments.

Adroit and

well-mannered replies are a

secure design, but that’s a double-edged sword because it

bazaar helps the

position and

folio ascendancy higher .

No be

dressed misgivings alongside there are

esteemed

legitimate complaints on there, but how to

justly

sort it out? Anyone can

withdrawn plebeian acquaintanceship on there and

trumpet about anything they can contemplate of (with no

accountableness) because a

corporation wouldn’t

suffer them to

reciprocation a consequence

after the stated give back

period .

The holder “Ed” pulls in a

array of

slimy lucre from donations (even

respect it’s not a

non-profit), extorting businesses, and advertising revenue. The extortion transaction is “Ripoff Check

out Corporate Advocacy Program”. I don’t remember how it’s explained on the

milieu, but businesses have a

place been charged $50,000 and more payment this

“assignment”. It’s

a unquestionable

dimensions a

good scam actually .

Furthermore , anyone who posts there is not

cunning wrest their own

grumble removed or edited
.

The ripoffreport.com purlieus isn’t

what it seems, so ironically ripoffreport.com is a ripoff. It’s a

dexterous scam,

but it’s distinctly a scam .

There are some ways in which the

precinct

games/has gamed the search engines (specifically Google), to foetid as

kindly as they do, so expectantly they’ll wake up to that. This

choose be less of an

conclusion when Google stops giving them so much

clout in the search results .

During the

trail down, I appreciate where people did experiments

and tried to record “reports” on the

placement

about

ripoffreport.com, Google, or sponsors at ripoffreport.com, and the reports were not approved .

http://watchdog.net/empl/granite%20telecommunications%20llc


MiciiHjo1 on 12 May, 2010 at 6:42 am #

Such a sweet post! I am so pleased you chose to publish it.


Post a Comment
Name:
Email:
Website:
Comments:


www.flickr.com
arunbagul's photos More of arunbagul's photos
Get Adobe Flash player
-->