New install of Weewx, Raspberry Pi, Apache 2.4.56 - 403 Forbidden

545 views
Skip to first unread message

Peter Hurn

unread,
May 18, 2023, 5:48:51 PM5/18/23
to weewx-user
Hello,

I am trying to install Weewx fresh on a Raspberry PI, running Debian Bullseye,
I would like to host the website internally from the Pi,
I have installed Apache 2.4.56 and checked the default Apache page displays correctly, which it does.

I then followed the Weewx installation which installed.

I then followed the instructions from the wiki article Configure a web server (Apache, NGINX or lighttpd) 

The section for Apache 2.4 worked however when I try to navigate to the server address/weewx/ I now receive the following error.

--------------------------------------

Forbidden
You don't have permission to access this resource.

Apache/2.4.56 (Raspbian) Server at (IP) Port 80

-----------------------------------------

I have searched but don't seem to be having much luck resolving the issue, any thoughts?

Kind regards,

Peter.

Rainer Lang

unread,
May 19, 2023, 8:50:17 AM5/19/23
to weewx...@googlegroups.com

did you change the permissions for weewx web folder

/var/www/html/weewx

or

/home/weewx/public_html

whichever you are using ?

The example for the first path would be

sudo chmod -R 755 /
var/www/html/weewx

only then the Apache webserver has the permission to read (and display) the /var/www/html/weewx folder content

(for a /home/weewx installation the command would be:
sudo chmod -R 755 /home/weewx/public_html  )

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b43bca91-0b12-42c0-b4db-dc06cfcf1fe0n%40googlegroups.com.

Peter Hurn

unread,
May 22, 2023, 1:53:16 PM5/22/23
to weewx-user
Thanks I tried the  sudo chmod -R 755 /var/www/html/weewx suggested, still the same issue unfortunately 
You don't have permission to access this resource.

Rainer Lang

unread,
May 22, 2023, 2:02:46 PM5/22/23
to weewx...@googlegroups.com

what do you get when you enter just the RaspberryPi IP address in your browser ?
you should get the standard webserver page (
Apache2 Debian Default Page)
does this work ?

if so, has the folder /var/www/html/weewx been created in the first place ?
can you see the folder in the Raspi File Manager ?
has weewx written the skin files into that directory ? (there should be a lot of .png files and the index.html file)

kufuu

unread,
Jun 8, 2023, 8:57:14 AM6/8/23
to weewx-user
Hello , I installed weewx on a Pi zero-w using nginx last year running a Lacrosse 2315 ws, I kept getting the same 403 error, what I did find out after redoing the software several times is that it takes several minutes to load the weather data after the pi zero has been restarted and it has worked just fine since I found that out.
Reply all
Reply to author
Forward
0 new messages