-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbidden You don't have permission to access this resource. Apache/2.4.59 (Raspbian) Server at 192.168.1.40 Port 80 #40
Comments
Some of the scripts need to be run as root. Some text files in the install
describe this.
…On Sun, May 26, 2024 at 4:52 PM Harold ***@***.***> wrote:
Hello Dacian.
I'm trying to reinstall imgcomp with the updated libcamera-still instead
of raspistill but I'm facing problem to access the apache server.
It keeps sending me back the same message : Forbidden You don't have
permission to access this resource. Apache/2.4.59 (Raspbian) Server at
192.168.1.40 Port 80.
I ran a full new install of imgcomp on the Pi.
Would you have any idea or advice maybe to properly reinstall from the
begining ?
—
Reply to this email directly, view it on GitHub
<#40>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOSCO3DQ5DBTCKR747Y2Z33ZEI4Q5AVCNFSM6AAAAABIKBVE5KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTOOJQHA3DINI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Following the "setting_up.txt" file instruction, the only script that needs to be run as root is setup-imgcomp-root On the other hand, the video ask to run other script as root also, but I didn't follow that instruction as it was fairly old and different information from the "setting_up.txt" file. I will rerun the script as root. |
The text is going to be way more up to date than the video, cause I can’t
change the video after publishing it.
…On Sun, May 26, 2024 at 5:21 PM Harold ***@***.***> wrote:
Following the "setting_up.txt" file instruction, the only script that
needs to be run as root is setup-imgcomp-root
On the other hand, the video ask to run other script as root also, but I
didn't follow that instruction as it was fairly old and different
information from the "setting_up.txt" file.
I will rerun the script as root.
Thanks.
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOSCO3HCHSIFMSD7NN7CMFTZEI76DAVCNFSM6AAAAABIKBVE5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGM4DKNBYGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Dude ! That the reason I followed the text instead of following the video ! Optionally install additional packages (useful but not necessary) Build imgcomp and set it up Run setup script that needs to be run as root (sets up apache2, makes ramdisk) As you can see "setup-imgcomp-root" is the only script asked to be run as root ! |
Well, it is simply advised in the script itself to run it as root : Install needed and useful packages.Run with sudo. type "sudo ./install-packages"libjpeg is required to compile imgcomp and the browsing program.sudo apt-get install -y libjpeg-dev Apache is required for the web based browsing programsudo apt-get install -y apache2 |
At last, I reinstall following all the setup.txt on a brand new and fresh RaspbianOS and still the same error ! Forbidden You don't have permission to access this resource. Here are the 3 scripts I ran and that executed flawlessly: |
It seems that a command is missing at the end of the installation for the server to be reachable without the 403 error : (It worked for me, but I'm not an expert) |
Just looking at this now, it appears I also need to make the /home/pi
directory publicly readable
…------ Original Message ------
From "Harold" ***@***.***>
To "Matthias-Wandel/imgcomp" ***@***.***>
Cc "Matthias Wandel" ***@***.***>; "Comment"
***@***.***>
Date 2024-05-28 6:19:12 PM
Subject Re: [Matthias-Wandel/imgcomp] Forbidden You don't have
permission to access this resource. Apache/2.4.59 (Raspbian) Server at
192.168.1.40 Port 80 (Issue #40)
It seems that a command is missing at the end of the installation for
the server to be reachable without the 403 error : (It worked for me,
but I'm not an expert)
sudo chown -R www-data:www-data /home/pi/www
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOSCO3HKRCOZDWVWNE76AU3ZETYFBAVCNFSM6AAAAABIKBVE5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGEZDSMBYGU>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Was just playing around with this myself with the latest pi os.
The thing missing for me was to make the home directory publicly
readable (I think it used to be publicly readable by default)
I just added that to the setup-imgcomp script.
Also added "sudo" in front of the install packages scripts in
setting_up.txt
didn't need the chown. Actually, the chown makes it non writable for
the imgcomp stuff.
…------ Original Message ------
From "Harold" ***@***.***>
To "Matthias-Wandel/imgcomp" ***@***.***>
Cc "Matthias Wandel" ***@***.***>; "Comment"
***@***.***>
Date 2024-05-28 6:19:12 PM
Subject Re: [Matthias-Wandel/imgcomp] Forbidden You don't have
permission to access this resource. Apache/2.4.59 (Raspbian) Server at
192.168.1.40 Port 80 (Issue #40)
It seems that a command is missing at the end of the installation for
the server to be reachable without the 403 error : (It worked for me,
but I'm not an expert)
sudo chown -R www-data:www-data /home/pi/www
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOSCO3HKRCOZDWVWNE76AU3ZETYFBAVCNFSM6AAAAABIKBVE5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGEZDSMBYGU>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello Dacian.
I'm trying to reinstall imgcomp with the updated libcamera-still instead of raspistill but I'm facing problem to access the apache server.
It keeps sending me back the same message : Forbidden You don't have permission to access this resource. Apache/2.4.59 (Raspbian) Server at 192.168.1.40 Port 80.
I ran a full new install of imgcomp on the Pi.
Would you have any idea or advice maybe to properly reinstall from the begining ?
The text was updated successfully, but these errors were encountered: