WP Smith

Creating WordPress & Genesis Websites Since 2010

  • Home
  • About
  • Services
  • Blog
  • Contact

Mar 06 2014

Setting Up a Local Environment via XAMPP: Launching Apache & MySQL

Next we will launch Apache & MySQL. To do this easily, open the Control Panel.
XAMPP Control Panel

Click Start on both Apache and MySQL.
XAMPP Control Panel Start Apache
XAMPP Control Panel Apache Started

XAMPP Control Panel Start MySQL
XAMPP Control Panel MySQL Started

Now, if you want, you can install Apache and your local webserver to another port like 8080. To change the port, you want to navigate to your XAMPP directory (e.g., C:/xampp/apache/conf) and open the file httpd.conf in your text editor. On line 45, you'll find:

#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
view raw httpd.conf hosted with ❤ by GitHub

To change it to port 8080, simply make this change:

Listen 0.0.0.0:8080
#Listen [::]:80
#Listen 80
view raw httpd-new.conf hosted with ❤ by GitHub

Then later, on line 176, you'll see:

ServerName localhost:80

Change it to:

ServerName localhost:8080

If you switch to port 8080, you'll need to to always go to it via localhost:8080. Furthermore, WordPress will not allow you to enable multisite locally with a port number trailing localhost. It will redirect you to http://localhost/xampp/ or http://localhost:8080/xampp/.

You're host directory will be C:/xampp/htdocs based on httpd.conf. If you wish to change it, simply find it in httpd.conf on line 183 and make whatever changes you'd like.

Written by Travis Smith · Categorized: WordPress

Mar 05 2014

Setting Up a Local Environment via XAMPP: Configuring PHP

PHP comes installed with a preset configuration. In local environments, I tend to set things a lot higher than I normally would in a production site simply because it is for me and for strenuous testing, auditing, developing, debugging, etc.

So navigate to the C:xamppphpphp.ini file and open within Notepad++.
Open php.ini

The file will look like this initially.
php.ini

Go to line 451, and make the following changes:
https://gist.github.com/9318470
This will allow you to do a bit more with the PHP instead of it timing out on you periodically.

And then on line 922, change upload_max_filesize to upload_max_filesize=100M
This will enable you to be able to upload large files to the WordPress Media area.

Then on line 1045, change the default timezone. For more information as to what value to place there, see http://php.net/date.timezone.
This obviously sets the server default timezone.

Now, there are other customizations you can make to the INI file, but these basic changes are all the essential ones.

Written by Travis Smith · Categorized: WordPress

Mar 04 2014

Setting Up a Local Environment via XAMPP: Creating a Database via phpMyAdmin

4. Create a New Database

After you’ve installed XAMPP, run it by opening a browser and going to localhost, which will take you to the splash page.
XAMPP Splash

Click on your preferred language. It should take you to the start page, http://localhost/xampp/.
XAMPP Home

Now click on phpMyAdmin at the bottom left.
XAMPP phpMyAdmin

In the phpMyAdmin page, create a new database by clicking on Databases at the top.
XAMPP phpMyAdmin Databases

Since this is local anything will do (eg. prefix_wordpress). However, you want a more complicated database name than this to protect yourself from SQL injection on the internet. Adding a prefix will create folders to help with the organization.
XAMPP phpMyAdmin Create Database 1
XAMPP phpMyAdmin Create Database 2
XAMPP phpMyAdmin Result

Now go to phpMyAdmin, and create a new database (eg. prefix_wordpress) by typing in your database name (e.g. wordpress) and pressing CREATE.

Written by Travis Smith · Categorized: WordPress

Mar 03 2014

Setting Up a Local Environment via XAMPP: Installing XAMPP

Before You Get Started

WordPress needs PHP and mySQL to run. This tutorial installs via XAMPP, not WAMP or MAMP (Mac), so I will not be going into any details regarding WAMP or MAMP, but some of the things will apply to them as well.

1. Install XAMPP, a Local Server

In order to run any PHP/database application on a local computer, you need a local host (ie. Apache + MySQL). So go and download the most recent version of XAMPP or the version from this tutorial is XAMPP 1.8.3 (Sourceforge Old Versions, Windows Version, 128MB).

[browser-shot width="600" url="http://www.apachefriends.org/index.html"]

Setup XAMPP
Setup XAMPP Modules
Setup XAMPP Location

I personally disable BitNami, but feel free to include it.
Setup XAMPP Disable BitNami
Setup XAMPP Ready to Install
Setup XAMPP Installing
Setup XAMPP COMPLETED!
Setup XAMPP COMPLETED!

Once installed, move to the next step. You may go ahead and launch the Control Panel, but do not do anything yet. First we must configure the PHP modules to ensure that we have everything set as we need.

Written by Travis Smith · Categorized: WordPress

Mar 03 2014

Beginner Developer Series: Setting Up a Local Environment via XAMPP (Apache, PHP, mySQL)

When developing, it is always good to have a local site. Many skip this and use only a staging site and the production site. However, having a local environment will make life easy with testing scripts quickly and easily. Change a file, save, and run. However, using a staging site, you have to FTP up and down, and with WordPress and Windows, this sometimes can get you into trouble if not done correctly.

So, we need to install Apache (the server software), PHP (the language that WordPress runs on), and MySQL (the database). To do this on an Apple machine, use the Make WordPress Tutorial for MAMP or see the older tutorial in the Codex: Installing MAMP. For Windows machines, there is XAMPP, which stands for Apache + MySQL + PHP + Perl.

Quick Summary

Here are the simplified steps on how to install WordPress on your local computer that we will walk through this week:

  1. Install a local server ( XAMPP).
  2. Configure PHP
  3. Launching Apache & Troubleshooting with Skype
  4. Create a new database via phpMyAdmin.
  5. Setup XAMPP Security
  6. Download WordPress from wordpress.org and install into the htdocs folder (typically C:/xampp/htdocs).
  7. Run the famous 5 minute install and follow the instructions: wp-admin/install.php.
  8. Done!

Written by Travis Smith · Categorized: Tutorials

  • « Previous Page
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 60
  • Next Page »

Need Help?

Please let us know how we can help you!

Get Help

Recommendations

Genesis WordPress Framework
Sucuri Security
Gravity Forms
GetSoliloquy
Get Envira
Scribe SEO
BackupBuddy
WordPress Video User Manuals

Recent Posts

  • Solving WordPress 5XX Server Errors on SiteGround
  • Hiding an User in the WordPress Admin
  • Custom Rewrite Rules for Custom Post Types and Taxonomies
  • WordPress JavaScript Manager Native Functions
  • Causes of WordPress Site Performance Slowdown

About Travis

As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

Copyright © 2025 � WP Smith on Genesis on Genesis Framework � WordPress � Log in