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

Apache opening with contents of openvpn-monitor.py file #271

Open
lslamp opened this issue Aug 2, 2023 · 2 comments
Open

Apache opening with contents of openvpn-monitor.py file #271

lslamp opened this issue Aug 2, 2023 · 2 comments

Comments

@lslamp
Copy link

lslamp commented Aug 2, 2023

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
Copy link
Author

lslamp commented Aug 4, 2023

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

@linuxandos2
Copy link

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

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