in reply to Re: Re: Re: Re: Re: Re: code problem
in thread code problem

Hence the suggestions I made in this response Re: Re: Re: code problem. See items 1 & 3.

In the code I gave you add:
to see what userid your script is running as. This will give you some idea of how to permission your files.

Most hosting sites run their httpd as "nobody" for security reasons. A handful of cluefull hosting providers will run the virtual httpd as the userid of the account owning the hosted site. Since this is harder to do a lot of sites (and you said this was a free site so they may fall into this category) opt not to provide the level of service.

If this is the case (they are running httpd as nobody) then you will need to have the files you want your script to read set to a minimum of 0444.

Be aware that you have to make sure you do not put sensitive information into that file as anybody can read it now.


Peter L. BergholdBrewer of Belgian Ales
Peter@Berghold.Netwww.berghold.net
Unix Professional

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Re: code problem
by sandal (Initiate) on Jul 23, 2003 at 10:28 UTC
    <html> <body>

    print p("This script runs as `id`");

    In what place I should add this line in test code? Is this important?

    sandal </body> </html>

        In what place I should add this line in test code? Is this important?

      Someplace between print start_html; ... print end_html;

      Other than that, whereever you want it to appear in your finished HTML.


      Peter L. BergholdBrewer of Belgian Ales
      Peter@Berghold.Netwww.berghold.net
      Unix Professional

        I try code on this host and get error: "The server encountered an internal error or misconfiguration and was unable to complete your request."
        I try code also on another similar host (they use Unix IBM AIX and IBM RS/6000) and get error:
        Software error: Execution of /host/h/e/l/p/o/r/subdomain.com/cgi-bin/testscript.cgi aborted due to compilation errors.

        sandal