davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
324 stars 55 forks source link

Apache2 and Comitup #201

Closed alf4all closed 4 months ago

alf4all commented 2 years ago

Situation: On a Raspberry Pi 3B with OS 32-bit I have installed apache2 before installing comitup. Now I can access the apache2 default page via WiFi but how can I make a setup to an existing AP? Is it by a webpage or by SSH? did I miss something?

Update: With comitup-web I get the Apache default page en with SSH comitup-cli i can configure comitup nice. Is there an URL to get the web page?

alf4all commented 2 years ago

So, reading "Bootstrap Wifi using Wifi" there must be a comitup-web somewhere...

davesteele commented 2 years ago

Comitup and Apache both want/need ownership of port 80 - they can't both run at the same time. See this example on how to get such services to coexist. This gives ownership of the port to Comitup when the upstream Wifi connection can't be made.

There are some other potential complications involved with installing Comitup as a package. You may want to start with the Comitup image. It is just Raspberry Pi OS with Comitup installed.

alf4all commented 2 years ago

Hai Dave, I am now working on the Pi-hole-Comitup example adapted for Apache2. I have not seen the GUI of Comitup yet, but is there an option to choose for a non-connected start of the application? Or do I have to solve that situation in comitup-callback? Thanks for this fantastic application and good service. Regards Wijnand...

alf4all commented 2 years ago

Small remark: Advanced options of Raspberry Pi Imager (Set hostname) do not override the default comitup-NNN of Comitup.

davesteele commented 2 years ago

Start with Apache2 disabled, then you should see the GUI (if upstream is not connected at startup). Then configure the callback to start Apache2 when needed.

Comitup will determine the state to start in automatically. If upstream is already connected, the GUI will never come up (single adapter mode).