https://github.com/abhi-bhatra/cgiprogramming-scripts
CGI Programming to Host WebApp on Apache server
https://github.com/abhi-bhatra/cgiprogramming-scripts
apache cgi-application html-css-javascript python-script
Last synced: about 1 year ago
JSON representation
CGI Programming to Host WebApp on Apache server
- Host: GitHub
- URL: https://github.com/abhi-bhatra/cgiprogramming-scripts
- Owner: abhi-bhatra
- Created: 2022-01-03T02:56:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-19T08:56:31.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T13:26:53.617Z (about 1 year ago)
- Topics: apache, cgi-application, html-css-javascript, python-script
- Language: HTML
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python CGI Programming
Python CGI Programmaning is the web app created using Python as backend and HTML-CSS as Frontend. We used Apache2 server to host the web app.
The App is created on Virtual Machine.
### Steps to create
1. Install Apache2 Web Server `sudo apt-get install apache2`
2. Check the firewall `sudo ufw allow list`
3. Check if Apache2 is running `sudo systemctl status apache2`
4. If Apache2 is stopped, run `sudo systemctl start apache2`
5. Open `nano /var/www/html/index.html` and add the content
6. Create a directory `mkdir /var/www/cgi-bin`
7. Add content `nano /var/www/cgi-bin/test.py`
Now run the script at yourlocalhost or the Public Ip if is running in the VM