How to Install WordPress | Making a Website from Scratch-2Posted by admin at Apr. 10. 2012.
Installing WordPress is not a big deal these days, as many hosting providers have Fantastico and/or Softaculous auto-installers with them which helps us in installing scripts like WordPress, Joomla, PHPbb etc. in matter of few clicks.
But what will you do if you got to install some script not present with Fantastico or Softaculous.
In order to learn that we are now going to install WordPress and just for your information I must tell, installing any other script is just similar to that of installing WordPress.
Things we need to have/know:
If you had gone through my previous post which is the successor of this post and followed each and everything, we’re good. But for those lazy people who are not yet subscribed to my mailing list and have not read the previous post, you need to have a
-hosting account with PHP and MySQL (use 000webhost.com its free)
-a domain pointing to your hosting (stop being lazy read the previous post if you don’t understand this)
Okay stop saying I’m lazy, it just means to have a domain registered, for example I registered MyExampleDomain.tk on dot.tk for free and changed its name servers as required.
-a pastry or peanut butter sandwich. :) You know it why !
Working of a script or WordPress.
First of all I’m no genius who knows everything. So I cannot explain it working deeply.
So in order make a script working we will be required to create a MySQL database and relate the script with that database. This is mainly done by “config.php” file.
In case of WordPress it is “wp-config.php” if you don’t see it in the WordPress version you downloaded, look for “wp-config-sample.php” we will rename it later.
So first of all go to your hosting account cPanel.
-Look for MySQL there and click it (of course)
-Create a database and user there, and note that MySQL host for your account there (in case of 000webhost.com). Usually MySQL host is localhost.
-Once we have created the database with a user go back to cPanel and click on phpMyAdmin.
There you will see your database and user
-Now enter phpMyAdmin, you will see something like this
-Create some arbitrary table as I did in above image.
When you click go, you will se something like this
-Now fill the blanks with some default values or whatever I’ve done and leave the other spaces blank and don’t ask why, because I don’t know ! :p
Then click on “Go”
Then you will see this
If you don’t see something similar, repeat the above step.
It says no Index Defined, leave it, if something happens wrong we will come back. :p
Now cloce the phpMyAdmin window, its job is over.
Now we have a database, with some name.
In particular case of mine: a4630188_db
A user defined to that database with some name.
In particular case of mine: a4630188_us
A password for that user.
In particular case of mine: ************
Database host: mysql2.000webhost.com
Note that it is not localhost in case of 000webhost.com
You will find your database host in MySQL manager in your cPanel.
Till now, the above steps are common in installation of any script.
Now download a copy of WordPress from WordPress.org/download
Now using the file manager in your cPanel or using any other FTP cliet program upload the WordPress zip file to the public_html of your host.
Upload from where the uploaded zip file will be decompressed in the directory as shown.
Or if you have some other script, do the same.
Once the uploading is done, we will have a wordpress folder with all the neccessary WordPress files, either leave it as it is or move all the files to public_html if you want your blog to be on MyExampleDomain.tk
For now I’m leaving it as it is and will use redirecting script on homepage to redirect visitors to myexampledomain.tk/wordpress. See here.
Now we will install the WordPress. This will simply be done by visiting our site, myexampledomain.tk/wordpress
Now simply follow the onscreen steps.
fill in the required details.
And then run the install by simply following onscreen instruction and bingo ! You’re a Web Master from now.
But in case of installation of some other script you would have been required to fill the details like database name, user and MySQL host in config.php manually.
Now go have a look at myexamledomain.tk
I used the redirection script, if you need it simply download this file redirection script ready made page (73)
and change the address redirected to and the text.