-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Darcy Brodie wrote: > Thanks > > > Gustin Johnson wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Darcy Brodie wrote: >> >>> Gustin, >>> Thanks for the suggestions >>> >>> Gustin Johnson wrote: >>> >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>>> >>>> <snip> >>>> >>>> >>>>> *_Configuration_* >>>>> >>>>> CentOS 5.4 >>>>> Apache 2.2.3 >>>>> Perl 5 >>>>> >>>>> >>>>> root directory for web site /var/www/html/locks (locks is the >>>>> name of >>>>> the web site home directory) >>>>> path for CGI-BIN directory /var/www/cgi-bin >>>>> path for perl /usr/bin/perl >>>>> >>>>> permissions on the perl scripts are set to 755, and the CGI-BIN >>>>> directory >>>>> >>>>> >>> 755 should give full access to the owner, read and execute to group and >>> others, so even if the APACHE user does not have ownership, it should >>> fall under the "other" permissions >>> >> Sorry, that was a brain mis-fire, my bad. >> > And what surprises me, is that after staring at this for 3 days, that I > actually even caught that one >> >>>> Have you had a look in /var/log/apache2/error.log? Usually there are04 >>>> more verbose error messages in there. >>>> >>>> >>> yes, I have. What they are saying for the test scripts is; >>> malformed header from script. Bad header=This is a test so see if >>> this works : darcy2.pl >>> >>> what I have in that script is >>> >>> #!/usr/bin/perl >>> print"This is a test to see if this works \n"; >>> >>> It works fine from the command line, but not from the browser >>> >>> >>> From the script for the password program, when I run it from the >>> browser, I get >>> (2)No such file or directory: exec of >>> '/var/www/cgi-bin/batchsetup.cgi' failed >>> Premature end of script headers: batchsetup.cgi >>> >>> You may need an AddHandler statement somewhere in your config. Check to see that you have something similar to following somewhere in your Apache configs.
AddHandler cgi-script .cgi <snip> > perhaps there is another solution to this problem. What I am attempting > to do, is to create a secure section of the web site (password > required) If anyone can suggest another non-perl program that will > allow an authorized person to add or remove users, and allow the user to > retrieve / change their information as needed, let me know about it and > I will give it a try. > I have been using web frameworks for years now. Currently my first choice is Drupal, but I have set up/used Plone, Wordpress, and Joomla in the past. Just about any modern framework should get the job done. It is probably worth making sure you know what you want to accomplish with your web presence. It might make sense for you to deploy a wiki, or a conventional CMS might make more sense. Make sure you know what the goal is and then choose the right tool. If all you really need is some code snippet for user authentication, the following search on freshmeat might be useful. http://freshmeat.net/search?q=web+authentication&submit=Search -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAks6TNIACgkQwRXgH3rKGfP98QCfeO7zpFEhJ5kmLzdKeegIH1/q /+sAoKc7Ui7W45rLWrfnnB5kWApjPp+l =lJ0M -----END PGP SIGNATURE----- _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

