Good afternoon,
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.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
DirectoryIndex index.php index.html
<\VirtualHost>
EDIT : I added AddType application/x-httpd-php .php to the https.conf files, i checked config.default.php in Kanboard, it’s fine for MySQL, i did a copy of the file under config.php. I configured a “kanboard” database with mysql and it is correctly li lead to the config.php files
EDIT 2 I tried creating a info.php file in var/www/html/kanboard with an instruction to display smthg and by loading the webpage : kanboard.local/html/kanboard/info.php i get a blank page. If i try kanboard.local/info.php i get an URL not found
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. kanboard.local:8080 also works but redirects to localhost
Can you help me / do you have any idea what is missing or causing the problem?