Apache error 403 after fresh manual install OS and Dashticz

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Afterburner
Posts: 17
Joined: Wednesday 26 February 2020 17:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Apache error 403 after fresh manual install OS and Dashticz

Post by Afterburner »

After running Dashticz V3 without problems for a couple of years on Ubuntu Server I decided to do a major upgrade of the OS as the old one is EOL.
I wanted to step over to Pi OS Bookworm.
https://dashticz.readthedocs.io/en/mast ... stall.html is my guide.
After the install I could get the Apache testpage on the IP adres of the Dashticz Pi. But... IP/dashticz/index.html delivered 403 Error. Forbidden You don't have permission to access this resource. The error.log says AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/Dashticz. Whatever I tried, this error did not disappear.

As my 'old' system runs on Ubuntu server, I decided to return to that OS. I installed Ubuntu 24.04.2 LTS and repeated the manual install according the webpage above. Result: the same dammed error. After nearly two weeks of looking around for solutions I'am running out of options.

Anyone with a breakthrough idea?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Apache error 403 after fresh manual install OS and Dashticz

Post by Lokonli »

It seems it's not allowed to follow symbolic links.

Check your apache config file:
/etc/apache2/apache2.conf

You probably need to add something like this:

Code: Select all

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Apache error 403 after fresh manual install OS and Dashticz

Post by Lokonli »

or, add something similar to:

/etc/apache2/sites-available/000-default.conf
Afterburner
Posts: 17
Joined: Wednesday 26 February 2020 17:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Apache error 403 after fresh manual install OS and Dashticz

Post by Afterburner »

Thanks for your support.

apache2.conf already has the setting you suggested above, by default.

Adding settings to 000-default.conf didn't solve the problem.

I agree on your suggestion that the symlink is probably the cause of my trouble. But testing the link with sudo realpath or sudo -u <IP> ls -l ..... or simply clicking on de symlink dir didn't show any issue. Owner and filerights are the same as on the 'old' Dashticz etc... so I decided to skip the symlink completely as the purpose of it is not clear anyway.
I installed Dashticz in the DocumentRoot var/www/html which appeared to be the solution.......

Something wrong with the Manual install of Dashticz Master as described in the Dashticz doc??
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest