• Skip to main content
  • Skip to primary sidebar

xfpoint

XenForo Resource Site with Tips, Tricks and Hacks

  • Home
  • About
  • Glossary
  • Guides
  • Tutorials
  • Add-ons
  • Contact
You are here: Home / Tutorials / How to Setup a Local (localhost) XenForo Site in XAMPP (With Pictures)

How to Setup a Local (localhost) XenForo Site in XAMPP (With Pictures)

April 8, 2017 by Shabbir Bhimani

The complete step by step guide with pictures of every step to help install XenForo locally on localhost running on XAMPP. This guide assumes you have successfully installed XAMPP on your computer. If you haven’t installed XAMPP yet, follow this guide on WikiHow.

Step1: Create a local database for XenForo

Click the phpMyAdmin link in the left column of XAMPP’s default home page.

xampp localhost

Or browse to http://localhost/phpmyadmin/

Click the Databases tab in the right frame and create a new database.

phpmyadmin localhost

You can name the database anything you want and I will name it as “my_xf”.

Step2: Download XenForo

Download the XenForo software from https://xenforo.com/customers. Make sure you download the full version and not the upgrade package only.

download xenforo

Unzip it. Copy the upload folder to htdocs. Note that we are copying the upload folder itself and not the content of the upload folder.

Rename the upload folder that you pasted to xenforo (or any other name of your choice).

Step3: Install XenForo

Browse to the install url for your local xenforo: The url will be based on the name you have given to the upload folder in the previous step. I named it as xenforo so my url is http://localhost/xenforo/install/ but if you have a different name, change the url accordingly http://localhost/YOURUPLOADFOLDERNAME/install/

install xenforo step 1

Click on Begin Installation. The next step is where we generate the XenForo configuration file.

The MySQL Server will be localhost. If you are using the default XAMPP setup, your username will be root and password for the database can be left blank. If you have changed the root password, then enter the password for root. The name of the database will be the one that we created earlier in step1.

install xenforo step 2

Now click Test and Generate Configuration.

install xenforo step 3

Click “Save Configuration” to save the config.php.

install xenforo save config.php

The file should be saved to the folder mentioned in the previous screenshot. In my case it is /Applications/XAMPP/xamppfiles/htdocs/xenforo/library, The path normally is inside the XAMPP htdocs folder > xenforo folder > library folder.

Once the file is saved, click continue to continue the installation.

install xenforo step 4

Once the process completes, it will ask to setup the first user for the forum which will be the super administrator for the forum.

install xenforo step 5

Add username, password and email of your choice. Use a password that you can remember.

install xenforo step 6

As it’s a test forum on localhost, we can leave everything as default in the setup options.

installation of xenforo complete

Setup is complete. Click the “Enter your control panel” button to login to the admin control panel of forum we just installed.

Now use the username and password of the super administrator created in steps above to login to the forum admin. Once logged in the admin area should look like this.

xenforo localhost admin control panel

Bookmark the admin url of XenForo or if you can remember it is http://localhost/xenforo/admin.php or http://localhost/YOURUPLOADFOLDERNAME/admin.php

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)

Filed Under: Tutorials Tagged With: Config.php, Database, Install XenForo, localhost, MySQL, XAMPP, XenForo Setup

About Shabbir Bhimani

xfpoint.com is an independent XenForo resource site with tips, tricks, hacks, and resources for new XenForo webmasters to improve their community. Read More…

Primary Sidebar

About Shabbir Bhimani

xfpoint.com is an independent XenForo resource site with tips, tricks, hacks, and resources for new XenForo webmasters to improve their community. Read More…

© xfpoint 2025. xfpoint.com is an independent XenForo resource site for new xenForo webmasters.

Copyrighted code samples of XenForo will be visible only if you have a valid xenForo license.