Announcement

Collapse
No announcement yet.

CGI probs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by Nadeem
    Hi there


    You need to also set the permissions to the /cgi-bin/ folder and /acatalog/. In CuteFTP you right click on one of these folder and select "CHMOD".
    The permission for /cgi-bin/ should be 755 and the /acatalog/ should be 777.
    Please note, these are UNIX Permission, if you are running an Windows server, then the permission should be:

    Read
    Read and Execute
    Modify
    Write

    For both the folders.

    Kind Regards
    Hi Nadeem

    My permission for /cgi-bin/ is set to 755 and for the /catalog/ it is set to 777.
    But my 'Location' is showing '/'. How should my 'Location' read?

    Regards Percy

    Comment


      #17
      Hi Percy,

      But my 'Location' is showing '/'. How should my 'Location' read?
      I'm not sure what you mean by this but you should only be concerned with the 'cgi-bin' and 'acatalog' folder permissions.

      My colleague has just set someone else up with 123-reg settings so may want to try these:

      SCRIPTID 1
      SCRIPTEXT .pl
      SMTPHOST As given by host
      WEBSITEURL http://domainname/
      IGNOREPASSIVEERRORS true
      USERELATIVECGIURLS false
      PATHTOPERL /usr/bin/perl
      USEENHANCEFTP false
      SMTPAUTHREQUIRED false
      SMTPUSERNAME
      SMTPPASSWORD
      CATALOGURL http://domainname/acatalog/
      CGIBINURL http://domainname/cgi-bin/
      PATHFROMCGITOCATALOG ../public_html/acatalog/
      CODEBASE ./
      FTPHOST Servername
      FTPUSERNAME *********
      FTPPASSWORD *********
      PATHTOCGIBIN /cgi-bin/
      USEPASSIVEFTP true
      FTPPATHFROMCGITOCATALOG /public_html/acatalog/
      ********************
      Tracey
      SellerDeck

      Comment


        #18
        Hi Tracey


        I tried the settings you suggested above and when carrying out a test these are the error messages I get:

        "Unable to move to the acatalog directory "/public_html/" on the FTP server possibly due to a mistake in the Path from CGI-BIN to acatalog Directory field.
        The specified directory does not exist or you do not have access to the directory."

        "Actinic received a server error from the web server. The CGI scripts are not executing properly on the server. Run Web | Configure Web Site Details... to review your web site configuration."

        The test script failed to execute on the web server. The error could be caused by several things. Check the path to the Perl shell, the CGI script extension, the path to CGI-BIN, and the CGI-BIN URL. This error could also occur if your web site is out of disk space or your web server is not configured to accept POSTs to CGI scripts.

        Responce:

        Server Error
        The following error occurred:
        [code=SERVER_RESPONSE_CLOSE] The server closed the connection while reading the response. Contact your system administrator.

        Please contact the administrator.
        --------------------------------------------------------------------------


        I have set my permissions in Cute FTP client on cgi-bin to “755” and have set the permissions on acatalog to “777”.


        Can you please let me know how I can overcome this problem.

        Here are my settings:

        HTTPPROXYMODE 0
        HTTPPROXYADDRESS
        HTTPPROXYPORT 80
        HTTPPROXYUSER
        HTTPPROXYPASSWORD
        FTPPROXYMODE 0
        FTPPROXYADDRESS
        FTPPROXYPORT 21
        FTPPROXYUSER
        FTPPROXYPASSWORD
        SCRIPTID 98
        SCRIPTEXT .pl
        SMTPHOST smtp.supanet.com
        WEBSITEURL http://www.gospelmovies.co.uk
        IGNOREPASSIVEERRORS true
        USERELATIVECGIURLS true
        PATHTOPERL /usr/bin/perl
        CATALOGURL http://www.gospelmovies.co.uk/acatalog/
        CGIBINURL http://www.gospelmovies.co.uk/cgi-bin/
        PATHFROMCGITOCATALOG ../public_html/acatalog/ (am i missing somthing here)?
        CODEBASE ./
        FTPHOST ftp.hosting4.123-reg.co.uk
        FTPUSERNAME ********
        FTPPASSWORD ********
        PATHTOCGIBIN cgi-bin/
        USEPASSIVEFTP true
        FTPPATHFROMCGITOCATALOG

        Thanks
        Percival

        Comment


          #19
          Hi Percival,

          It looks to me like you've been through enough on this.

          If I were you I'd log a support call with Actinic and get them to help you directly. This should only take them 5-10 minutes to sort out once they have access to your server.

          Mike
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #20
            Hi Percival,

            Your settings look ok to me but can you check on your server that you have a folder called 'public_html' and that the 'acatalog' folder is within this folder.

            Your settings are really all based on the 'cgi-bin'. First of all you need to determine where this is on your server, ie when you first ftp onto your server, do you see the cgi-bin straight away or is it within a sub-folder? If you can see it as soon as you log on then the 'Path to the cgi-bin' will be either '/cgi-bin/' or 'cgi-bin/'. If it is within a folder then then it will be '/foldername/cgi-bin/'.

            Then you need to work out the 'Path from the cgi-bin to the acatalog directory'. On a Unix/Linux server this will always start with ../ as this means that you are coming out of the cgi-bin. Then you need to add the path to the 'acatalog' folder - so if you have to go into the 'public_html' folder to get to the 'acatalog' folder - ie your directory structure looks like:

            cgi-bin (folder)
            public_html (folder)
            ........acatalog (sub-folder in public_html)

            your 'Path from CGI-BIN to acatalog directory would be:

            ../public_html/acatalog/

            If your cgi-bin and acatalog folder are at the same level - ie:

            cgi-bin (folder)
            acatalog (folder)

            then it would be:

            ../acatalog/

            I hope this helps make it a bit clearer.
            ********************
            Tracey
            SellerDeck

            Comment


              #21
              Hi Tracey

              Thanks for your previous reply, which I have applied but unfortunatly I am still getting error messages, which are as follows:

              Actinic received a server error from the web server. The CGI scripts are not executing properly on the server. Run Web | Configure Web Site Details... to review your web site configuration.

              The test script failed to execute on the web server. The error could be caused by several things. Check the path to the Perl shell, the CGI script extension, the path to CGI-BIN, and the CGI-BIN URL. This error could also occur if your web site is out of disk space or your web server is not configured to accept POSTs to CGI scripts.


              When I carry out a test using the wizard it stops at 'web site address' and the error message that follows is ' the wizard received an error while verifying the web server, error sending request'.

              My setting are as follows:

              HTTPPROXYMODE 0
              HTTPPROXYADDRESS
              HTTPPROXYPORT 80
              HTTPPROXYUSER
              HTTPPROXYPASSWORD
              FTPPROXYMODE 0
              FTPPROXYADDRESS
              FTPPROXYPORT 21
              FTPPROXYUSER
              FTPPROXYPASSWORD
              SCRIPTID 1
              SCRIPTEXT .pl
              SMTPHOST smtp.supanet.com
              WEBSITEURL http://www.gospelmovies.co.uk/
              IGNOREPASSIVEERRORS true
              USERELATIVECGIURLS true
              PATHTOPERL /usr/bin/perl/
              USEENHANCEFTP false
              FTPCLIENTTIMEOUT 5000
              FTPRETRYDELAY 3000
              FTPSILENT false
              FTPMAXRETRIES 3
              FTPCONNECTTIMEOUT 15000
              SMTPAUTHREQUIRED true
              SMTPUSERNAME percival-4
              SMTPPASSWORD ********
              CATALOGURL http://gospelmovies.co.uk/public_html/acatalog/
              CGIBINURL http://gospelmovies.co.uk/public_html/cgi-bin/
              PATHFROMCGITOCATALOG ../public_html/acatalog/
              CODEBASE ./
              FTPHOST hosting4.123-reg.co.uk
              FTPUSERNAME percival-829826
              FTPPASSWORD ********
              PATHTOCGIBIN /public_html/cgi-bin/
              USEPASSIVEFTP false
              FTPPATHFROMCGITOCATALOG /public_html/acatalog/

              Any help would be greatly appreciated.

              Thanks
              Percival

              Comment


                #22
                Hi Percival,

                Looking at what you have posted for your 'Path to CGI-BIN':

                PATHTOCGIBIN /public_html/cgi-bin/

                You are saying that your cgi-bin is within the 'public_html' folder, therefore, your 'Path from CGI-BIN to acatalog folder' should be:

                ../acatalog/

                as they are in the same folder and not '../public_html/acatalog/' as you have listed in your previous post. You might also want to try leaving the 'Path from CGI-BIN to acatalog directory (as viewed by the FTP server)' blank.

                You should also remove '/public_html' from your 'Catalog URL' and CGI-BIN' url field.

                Your settings should look something like:

                HTTPPROXYMODE 0
                HTTPPROXYADDRESS
                HTTPPROXYPORT 80
                HTTPPROXYUSER
                HTTPPROXYPASSWORD
                FTPPROXYMODE 0
                FTPPROXYADDRESS
                FTPPROXYPORT 21
                FTPPROXYUSER
                FTPPROXYPASSWORD
                SCRIPTID 1
                SCRIPTEXT .pl
                SMTPHOST smtp.supanet.com
                WEBSITEURL http://www.gospelmovies.co.uk/
                IGNOREPASSIVEERRORS true
                USERELATIVECGIURLS true
                PATHTOPERL /usr/bin/perl/
                USEENHANCEFTP false
                FTPCLIENTTIMEOUT 5000
                FTPRETRYDELAY 3000
                FTPSILENT false
                FTPMAXRETRIES 3
                FTPCONNECTTIMEOUT 15000
                SMTPAUTHREQUIRED true
                SMTPUSERNAME percival-4
                SMTPPASSWORD ********
                CATALOGURL http://www.gospelmovies.co.uk/acatalog/
                CGIBINURL http://www.gospelmovies.co.uk/cgi-bin/
                PATHFROMCGITOCATALOG ../acatalog/
                CODEBASE ./
                FTPHOST hosting4.123-reg.co.uk
                FTPUSERNAME percival-829826
                FTPPASSWORD ********
                PATHTOCGIBIN /public_html/cgi-bin/
                USEPASSIVEFTP false
                FTPPATHFROMCGITOCATALOG

                Also, have you checked that a perl file will run from your cgi-bin? Try uploading the attached perl file (after unzipping it) to your cgi-bin (upload must be in ASCII mode) and then try running it in your browser at:

                http://www.gospelmovies.co.uk/cgi-bin/helloworld5.pl

                If this runs then at least we know that perl is working.
                Attached Files
                ********************
                Tracey
                SellerDeck

                Comment


                  #23
                  Hi Tracey

                  I did as you suggested by uploading the perl file (you attached) in ASCII mode to my cgi-bin directory. I then ran it in my browser using to following:

                  http://www.gospelmovies.co.uk/cgi-bin/helloworld5.pl

                  Then I got the following error message:

                  Internal Server Error
                  The server encountered an internal error or misconfiguration and was unable to complete your request.
                  Please contact the server administrator, percivalk@hotmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

                  More information about this error may be available in the server error log.


                  Now that we have established that perl is not working, what do I do now?


                  Percival

                  Comment


                    #24
                    Hi Percival,

                    OK, now we might be getting somewhere. As the helloworld5.pl file does not run this suggests a problem on your server. You will need to check with your hosting company why this simple (non-actinic) perl script will not work. It may be as simple as the 'path to perl shell' is wrong or it could be that they have not set up perl to run from your cgi-bin.
                    ********************
                    Tracey
                    SellerDeck

                    Comment


                      #25
                      Hi Tracey

                      123-Reg has informed me that the reason why the halloworld file was not loading was because the permission was incorrectly set. They have told me to set my permission to 744 and fortunatly that file loaded ok. But when I set the permission to 744 on the perl files within my cgi-bin, an error message appears saying that 'my scripts are not executing properly'.

                      I seem to be going around in circles and getting nowhere. For the last 3 1/2 months I have patiently tried to upload my site to my web site with no success.

                      Percival

                      Comment


                        #26
                        try permissions of 755

                        Comment


                          #27
                          Thanks Tracey and Jo Morecroft

                          My smtp sever was incorrect, which was the reason why it did not complete the test. After all that, I am now up and running.

                          Many thanks Tracey.

                          Percival
                          gospelmovies.co.uk

                          Comment

                          Working...
                          X