• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Get a free development environment for XenForo up and running in minutes

Tiki Tiki

Active member
#45
You can actually get it without homebrew by simply running ‘git’ in a terminal - OSX will then ask if you want to install the Xcode command line tools, which it will do automatically, after which you can use git natively in the terminal.
This worked. Thanks!

Next stupid question: I get that the web server is at 192.168.33.10, but how do I access the database? Is there a phpMyAdmin facility where I can import my existing XF database for conversion to XF 2?

Are there any limits to how many databases I can have in the virtual box? Can I, for example, have XF 2.0 accessible at http://192.168.33.10 (root level) and XF 1.5 accessible at http://192.168.33.10/xenold?
 

Kier

XenForo Developer
Staff member
#46
This worked. Thanks!

Next stupid question: I get that the web server is at 192.168.33.10, but how do I access the database? Is there a phpMyAdmin facility where I can import my existing XF database for conversion to XF 2?

Are there any limits to how many databases I can have in the virtual box? Can I, for example, have XF 2.0 accessible at http://192.168.33.10 (root level) and XF 1.5 accessible at http://192.168.33.10/xenold?
You can install phpmyadmin into the box as you would with any other webserver, if you wish, but there are far better tools available these days. I personally use Sequel Pro for Mac. The MySQL server is available within the box at localhost with root/root.

There’s no limit to the number of databases you can have in the box, so you could install multiple versions of XF if you wish - though I would recommend /xf1 and /xf2 rather than having an XF1 install sitting inside the directory of an XF2 installation - that could cause all sorts of cookiepath weirdness.
 

Tiki Tiki

Active member
#48
You can install phpmyadmin into the box as you would with any other webserver, if you wish, but there are far better tools available these days. I personally use Sequel Pro for Mac. The MySQL server is available within the box at localhost with root/root.
I'll have to give Sequel Pro a try. Is there a git command for installing it inside the virtual box?

There’s no limit to the number of databases you can have in the box, so you could install multiple versions of XF if you wish - though I would recommend /xf1 and /xf2 rather than having an XF1 install sitting inside the directory of an XF2 installation - that could cause all sorts of cookiepath weirdness.
Cool. Thanks. I also have an old IPB database that I'm still trying to extract blog entries from.
 

Jake B.

Well-known member
#51
You'd probably want to use standard, the host you'd put the IP of your Vagrant instance (same thing you use to connect through http), port leave blank/default and user/pass is root/root as @Kier mentioned :)
 

Tiki Tiki

Active member
#52
You'd probably want to use standard, the host you'd put the IP of your Vagrant instance (same thing you use to connect through http), port leave blank/default and user/pass is root/root as @Kier mentioned :)
Hmmm. That's what I thought. But I get a connection failed error. "Unable to connect to host 192.168.33.10, or the request timed out. MySQL said: Can't connect to MySQL sever on '192.168.33.10' (61)"
 

Tiki Tiki

Active member
#54
The default Scotch Box page pops up at 192.168.33.10. And I see a green checkbox next to MySQL 5.5 saying 'Connected.' It also says 'localhost' for Hostname and 'root' for Username and Password. I wasn't sure if I was supposed to try 'localhost' in Sequel Pro, but that wants me to use 127.0.0.1 which results in a time out as well.
 

Gladius

Well-known member
#57
Is there any benefit to using this over, say, XAMPP for a non-developer? I haven't really needed a local test area since switching from vB to XF, but obviously going from XF1 to 2 I'll want to test a bunch of stuff first and XAMPP worked out well enough when I used it last.
 

Kier

XenForo Developer
Staff member
#58
Is there any benefit to using this over, say, XAMPP for a non-developer? I haven't really needed a local test area since switching from vB to XF, but obviously going from XF1 to 2 I'll want to test a bunch of stuff first and XAMPP worked out well enough when I used it last.
Only that this won’t spew stuff all over your computer and can be created and destroyed without any sort of messing around with the configuration of your own computer. Oh, and that it’s up and running and ready to run XenForo in a working debug/development environment in just a few minutes.
 

Gladius

Well-known member
#60
Only that this won’t spew stuff all over your computer and can be created and destroyed without any sort of messing around with the configuration of your own computer. Oh, and that it’s up and running and ready to run XenForo in a working debug/development environment in just a few minutes.
From what I remember, with XAMPP everything is contained in a single dir and also configured there. But I'll give this a shot, thanks for setting it up.