i am having issues with setting up a Vhost hosting Kanboard
It is the first time i use shell, php and apache. I wanted to install ‘Kanboard’ on MacOS Sonomoa to use it for a personnal purpose. I want to be able to access it from a browser at the adress : “kanboard.local” without having to do anything in the terminal when starting my computer.
I was not able to connect to my virtual host.
I did the following :
-
Installed Homebrew with the .pkg from their site
-
Installed php with homebrew
-
Installed MySQL and SQLite with homebrew
-
Installed HTTPD/Apache with homebrew
-
Downloaded the Kanboard master.zip from GitHub and unzipped it
Then :
I went to the HTTPD configuration file (httpd.conf) and added a line to load the php module:
LoadModule php_module lib/httpd/modules/libphp.so
I’ve checked which Directory has been declared, I’ve put : Require granted all on this directory ( …./var/www )
I added the line:
DirectoryIndex index.php index.html
on the advice of ChatGPT
In the declared directory, I created an ‘html’ folder in which I put the kanboard folder I had unzipped Then, I went to my hosts database (/etc/hosts) and added the line:
127.0.0.0.1 kanboard.local
Finally, I went to the virtual hosts configuration file ( …/etc/extra/httpd-vhosts.conf) And I configured a virtual host like this:
Listen 8080
<VirtualHost *:8080>
DocumentRoot ‘/usr/local/var/www/html/kanboard’
ServerName kanboard.local
<Directory ‘/usr/local/var/www/html/kanboard’>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
I started php then httpd, then restarted them. I checked the ‘localhost:8080’ page it works correctly. I can use this page to browse kanboard files but the application itself is not built at all. When I try to connect to ‘kanboard.local’, I get a message “connection failed”. Can you help me / do you have any idea what is missing or causing the problem?