Announcement

Collapse
No announcement yet.

Localhost - FTP, Perl and Appache

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

    Localhost - FTP, Perl and Appache

    Hello Everyone,

    After reading the chapter on the Advance User Guide - Installing a Standalone Demo on a PC, my in and out attempts to get my actinic site to work locally has been fruitless, well not entirely.

    I've decided to install the site according to how I have my other sites running. I have a folder called 'webs' in the c:\ drive with folders in it for all the sites I work on.

    C:\webs\watchdistrict\htdocs

    The setting on the 'httpd' appache server config file are as follows:

    "

    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/webs"

    "

    and

    "

    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "C:/webs">

    "

    All my other sites work by the way.

    The first error comes while testing from the 'advance network settings', please look at attached.
    test_error.gif
    Followed by
    "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."

    My network settings are attached on a GIF - network_setup.gif

    The other error comes after publishing the site. This one is bizarre - error.gif

    The settings on the FTP server and directory layouts are attached as well - ftp_server_settings_and_documents_in_directories.gif

    On the user guide it says by typing

    "http://localhost/cgi-bin/nq000001.pl"

    you should get a message 'Script Error' in red. But I don’t get that because the actual perl is in a different directory, so upon entering the address for that -

    "http://localhost/watchdistrict/htdocs/cgi-bin/nq000001.pl"

    I don’t get the 'script error' message; instead I get the whole code within that script/perl file displayed in the browser window.


    The site eventually comes up upon entering

    http://localhost/watchdistrict/htdocs/

    but the links 'enter store' take you to a page of which the address is

    http://localhost/watchdistrict/htdoc...html&NOLOGIN=1

    and has a script/perl displayed.

    Perl is installed in the c;\ driev and works from the ommand prompt when typing (perl-v). Perl is version 5.8.4, Actinic version 6.1.2, War FTP Daemon is version 1.82.0.9, and Apache is Version 2.0.52.

    I hope I've given enough information for somebody with past expiriences
    with this problem or an Actinic Admin to shed some light.


    I can’t seem to find out ways of getting it to fluently work locally. This is important because I would like to know what effects the editing of the templates would have without having to publish it to the WWW. The way Actinic works with all the netquovars and other codes still hasn’t sunk into my head. Configuring and editing your web site on actinic to how you want it to look has been a challenge.
    Attached Files

    #2
    It looks like the /htdocs bits in all your network settings isn't required. Your document root (htdocs) should be part of Apache's configuration and not Actinic's.

    Instead of executing the Perl scripts Apache is returning them as text type documents.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      moving the cgi

      I think I see what you mean. I got rid of /htdocs from actinic as well as the FTP server sestings and it still comes up with the same errors. The site is published locally without the htdocs because I got rid of that but upon entering the store the script shows up rather than it being excuted.

      Because the root document in apaches httpd configuration file is c:\webs
      does it mean the CGI-BIN has to be located in that document?
      Rather than

      C:\webs\watchdistrict\cgi-bin

      If thats the case, I would then move the CGI-BIN back one folder into my

      c:\webs

      directory, but then how would the network settings be like on actinic?

      Comment


        #4
        Hi there

        In actinic network setup, where you have path to cgi-bin on the right hand side, simply put here

        htdoc/cgi-bin/

        Apply this and test it

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment

        Working...
        X