How to setup xenForo locally on a Mac?

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.
 
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/libphp5.so

then I guess:
apachectl restart

To get MySQL:
http://dev.mysql.com/downloads/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/mod_rewrite.so

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
 
It only shows: it Works!

I was also looking at this set of instructions: https://coolestguidesontheplanet.co...d-phpmyadmin-working-on-osx-10-11-el-capitan/

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/mod_authz_core.so
LoadModule authz_host_module libexec/apache2/mod_authz_host.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule include_module libexec/apache2/mod_include.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so

Now, there is an additional /apache2/ in this set of instructions above

Where at here: https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions

here it says:

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

LoadModule rewrite_module libexec/mod_rewrite.so

Now, here there is no /apache2/ above?

What is the correct location?

Thanks much!
 
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:
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:
I use Sequel Pro to manage databases locally: https://sequelpro.com/download

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.
 
Back
Top Bottom