Python3 Advanced Tutorial 7 - CGI Programming

preview_player
Показать описание
This is tutorial covering how to set up a basic web server on Ubuntu and use python for our server-side scripts. All Links and Slides will be in the description. Subscribe for more cool stuff!

--Commands--
sudo apt-get install apache2
sudo a2enmod cgi
sudo service apache2 restart

If you like what you see be sure to subscribe and thumbs up!
Рекомендации по теме
Комментарии
Автор

Draps your Python tutorials are simply the best there are anywhere, period.  You can't find this info in a book as clear as you do.  I wish other instructors were like you.

KevinMThomas
Автор

Thank you so much, you saved my life, before your video, I couldn't even run CGI file on Browser

huucyber
Автор

Yes, I understand cgi programming now! Thank you

qwe
Автор

Merci beaucoup ! it works and I ve learned many important things with your videos !!

alexcz
Автор

This video is priceless! Thank you. Now I am happy too :D

teddymarkov
Автор

So is this how you manually do server side python without a framework like Django/flask and they are abstracting all this away or is it something different?

phillipvance
Автор

In the command line can I tell Apache to stop using the CGI? In the tutorial you showed "sudo a2enmod cgi", is that way to reverse this? Better yet can I put everything back to default in the Linux operating system? I have a CompTIA A+ certification so I'm curious as a computer technicians point of view. Is that a good tutorial or reference (free) that can point to this type of CGI programming in Python that you showed in this video?

LoneWolf
Автор

excellent i just wish that i could find the text of the source code. i love python especially the socket and cgi.

johnblack
Автор

It was displaying the contents of my .py file. I added all the directory info to /etc/apache2/apache2.conf restarted the service and it was functional.

gery
Автор

Just curious, why delete the 'html' from the path and use the root www folder? It seems cleaner to keep things separate. Any recommendations on best practices for naming and separating folders?

ShermanSitter
Автор

Thanks for your video. It helped. Can you please tell me what screencasting softwares you used to record this video on a Linux computer ? Thanks.

lawrencetan
Автор

I've used Ubunto and it works well, but i could'nt display .py using apache with windows 7, i receive as error : [cgi:error] [pid 7728:tid 852] (OS 5)Access refused. : [client 127.0.0.1:59880] couldn't create child process: 720005: hello.py
[Wed Jan 08 21:41:43.342204 2020] [cgi:error] [pid 7728:tid 852] (OS 5)Acces refused. : [client 127.0.0.1:59880] AH01223: couldn't spawn child process: "

khaoulaabaidi
Автор

My cgi-bin directory is in /usr/lib/cups/ directory and you are moving all python files to /var/www and in configuration file also you are changing root directory to /var/www. So do i need to copy my cgi-bin directory to /var/www to run my webserver because apache is not getting restart and it is also not generating any error. what to do?

rishikeshpandey
Автор

What would be the best way to separate my HTML and CSS from python????

himanshupant
Автор

Can someone please explain on how to execute CGI in python Windows?
I want to retrieve and store all my form input values into a mysql database. I came across CGI for this task and apparently I need to install apache for it. Does anyone know how to do it step by step?
I'm so frustrated and it's taking too much of my time

ryouko
Автор

Thank you for sharing. Where are you from if I may ask?

unev
Автор

Great CGI explanation, thank you!
But man, why do you use vim? You need to learn at least some of its basics to speed coding there, e.g operations you could use are: to speed up deleting few rows or copying a row. Just check James Powell tutorials of python which he does in vim as well to see how effective it can be, or use another editor.

j.d.
Автор

why the form not showing up on mt webpage, it just just say "Hello Program!"
Somebody please help

datextrenone
Автор

is this script you show running "front-end" python... kinda replacing javascript?
thanks in advance(i'm a very beginner)

gabriel-quintiliano
Автор

Is there any suggest for me about coding Python on SDN? (I mean topology - Ryu - Mininet)

luongpham