Webpages other than defult httpd page fail to load

I installed httpd, php and sqlite3 on my fedora40 workstation so I could run the kanboard kanban webapp.

After httpd is installed, the default fedora webpage loads, but when I try to navigate to http://localhost/kanboard, with the kanboard folder being placed in /var/www/html, the kanboard index.php fails to load.

I created a test.php file in /var/www/html to verify php is working, and the phpinfo() page loads as expected.

Both of the default html and test.php pages load fine with selinux enabled, but I set selinux to permissive just to try loading the kanboard index.php page, and still no dice.

In the past wehen running a webserver on ubuntu, the /var/www is owned by www-data. So I looked and found that an apache user was added after httpd was installed, so I changed permissions to the /var/www/html/kanboard folder to apache. Still no go. Then I changed permissions from root to apache for /var/www and still the page refused so load. So I changed permissions to /var/www back to root:root and left /var/www/html/kanboard with apache:apache.

Kanboard on Ubuntu is as simple to set up as unzipping the folder, renaming and moving it to /var/www/html, and making a few edits to kanboard’s default config file. So I am not sure if there could be a few more hoops to get a webapp like Kanboard working in fedora?

Thks in advance.

Look at the httpd error log for clues.
Usually the log is in /var/log/httpd/error_log.

1 Like

It works for me like this:

sudo dnf install httpd
wget -O - https://github.com/kanboard/\
kanboard/archive/refs/heads/main.tar.gz \
| sudo tar -C /var/www/html -z -x \
--transform "s%^[^/]*%kanboard%"
sudo chown :apache /var/www/html/kanboard/data
sudo semanage boolean -m -1 httpd_unified
sudo systemctl restart httpd.service
wget -O - http://localhost/kanboard/
1 Like