openvpn-monitor icon indicating copy to clipboard operation
openvpn-monitor copied to clipboard

Apache opening with contents of openvpn-monitor.py file

Open lslamp opened this issue 1 year ago • 2 comments

I have been trying to figure this out for nearly 2 weeks now. Each time I have the same issue. There is something that I am missing or done wrong. I am running Ubuntu 22.04 with Apache/2.4.52. When I open the URL http://ipaddress/iopenvpn-monitor the site opens to the contents of the openvpn-monitor.py file.

image

Does anyone have any ideas. below is my openvpn-monitor.conf file

[openvpn-monitor] site=VPNServerName #logo=logo.jpg #latitude=40.72 #longitude=-74 maps=True maps_height=500 geoip_data=/var/lib/GeoIP/GeoLite2-City.mmdb datetime_format=%d/%m/%Y %H:%M:%S

[VPN1] host=localhost port=17562 name=Staff VPN show_disconnect=False

lslamp avatar Aug 02 '23 20:08 lslamp

I resolved the issue by doing the following. These instructions were not clear.

apt-get install libapache2-mod-cgi ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/

Restarted apache2.

But right now I am trying to understand how to get the map co-ordinates to open the URL to the correct location.

Any ideas would help. Thanks Lawrence

lslamp avatar Aug 04 '23 12:08 lslamp

download: https://mirrors.piconets.webwerks.in/archlinux-mirror/extra/os/x86_64/geoip-database-extra-20230901-1-any.pkg.tar.zst unpack to /usr/share/GeoIP (root user)

in openvpn-monitor.conf file change geoip_data=/var/lib/GeoIP/GeoLite2-City.mmdb to geoip_data=/usr/share/GeoIP/GeoLite2-City.mmdb

linuxandos2 avatar Oct 19 '23 20:10 linuxandos2