Apache CGI BIN C programing tutorial

  Рет қаралды 11,864

Kris Occhipinti

Kris Occhipinti

Күн бұрын

Пікірлер: 17
@lorenzvader7918
@lorenzvader7918 7 жыл бұрын
Thanks. I was stuck with old tutorials on this topic until i found this. Btw really clean audio and instructions.
@Zoiku
@Zoiku 2 жыл бұрын
even if it's from 2017 it still saved me, thank u man
@khanhsp
@khanhsp 6 жыл бұрын
Excellent tutorial! Thank you very much!
@4s1ttmnt55
@4s1ttmnt55 6 жыл бұрын
Thank you so much. Really needed this..
@ahmedzitouni6840
@ahmedzitouni6840 7 жыл бұрын
i love ure videos , the audio is so clear i'm wondering what software ur using and what equipment !
@DigitalMetal
@DigitalMetal 7 жыл бұрын
I've switch my screen recording software a lot recently. Currently using "SimpleScreenRecorder" The Mic I use is this one: kzbin.info/www/bejne/gparm2eCrMucd5Y
@ahmedzitouni6840
@ahmedzitouni6840 7 жыл бұрын
thnx a lot ;)
@Linklu13FR
@Linklu13FR 2 жыл бұрын
Thanks
@TravelingMooseMedia
@TravelingMooseMedia 4 жыл бұрын
Thanks but what about fastcgi? There are modules that need to be loaded and directives that I can’t figure out how to configure in the conf files to run my c++ application
@gandsnut
@gandsnut 7 жыл бұрын
Way cool! I'm strong solid with 'C', but have no CGI-bin familiarity. Now, does this mean for, say, SBC's running Linux & Apache, it could be workable to interact with the SBC remotely and not do any (or much) HTML?? Would you know if the 'C' program used screen handling - say, ncurses - that such screen handling would be passed back via Apache?? Or is that when handling interactivity would necessitate HTML and/or PHP? To me this seems a huge gateway into the SBC's intrinsic benefits (GPIO), via Apache. Or, maybe I'm missing/forgetting some manner of remotely interacting with a SBC and not doing anything via Apache. I have very little time on SBC's and NO time on Arduino/8266-jobbers (though a number of such are coming in the mail). The dormant hobby-geek in me hungers to break forth... HA. Appreciated!!
@DigitalMetal
@DigitalMetal 7 жыл бұрын
You could do this with Apache, but really Apache might be overkill. I've done a number of videos on CGI scripts/programs in the paste, mostly using the built in httpd of busybox. busybox is a program with a bunch of utilities built in. Busybox has all the core tools you need and it's just about 1mb in size. It's commonly found on routers and other IOT devices. It's easy to get running, and if you are going to be accessing things like GPIO pins, it should be easier. Busybox's httpd will run your code as whichever user you start the server as. And to access GPIO pins you probably need some permissions Apache won't allow unless you change config files. As far as the HTML, HTML is your GUI. You can access and run your programs, no matter what language through the url. Any text output will be sent to the browser. If you want it formatted a certain way, html/css is the way to go. I use HTML for pretty much all my GUI's regardless of the language I'm writing in. The text from something like ncurses will be past to the web browser, but it won't look like it does in the shell. But HTML is super simple. Just wrap your output in TAGS. I have a lot of videos on this sort of thing. Here are a few, but also check out my website for more. kzbin.info/www/bejne/hoiwfauur7qUask kzbin.info/www/bejne/qWLCdoSmbpJkY80 kzbin.info/www/bejne/epLPhIGYqrV6ias
@gandsnut
@gandsnut 7 жыл бұрын
Man, I have a lot to study. Great info and resources Mr. K!
@DigitalMetal
@DigitalMetal 7 жыл бұрын
Glad I can help. I'll see if I can do another video on the topic some time in the next week.
@jan_harald
@jan_harald 7 жыл бұрын
cool... but if you wanted to use a lua script for example, would you need to execute a script that's basically only !#/bin/bash lua script.lua ? it should work if you chmod +x it, right?
@DigitalMetal
@DigitalMetal 7 жыл бұрын
Sorry for the late response. Yes you can do it that way, but you can also just call the LUA script directly. Sorry about the poor quality, but here is a video for you: kzbin.info/www/bejne/r3KYpoOsZcx1g5Y
@sbwebsoft3457
@sbwebsoft3457 6 жыл бұрын
Cool ;)
@anteconfig5391
@anteconfig5391 5 жыл бұрын
Cool, but how could you pass arguments to your C code. I know in python all you'd have to do is import cgi form = cgi.FieldStorage() but what about C?
The Magic of cgi-bin
23:10
Philip Bohun
Рет қаралды 12 М.
How to put Bash Scripts on the Web
15:02
Mark McNally
Рет қаралды 6 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 41 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 33 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 102 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 26 МЛН
Web programming (CGI) in C
25:27
Gregg Ink
Рет қаралды 25 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 358 М.
configure apache cgi for Perl Python and C
9:27
bmzi
Рет қаралды 2,1 М.
Insane Cockpit View of US AH-64 Apache in Scary Gunnery Exercise
15:53
The Daily Aviation
Рет қаралды 2 МЛН
Learning Apache http server - Executing CGI scripts
13:08
theurbanpenguin
Рет қаралды 46 М.
Путин ответил на угрозы Трампа
7:21
Diplomatrutube
Рет қаралды 1,4 МЛН
How to write a multithreaded server in C (threads, sockets)
14:30
Jacob Sorber
Рет қаралды 137 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 41 МЛН