I’m creating a massive WordPress Theme and Plugin Tutorial, so I will first show you how to install WordPress on a Localhost for development purposes.
If you’re on a PC, you’ll probably want to get the Microsoft Web Platform Installer or Wamp Server. I prefer to install Apache, MySQL and PHP outside of a package system, but I leave that to you.
If you’re on a Mac or UNIX type system the following steps will work easily for you.
Video Tutorial
You can watch a Video Tutorial, or follow the steps that follow the video below?
Download WordPress Here and then open up MySQL, by typing something like mysql5 -u root -p. Then enter your password for MySQL.
Then enter the following to create the WordPress database and WordPress user.
CREATE DATABASE wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO “your_username“@”localhost” IDENTIFIED BY “your_password“;
FLUSH PRIVILEGES;
exit;
Edit the WP-Config-Sample.php File
Then locate the WordPress folder you downloaded and open wp-config-sample.php in a plain text editor.
Look for the following lines of text and enter your Database Name, User Name and Password.
define(‘DB_NAME’, ‘Database Name‘);
/** MySQL database username */
define(‘DB_USER’, ‘Your Username‘);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘Your Password‘);
Then go to this url and get your secret keys WordPress Secret Keys. Copy everything you find there and past it over the space provided in the wp-config-sample.php file.
Now save that file as wp-config.php.
Installing WordPress
Copy the WordPress folder to the location of you Web Server. Then go to the following location in a browser for example if you installed it on your web server in a folder called wordpress.
localhost/wordpress/wp-admin/install.php
If you have any questions or comments leave them below.
Till Next Time
Think Tank
I get this error, after running “http://localhost/wordpress/wp-admin/install.php.”
Error: Error establishing a database connection.
What do I do?
Did you set up the database?
Hello i’m trying to install wordpress on my home computer running window 7-64 BIT.
Also i do not have a webhosting.
What should i do after i saved file as wp-config.php?
Thank you.
Are you using WAMP, or did you install Apache on your own?
I’m not using WAMP or Apache i’m still debating which one is best?
My future website will be hoesting moslty pictures and videos.
It’s better to just install Apache so that you get used to how the web server will work. Another option which I think is the best is to install Ubuntu directly inside of Windows. Then Apache and everything you need for your web server is already set up. Here is the link to the easy install for Ubuntu
I was searching on Microsoft website and found Webmatrix what are your thoughts about this one compare to WAMP & Apache..?
I have a new issue after isntalling wordpresss…my web browser is not displaying the Chached links…?
Thank again for your help.
That doesn’t have anything to do with WordPress. There must be something else wrong. What browser are you using?
Hi, My sample site still doesn’t appear. No error is displayed but instead the list of the php files in the wordpress folder are displayed. What do you think is wrong? Thanks.
What operating system are you using?
Hi, i am using windows. I used apache as my virtual server. What do you think is wrong? Thanks.
What error messages, or problems are you having? I have seen numerous different problems using Apache in Windows. It’s probably better if you just install Ubuntu and use that for web development. That’s what you’ll use in the real world anyway. Check out Wubi for Windows
Hey Derek, I am nowhere near installing this stuff on my laptop. I know i have already bothered you yesterday. But I cant seem to get it. I have already installed Apache Tomcat 6 on my laptop. how do I install and configure php with that?
You’re on a PC right? I may make a tutorial that walks you through the process
Hi, thanks for your amazing videos. I have not completed the installation on my pc, but I have one question for you regarding the WordPress database. Does the database have the sample data?
You’re very welcome 🙂 There are a few things saved in the database by default, but for the most part it is empty content wise
I went into terminal and tried typing mysql5 -u root -p and I got an error that said
-bash: mysql5: command not found. Do you have a tutorial about it and do you have any suggestion about how to continue.
Thank you for any help you can give me.
What operating system are you using?
I getting the same error. I am using a Mac.
Hi Derek
Below is an error message trying to install wordpress.
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Need advice
D Calder
I have Apache2.2 and mySQL 6.0 CE installed on my pc and my operating System is windows 8
I am trying to install WordPress and I have an error messages
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Sorry i didn’t see this first. Here is the fix http://wordpress.org/support/topic/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-require-24
Hi Derek
It seems like some people drying to set up word press is having the same issue I got I look up the problem on the Internet it seems there are a lot of people with this problem.
I typed in the bar “Your PHP installation appears to be missing the MySql extension which is required by Word Press”
I thought you could have a look at this issue which seems to be very big problem from the information I got from the Internet.
Thanks
Once Again
D Calder
Hi Derick,
Where do you have your WordPress site installed? Web server online, Windows localhost, OSX localhost?
Hi Derek
I have Word-press 3.9.1 installed on Apache2.2 “local-host” Web Server
would this make a difference to the extension which word-press Needs
I have my wordpress installed on my localhost Web Server Apache2.2
HI Derek
This is my error message–> Your PHP installation appears to
—-> be missing the MySQL extension which is required by WordPress.
All the MySQL extension are the php.ini files.
My Question is this
the extension
I use for my MySQL work bench is
–>extension=php_Mysqli.dll which is in the php.ini file. Mysqli is the new configeration for Mysql workbench ce.
For wordpress to be installed on my windows 8 it needs to have—> extension=php_Mysql.dll which is also in my php.ini file. The only thing I can see is that there is a new way or another extension wordpress needs.
D Calder
Take a look at Wubi. It will make it very easy to install everything. It is like Ubuntu in application form.
Hi Derek
I have got wordpress 3.9.1
http://make.wordpress.org/core/2014/04/07/mysql-in-wordpress-3-9/
This uses a different extension.
Hi Derek
The good news is I had reinstall my php and everything is know working except word-press won’t let me login and on the form I my user login name as–> admin
I am going try and figure out this new problem
Thanks
D Calder
Your default userid is admin
Hi Derek
OK I have install Word Press.
Thanks
D Calder
Hi Derek
Thanks Again for the Tutorials
D Calder
You’re very welcome 🙂
Hi
Derek
I reinstalled My PHP and I reinstalled word press with a New
Database with a New User Name. I kept My password I use to sign in to My SQL. ‘OK’
Thanks again For Your Tutorials they are the best Tutorials I have every seen.
D Calder
Thank you very much Derick 🙂 I’m glad you got it working.