- Install a PHP/MySQL/Apache Server (e.g. XAMPP https://www.apachefriends.org/index.html, start via
sudo /opt/lampp/lampp start) - Make sure PHP is in your $PATH if you didn't install it via package manager. (e.g. add
/opt/lampp/binto your~/.profile) - Install wp-cli (http://wp-cli.org/)
- Clone this repo (
git clone https://github.com/fluechtlingshilfe-babelsberg/forum),cd foruminto it. - Run
wp core download - Run
wp core config --dbname="forum" --dbuser=root - Create the database by running
mysql -u root -e "CREATE DATABASE forum;" - Make sure Apache is configured to serve your wordpress folder (e.g. make sure your
/opt/lampp/etc/httpd.conf'sDocumentRootand theDirectoryright below it point to the directory). - Visit localhost and follow the wizard.
- Install and activate the "Advanced Custom Fields" plugin. NOTE: if you get an error, make sure the user can access the repo folder.
- Select flueba-forum Theme in the admin interface.
To make sure that the user that runs the server can write plugins, run sudo chown -R daemon:daemon . inside the repository folder. To make sure that you can still put, also run sudo usermod -a -G daemon $USER to add your user to the daemon group. Afterwards, you will need to relogin.