Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: system location

  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question system location

    I'm very, very, very new to server-side scripting. I pulled a free guestbook script off of Matt's Script Archive hoping that I would be able to figure out how to install it. Alas, no. Two problems arise:

    System Location: California? lol. I a bit confused about the system location. I am using a server of my friends, so I didn't set it up myself, but I know that the subdirectory all my stuff is in is /public_html/opfusi/. then what does that make th remote location of the files in the opfusi directory? /public_html/opfusi/filename.html? Or /home/public_html/opfusi/filename.html?

    The other problem has to do with the cgi-bin.

    When I'm using a .pl script to post messages in a guestbook, should the .pl script go into the cgi-bin? If so, how does this change the system location?

    Any help would be GREATLY appriciated, as I am clueless when it comes to these things. Maybe I should stick to my client side...

    Thank you much
    Michael Larsen

  • #2
    New Coder
    Join Date
    Aug 2002
    Location
    Moscow, RU
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hello,

    your home location is very important for any perl script - perl script must know where to write to.. you must ask your friends for FULL location for your directory - it's not just
    /public_html/opfusi/filename.html..

    your scripts must reside in the cgi-bin directory for security purposes - but well, you can place it anywhere, but you will have to make an .htaccess file and put it in the directory where your script reside (for linux) or ask your friends to make all settings for you under windows nt or 2000 hostings settings (you cannot change it by yourself)

    on how i rememer you must define two lines in
    .htaccess file
    --------------
    Options +ExecCGI
    AddHandler cgi-script cgi pl
    ------------------------------
    but it will only work if the admins of the server not set AllowOverride switch to 'none'

    hope this will help you, bye bye
    Last edited by Inci; 09-07-2002 at 01:44 AM.

  • #3
    New to the CF scene
    Join Date
    Oct 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    I think I have the same problem. Very new to all this, got a guestbook from Matt's scripts and it is asking for a system location. I don't even know what they are looking for, but I found this info for my site.

    ---------------------------------------------------------------------
    <!-- begin banner code -->

    <table bgcolor="#000000" align="center" border="0" cellpadding="1" cellspacing="0" width="728">
    <tr>
    <td width="100%">
    <table background="/nf-images/nf_back.gif" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#E7E7E7">
    <tr>

    <td width="10%">
    <a href="http://www.netfirms.com"><img alt="Free Web Hosting by Netfirms" align="absmiddle" border="0" src="/nf-images/Freewebhosting.gif" width="184" height="24"></a><br />
    </td>

    <td width="90%">

    <font size="2"><a href="http://www.netfirms.com">Web Hosting by <b>Netfirms</b></a> | <a href="http://www.netfirms.com/domain-names">Free Domain Names by <b>Netfirms</b></a></font>
    </td>

    </tr>
    </table>

    </td>
    </tr>
    </table>

    <table align="center" border="0" cellpadding="1" cellspacing="0" width="728">
    <tr>
    <td width="100%">

    <img src="/nf-images/freewebhosting.webhosting.asis" width="1" height="3"><br />

    <!-- Start Creative for 728 x 90 format from Google -->
    <script type="text/javascript" language="JavaScript">
    <!--
    google_ad_client = 'netfirms_728x90';
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = '728x90_sln';
    google_safe = 'high';
    // -->
    </script>
    <script type="text/javascript" language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><br />
    <noscript>
    <img height=1 width=1 border=0 src="http://pagead2.googlesyndication.com/pagead/imp.gif?client=ca-netfirms_728x90&event=noscript"/><br /></noscript>
    <!-- End Creative for 728 x 90 format from Google -->

    </td>
    </tr>
    </table>

    <!-- end banner code -->
    GATEWAY_INTERFACE=CGI/1.1
    HTTP_XXXXXXXXXXXXXXX=XXXXXXXXXXXX
    HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
    REMOTE_ADDR=61.207.152.91
    QUERY_STRING=
    REMOTE_PORT=1201
    HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
    DOCUMENT_ROOT=/mnt/web_u/d01/s06/a000sy19
    NF_MYSQL_HOST=10.8.12.4:3310
    HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    SCRIPT_FILENAME=/usr/local/nf/share/cgi/printenv
    HTTP_HOST=cbotha.netfirms.com
    REQUEST_URI=/cgi/printenv
    HTTP_X_FORWARDED_FOR=61.207.152.91
    HTTP_NFUSERADDR=61.207.152.91
    SERVER_SOFTWARE=Apache/1.3.26 (Unix) mod_perl/1.26
    HTTP_CONNECTION=close
    HTTP_COOKIE=nfreferstat=http%3A%2F%2Fwww.netfirms.com%2F
    PATH=/usr/local/bin:/usr/bin:/bin
    HTTP_X_FORWARDED_SERVER=w0_2
    HTTP_ACCEPT_LANGUAGE=en-gb,en;q=0.5
    SERVER_PROTOCOL=HTTP/1.1
    HTTP_X_FORWARDED_HOST=cbotha.netfirms.com
    SCRIPT_URI=http://cbotha.netfirms.com/cgi/printenv
    SCRIPT_URL=/cgi/printenv
    REQUEST_METHOD=GET
    SERVER_ADMIN=support@netfirms.com
    SERVER_PORT=80
    SCRIPT_NAME=/cgi/printenv
    SERVER_NAME=cbotha.netfirms.com
    -------------------------------------------------------------------
    If any of this makes any sense, please help me. I would like to put a guestbook on my website, but being a complete novice, I don't know where to begin.

    Help please


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •