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

StudioPress Premium WordPress Themes     WP Engine Managed WordPress Hosting

What can I do for you!?

Custom Development

We develop plugins by determining both business/functional and technical requirements, following WordPress development best practices, and using agile methodology to ensure you get the best solution.

Consulting

Have questions? Need a reliable developer to consult? Please contact us today!

Customized Theme

We can customize your theme or child theme, or create a child theme for you based on your needs while enhancing the performance of every individual attribute.

Customized Plugin

We can customize your plugins, extend plugins (e.g., Gravity Forms, Jetpack, Soliloquy) based on your needs ensuring security, performance, and positive business impact.

Contact Us

About Travis Smith

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.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

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