I am new to openwrt and i would like to install an apache webserver with drupal and phpmyadmin for my home project. We want it like this our router has our drupal website on a usbstick and people that are connected to the router can reach the drupal website via. ip:port, thats our goal.
We stumbled across this guide https://openwrt.org/docs/guide-user/services/webserver/http.apache? we followed the guide but we cant reach the webserver after following the first steps(we installed it on the router). We edited the config to Listen 127.0.0.1:81 and to the ip from the router 192.168.8.1:81 but we still can't reach the page.
we also started it with apachectl start.Im using a GL-AR300M.
The router cannot respond if you allow only the localhost interface. In the instructions it is mentioned to let it listen to 192.168.1.1 (or whatever you have in your lan).
You can ping an IP address, not a web server.
You should check your logs why the server is not opening in a browser.
Make sure you use the special port 81 when you enter the address in the browser.
i tested it with 192.168.8.1:81/ on chrome and firefox.
So we have a fritzbox router and our GL-AR300M and our GL-AR300M takes the internet from the fritzbox router (so it might inherit the settings) can this be the cause of the problem ?.
I'm pretty sure apache package on OpenWrt is currently broken. Check the issue tracker on github, for instance issue #4840. I don't know much about web servers, but there are other possibilities in OpenWrt (check docs).