[ubuntu-za] Mint 13 as a web server

Alf Stockton alf at stockton.co.za
Sun Oct 7 09:15:49 UTC 2012


On 06/10/2012 21:24, Tom Bamford wrote:
> On 6 October 2012 13:03, Alf Stockton <alf at stockton.co.za 
> <mailto:alf at stockton.co.za>> wrote:
>
>     I am attempting to use cgi scripts on my local server running Mint
>     13 and I know that I am sending this to an Ubuntu forum, forgive
>     me if you will.
>     If I browse to http://doghouse.dyndns-web.com/bryn/register.html
>     which is a web page on my above mentioned box and submit after
>     filling in the form, which should now run a cgi script I wrote in
>     C I get told that Apache does not know what to do with this file.
>     It is in /usr/lib/cgi-bin as well as the current directory and
>     both versions are executable and are named decode.cgi.
>     Please tell me what I have done wrong.
>
>
> Your form action on the page you linked to is set to "decode.cgi" with 
> no path information. Shouldn't it be "/cgi-bin/decode.cgi"? You only 
> need the copy in your cgi-bin directory.
>
Thanks Tom, I had previously tried both locations and neither worked. I 
have now altered the link to what you suggest (maybe I had the 1st / 
missing) and the owner of the cgi from root:root to alf:users and it now 
works.
> Do you have a cgi-bin configured in Apache? On Debian/Ubuntu it's 
> normally in the default vhost config at 
> /etc/apache2/sites-available/default.
>
Must have as it is working.....:-)
> If I may ask, why on God's green earth are you writing such things in C?
Because I am a long time C/PHP programmer and I wanted to use C on this 
occasion  and doing it in PHP is no challenge. I have done the PHP thing 
hundreds of times and finally I can place this CGI on my clients web 
site and they cannot fool with it as they have done in the past.
If I can think of any other reasons I will let you know.........:-)
Again thank you to Tom Bamford.

-- 
Regards,
Alf Stockton                 www.stockton.co.za

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20121007/8aed11d7/attachment.html>


More information about the ubuntu-za mailing list