• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
How to install XenForo locally to your PC using XAMPP

How to install XenForo locally to your PC using XAMPP

A local installation is invaluable when testing add-ons, modifications and changes.

Brogan

XenForo moderator
Staff member
#1
Brogan submitted a new resource:

How to install XenForo locally to your PC using XAMPP (version 1.0) - A local installation is invaluable when testing add-ons, modifications and changes.

This is a simple guide for installing XenForo to your PC using XAMPP.
This is very useful for testing out add-ons, making changes, etc. without affecting your live site.
You can even swap the MySQL database between your live site and PC using phpMyAdmin.
You can also up/download any files between your installation directories.

You can even build your site completely on your PC then upload the forum directory to your server, import the database and have a fully working site. All you need to...
Read more about this resource...
 

Elizabeth

Well-known member
#2
What version of windows? I am running Windows 7/32 and it's lists issues with Vista but doesn't even mention Win7. Usually if there are issues with Vista, Win7 in the same boat.
 

abnvet

Active member
#5
Thanks for this install. Im currently deployed to Afghanistan and have been looking for a way to learn this without needing a internet connection. Hopefully with some luck I can get my vb4 converted over :)
 

Brogan

XenForo moderator
Staff member
#6
Good luck over there.
If you need any help to get it working locally, don't hesitate to ask questions.
 
#8
So, I got around to trying the Xampp program for testing out changes on localhost, and I'm running into the following problem any time I try to import my xenforo database. I export the xenforo database from myphpadmin in cpanel, then i go into myphpadmin in Xampp, import it...and I get what the error below.

SQL query:
INSERT INTO `xf_data_registry` (`data_key`, `data_value`) VALUES ('styles', 0x613a31383a7b693a32323b613a383a7b733a383a227374796c655f6964223b693a32323b733a393a22706172656e745f6964223b693a303b733a31313a22706172656e745f6c697374223b733a343a2232322c30223b733a353a227469746c65223b733a373a2243534f2d303032223b733a31313a226465736372697074696f6e223b733a303a22223b733a31303a2270726f70657274696573223b733a36383830323a22613a3238393a7b733a363a22686561646572223b613a303a7b7d733a393a22696d61676550617468223b733a31333a227374796c65732f63736f303032223b733a31343a22706167654261636b67726f756e64223b733a31323a2272676228302c20302c203029223b733a363a22627574746f6e223b613a31393a7b733a31363a226261636b67726f756e642d636f6c6f72223b733a31363a22726762283235352c203130362c203029223b733a31393a22626f726465722d626f74746f6d2d636f6c6f72223b733a31313a227267622831342c382c3229223b733a31323a22626f726465722d636f6c6f72223b733a31343a227267622832382c2032332c203529223b733a31333a22626f726465722d726164697573223b733a333a22377078223b733a31363[...]
MySQL said:

#2006 - MySQL server has gone away
 
#10
What do I need to tweak? Is it in php.ini?

Edit: I realize this is now a Xampp question, but I'm hoping you already know what the tweak is, since you made the Xampp thread.
 

Brogan

XenForo moderator
Staff member
#11
Mine worked out of the box so I had no need to tweak anything.

I'll merge this with the XAMPP thread also, best place for it really in case anyone else experiences the same problem.
 

Shelley

Well-known member
#16
Thanks Brogan, I forgot about Xampp and just finally got this installed after 2 days of severe headaches with zendserver ce though I think i know now what the issue was with that. Anyway, In the meantime and since it's all working again (localhost) I'll use this for the time being. (y)
 

D.O.A.

Well-known member
#17
What version of windows? I am running Windows 7/32 and it's lists issues with Vista but doesn't even mention Win7. Usually if there are issues with Vista, Win7 in the same boat.
Install it with UAC (user account control) off, and use the path it suggests (C drive) when installing, you'll have no problems with either OS that way.
 

Andrej

Well-known member
#19
Thank you Brogan for your wonderful guide. Is it easy to uninstall XAMPP software once you do not need it anymore?