Euphoria CGI
- Posted by jmduro Apr 18, 2017
- 3943 views
Maybe this is a stupid question but as it is that easy to run Euphoria CGI programs is there any good reason not to build an HTML-based cross-platform IDE?
Here is the way I configured CGI on my Apache 2 server as I had difficulties to get CGI scripts to be run with official documentation.
cd /etc/apache2/ sudo vi conf-available/serve-cgi-bin.conf below folowing line: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ add following lines: AddHandler exu-file .exu .ex Action exu-file /cgi-bin/runexu.cgi cd mods-enabled/ sudo ln -s ../mods-available/cgi.load sudo vi /usr/lib/cgi-bin/runexu.cgi #!/bin/sh #runexu.cgi - wrapper to run a euphoria program without the need for #! # Naturally, use the path to YOUR exu on your system /usr/local/euphoria-4.1.0-Linux-x86/bin/eui $PATH_TRANSLATED # END of runexu.cgi sudo chmod +x /usr/lib/cgi-bin/runexu.cgi sudo /etc/init.d/apache2 restart sudo ln -s myCgiFolder/myCgiSubfolder /var/www/html/myCgiSubfolder
Of course myCgiFolder, myCgiSubfolder and /usr/local/euphoria-4.1.0-Linux-x86/bin/eui have to be replaced by your own locations. Any Euphoria CGI script under myCgiFolder/myCgiSubfolder can be performed by accessing http://localhost/myCgiSubfolder/scriptName
Jean-Marc