Skip to content
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

Open
hary66 opened this issue May 26, 2024 · 9 comments

Comments

@hary66
Copy link

hary66 commented May 26, 2024

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 ?

@Matthias-Wandel
Copy link
Owner

Matthias-Wandel commented May 26, 2024 via email

@hary66
Copy link
Author

hary66 commented May 26, 2024

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.

@Matthias-Wandel
Copy link
Owner

Matthias-Wandel commented May 26, 2024 via email

@hary66
Copy link
Author

hary66 commented May 27, 2024

Dude ! That the reason I followed the text instead of following the video !
As to remind the text :
**Start setting things up:
cd ~/imgcomp/setup
./install-packages

Optionally install additional packages (useful but not necessary)
./install-packages-extra

Build imgcomp and set it up
cd ~/imgcomp/setup
./setup-imgcomp

Run setup script that needs to be run as root (sets up apache2, makes ramdisk)
cd ~/imgcomp/setup
sudo ./setup-imgcomp-root**

As you can see "setup-imgcomp-root" is the only script asked to be run as root !
TWhile the video ask "install-packages" to be run as root also

@hary66
Copy link
Author

hary66 commented May 27, 2024

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 program

sudo apt-get install -y apache2

@hary66
Copy link
Author

hary66 commented May 27, 2024

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.
Apache/2.4.59 (Raspbian) Server at 192.168.1.40 Port 80

Here are the 3 scripts I ran and that executed flawlessly:
sudo ./install-packages
./setup-imgcomp
sudo ./setup-imgcomp-root

@hary66
Copy link
Author

hary66 commented May 28, 2024

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

@Matthias-Wandel
Copy link
Owner

Matthias-Wandel commented May 29, 2024 via email

@Matthias-Wandel
Copy link
Owner

Matthias-Wandel commented May 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants