Tips and Tricks Latest Post |
How to Install WordPress Multi-site in Localhost (using XAMPP) Posted: 05 Aug 2013 06:48 PM PDT So you want to install a WordPress Multi-site Network on your local computer using XAMPP, huh? (you like that HTML Goodies throwback?) Well, in this article, and the accompanying video I will go through the process to make that happen. I will be using XAMPP to run a “web server” on my local machine allowing me to host web sites. PHP and MySQL are included making it work easily for WordPress and WordPress Multi-site. While I am using XAMPP in this example, I might suggest USBWebServer to run a local site web server as the process is much simpler and quicker. Beyond that though I am not sure of the advantages or disadvantages of either. If you want to install WordPress multi-site on a live server then check this tutorial. WordPress Multi-site Setup on XAMPPWP Multi-site Setup Video TutorialFirst, Download and Install XAMPP and Start the Services
Now, Let’s Install the Latest Version of WordPressIn this next part, we go through a typical installation of WordPress with one small change. 1) First, grab the latest installation package from WordPress.org. 2) Extract the files to your computer. 3) Rename wp-config-sample.php to wp-config.php. 4) Modify the wp-config.php file in a text editor and enter in the database name, and database user name and password. Unless you created a new user, the user will be “root” and the password will be whatever you changed the “root” user’s password to be in the steps above. See below for where to add the database info: define('DB_NAME', 'wp'); define('DB_USER', 'root'); define('DB_PASSWORD', 'password'); 5) Now, in the wp-config.php file just below the line that says “define(‘WP_DEBUG’, false);” and above the line that says “That’s all, stop editing” place the following line to activate WordPress Network capabilities. define('WP_ALLOW_MULTISITE', true); 6) Visit the folder where you installed XAMPP to. If you left everything at the defaults, look for c:\xampp. In there will be a folder called “htdocs.” Empty that folder and move the WordPress files into it. 7) Finish the WordPress installation process by going to http://localhost in your web browser. Now, Setup the WordPress NetworkAfter following the above steps we are at the point where we got WordPress working on a local machine using XAMPP. And we have “turned on” the ability to have a WordPress Multisite by modifying the WordPress config file. Now, let’s setup the Network by adding some more lines to the wp-config.php and .htaccess files. 1) Login to your WordPress dashboard, which you will be prompted to do after installation. 2) Click Tools >> Network Setup. 3) Give the Network a title, and verify the Network admin email address. 4) Click the Install button. 5) Now you will be presented with two blocks of code. The code in the top box is to be placed into the WordPress config file (the same one where we turned on the ability to have a WordPress Network). Copy the lines and paste them over the “define(‘WP_ALLOW_MULTISITE’, true);” line in wp-config.php. In other words, overwrite that line as it’s no longer needed. 6) Copy the lines from the second box and paste them in the .htaccess file found in the “htdocs” folder. Overwrite all other lines in there that were created by WordPress. 7) Log out, then log back into your WordPress dashboard. Now, WordPress Multi-site (or Network) is setup on your localhost. In the Network Dashboard you can “network activate” themes and plugins making them available to other “sites” on the network. You can also create/edit sites from within the dashboard. |
You are subscribed to email updates from Tips and Tricks HQ To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment