Installing XAMPP & WPMS on Win7

XAMPPSince I’m currently working on some offline project, related to my daily work in public library, that includes Xampp let’s at first say something about it.

If you are web developer, who is working with WP, Joomla and similar CMS-s that are php powered, you’re well familiar with this, well let’s call it app. XAMPP is “Apache friends” aplication that simulate apache powerd PHP server with addition of MySQL, FileZilla, Tomcat etc on your PC or MAC. Currently there is Linux, Windows, Mac OS X and Solaris distributions.
Like said in title I will show you how to install and troubleshote XAMPP on Win7.

Step 1 (dowlnoad and install):

  • Download XAMPP (lite or basic package, current version is: 1.8.1)
  • Download WordPress
  • Extract package if you’re not using installer file (by default it’s installs in c:/xampp)

Step 2 (starting services):

  • Open XAMPP Control Panel ( located at c:/xampp/xampp-control.exe)
  • Now it’s getting tricky, try starting apache and mysql service, if started correct and the green light is showing go to step 4. if not …
  • Depending on error message you must troubleshot them. Usually there is problem with apache service and port 80 on windows, if so try to close programs like TeamViewer, Skype or any other program that occupies port 80. You can check active and listening port with starting CMD console (start ->type cmd in search -> press enter) and typing “netstats -a”. Check in your WinFirewall if you have exceptions for Apache handler and mysqld service, if not add it. If you’re having any other issues copy paste errors from xampp-control console on google, there is great chance that you will find correct answer for your problem.

Step 3 (setting up MySQL database):

  • open web browser (Chrome, Firefox …) and type localhost in address bar or 127.0.0.1
  • set security options for MySQL database an xampp directory
  • open phpMyAdmin
  • choose db collation depending on your local preferences
  • add new database with some custom name

Step 4 (installing WordPress MS):

  •  Extract your downloaded WordPress installation in c:/xampp/htdocs (after extraction you must have something like this: c:/xampp/htdocs/wordpress/…files…)
  • under wordpress directory open wp-config-sample.php with some text editor program (notepad++)
  • edit like this:

define(‘DB_NAME’, ‘database custom name from step 3‘);

define(‘DB_USER’, ‘root’);

define(‘DB_PASSWORD’, ‘password provided in xampp security for root‘);

  • save file and rename it to wp-config.php
  • in web browser type localhost/wordpress/ (or localhost/wordpress/wp-admin/install.php) and follow installation quide
  • after installing open wp-config again and add this above /* That’s all, stop editing! Happy blogging. */: (instructions on codex)
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
  • log in again and in wp-admin dashboard go to Administration/Tools/Network Setup and follow instructions with choosing path-based network, updating wp-config and making .htaccess file
  • voila
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s