How to setup xenForo locally on a Mac?

Neutral Singh

Well-known member
Followed all steps thus far... the localhost still shows: it works! not the following message... guidance please...

it works.jpg

Chris D

XenForo developer
Staff member
I guess you would just need to check if the index.html file with your contents actually saved and make sure you restarted Apache after the previous steps which may have involved changing the Apache config with a different document root.


Well-known member
Doesn't Sierra come preinstalled with Apache2 and PHP 5.6?

start apache2 if it isn't yet:
apachectl start

uncomment this line from httpd.conf (back it up) to enable php5:
LoadModule php5_module libexec/apache2/

then I guess:
apachectl restart

To get MySQL:
(don't forget to (optionally though) run mysql_secure_installation afterwards)

To let PHP and MySQL talk to eachother, I use this:
mkdir mysql under /var and go inside it with cd /var/mysql
ln -s /tmp/mysql.sock mysql.sock

I guess for XenForo you can then run the requirements.php file and test mysql to see if you can use it.
You probably need to edit httpd.conf and enable things like rewritemod.
LoadModule rewrite_module libexec/apache2/

Anyway, once it's all working, before installing xenforo, setup a virtual host for your test site first.
Maybe add easier management things like phpmyadmin

Neutral Singh

Well-known member
It only shows: it Works!

I was also looking at this set of instructions:

Here it says:

And make sure these modules are uncommented (the first 2 should already be on a clean install):

LoadModule authz_core_module libexec/apache2/
LoadModule authz_host_module libexec/apache2/
LoadModule userdir_module libexec/apache2/
LoadModule include_module libexec/apache2/
LoadModule rewrite_module libexec/apache2/
Now, there is an additional /apache2/ in this set of instructions above

Where at here:

here it says:

Also we should now enable mod_rewrite which is commented out by default. Search for and uncomment the line by removing the leading #:

LoadModule rewrite_module libexec/
Now, here there is no /apache2/ above?

What is the correct location?

Thanks much!

Neutral Singh

Well-known member
Dang! missed removing quotes here "/Users/MacHome/Sites" in httpd.conf file...

Finally, it shows: My User Web Root

Thank you!

... now, on to the next step! :cautious:
Last edited:

Neutral Singh

Well-known member
Right now, taking a dump of .sql from my online server and download all the files in public_html ... How to go about it on my mac! where to upload files, setup database :eek:
Last edited:

Chris D

XenForo developer
Staff member
I use Sequel Pro to manage databases locally:

Though you could also use the mysql command line or install PhpMyAdmin.

You know where to upload files - it's the same folder where you added your index.html file though you might need to delete that file.