Announcement

Collapse
No announcement yet.

XAMPP Network Settings

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

    XAMPP Network Settings

    I'm configuring XAMPP on my memory stick using portable apps. (Going well so far)
    I've got all the web server and FTP server running etc. but am having a problem getting the perl scripts to execute. I've checked permissions - cgi-bin and acatalog both have 755.

    The network settings are as follows below and the web structure is default for the XAMPP installation and is shown in the attached image. The FTP root is P:/XAMPP and the FTP user has full permissions. ()

    HTTPPROXYMODE 0
    HTTPPROXYADDRESS
    HTTPPROXYPORT 80
    HTTPPROXYUSER
    HTTPPROXYPASSWORD
    FTPPROXYMODE 0
    FTPPROXYADDRESS
    FTPPROXYPORT 21
    FTPPROXYUSER
    FTPPROXYPASSWORD
    SCRIPTID 1
    SCRIPTEXT .pl
    SMTPHOST localhost
    WEBSITEURL http://localhost/
    IGNOREPASSIVEERRORS true
    USERELATIVECGIURLS false
    PATHTOPERL /perl/bin/perl
    USEENHANCEFTP true
    FTPCLIENTTIMEOUT 15000
    FTPRETRYDELAY 3000
    FTPSILENT true
    FTPMAXRETRIES 30
    FTPCONNECTTIMEOUT 25000
    SMTPAUTHREQUIRED false
    SMTPUSERNAME
    SMTPPASSWORD
    CATALOGURL http://localhost/acatalog/
    ONLINESTOREFOLDERNAME acatalog
    CGIBINURL http://localhost/cgi-bin/
    PATHFROMCGITOCATALOG ../htdocs/acatalog/
    CODEBASE ./
    FTPHOST localhost
    FTPUSERNAME Test
    FTPPASSWORD password
    PATHTOCGIBIN /cgi-bin/
    USEPASSIVEFTP true
    FTPPATHFROMCGITOCATALOG
    The error message I'm getting with the network test is:

    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'
    - the 'CGI-BIN URL'
    - the amount of web space left on your server
    - if your server is configured to accept POSTs to CGI scripts
    - the permissions on the server:
    On Linux/Unix based servers the permissions should be:
    cgi-bin (755)– drwxr-xr-x
    Online Store Folder (777)– drwxrwxrwx
    On Windows based servers (need to be checked with the hosting company):
    IIS
    cgi-bin = read/execute
    Online Store Folder = read/write/execute
    NTFS
    cgi-bin = Catalog's FTP account needs 'Change' permissions on the directory
    Online Store Folder = Catalog's FTP account needs 'Change' permissions on
    the directory AND the IUSR_<servername> account needs to have 'Change'
    permissions on the directory
    Any ideas please? It may be something obvious but I can't seem to find the problem.

    #2
    the site says:
    'You can also add in Perl or Tomcat with...'
    this means that perls isnt included in the default distro of xampp?

    the hint lies here:

    'IUSR_<servername> account needs to have 'Change'
    permissions on the directory'

    and i'd have to install the exact distro of the stack myself to get this error, let me go get it.

    www.portableapps.com?

    Comment


      #3
      another quick note:
      this app hansnt been 'portablized', its just a link to the installer off their page. the installer is a bit pants too.

      sadly.

      try these fellers instead:
      http://sourceforge.net/project/showf...ckage_id=48193

      Comment


        #4
        First thing I noticed:

        cgi-bin and acatalog both have 755
        acatalog should be 777
        ********************
        Tracey
        SellerDeck

        Comment


          #5
          Although the app hasn't been 'portablized' it does have a control panel that is. (http://portableapps.com/apps/development/xampp)
          It also does contain perl - the location is /perl/bin/perl.exe

          The store uploads after accepting the error - but the scripts are not executing.

          I can't seem to be able to change the permissions easily (windows!) but they default back to 755 for both directories when checking with the ftp client. Presumably I can change the permissions in XAMPP somehow - will dig deeper into the documentation.

          Is there an easier way to have a webserver on a stick under windows? - it doesn't have to be launched through portable apps.

          Gabs - Dop you know offhand if UniServer run from the stick?

          Comment


            #6
            you could always roll your own.

            apache, and perl with an ftp server would be all thats required. i think filezilla server has a potgable mode. apache hasnt got an 'installed' mode, so that should be easier. the problem is that apache would run best as a service. and true portability denies that, really.

            Comment


              #7
              Originally posted by drounding View Post
              Gabs - Dop you know offhand if UniServer run from the stick?
              uniserver can run off any drive, becasue it derives the driveletter on execution. they do it in a slightly different way, which leads to a more portable app.

              Comment


                #8
                OK - so now for the question everyone's been waiting for...

                How do I give chnage permissions for Actiinic to write to the cgi-bin and acatalog (using UniServer) in windows?

                Comment


                  #9
                  Originally posted by drounding View Post
                  Any ideas please? It may be something obvious but I can't seem to find the problem.
                  Hi I tried the same installation , Windows XP Pro SP2, but on my hard drive and had a similar problem, which I solved by changing the security on the c:\xampp folder to stop it inheriting permissions. Open folder properties, selecct security tab, then deselect the inherit permissions and select copy when asked. This leaves all the permissions as set but removes the inheritance which is the reason you cannot change the permissions.

                  Xampp is a useful implementation of Apache, MySql, Perl, PHP, FileZilla and Mercury Mail, in a single installation giving a complete web server that should run Actinic.

                  Malcolm

                  SellerDeck Accredited Partner,
                  SellerDeck 2016 Extensions, and
                  Custom Packages

                  Comment


                    #10
                    Thanks for the info Malcolm - although I'm still battling.
                    Do you perhaps have some network settings I can try? At least I can rule out settings then and concentrate on the permssions.

                    Cheers

                    Duncan

                    Comment


                      #11
                      Originally posted by drounding View Post
                      Thanks for the info Malcolm - although I'm still battling.
                      Do you perhaps have some network settings I can try? At least I can rule out settings then and concentrate on the permssions.
                      These are the settings I used
                      HTTPPROXYMODE 0
                      HTTPPROXYADDRESS
                      HTTPPROXYPORT 80
                      HTTPPROXYUSER
                      HTTPPROXYPASSWORD
                      FTPPROXYMODE 0
                      FTPPROXYADDRESS
                      FTPPROXYPORT 21
                      FTPPROXYUSER
                      FTPPROXYPASSWORD
                      SCRIPTID 1
                      SCRIPTEXT .pl
                      SMTPHOST localhost
                      WEBSITEURL http://localhost/
                      IGNOREPASSIVEERRORS true
                      USERELATIVECGIURLS false
                      PATHTOPERL c:/xampp/perl/bin/perl
                      USEENHANCEFTP false
                      FTPCLIENTTIMEOUT 15000
                      FTPRETRYDELAY 3000
                      FTPSILENT false
                      FTPMAXRETRIES 6
                      FTPCONNECTTIMEOUT 50000
                      SMTPAUTHREQUIRED false
                      SMTPUSERNAME postmaster@localhost
                      SMTPPASSWORD password
                      CATALOGURL http://localhost/acatalog/
                      CGIBINURL http://localhost/cgi-bin/
                      PATHFROMCGITOCATALOG ../htdocs/acatalog/
                      CODEBASE ./
                      FTPHOST localhost
                      FTPUSERNAME test
                      FTPPASSWORD password
                      PATHTOCGIBIN /cgi-bin/
                      USEPASSIVEFTP true
                      FTPPATHFROMCGITOCATALOG ../htdocs/acatalog/

                      You will also need to disable the php script index.php in the folder c:\xampp\htdocs as this will interfere with Actinic loading the site. I just renamed it to index.php1

                      I then ran into problems when I tried an uploaded website with the scripts. I found that perl could not find the library files *.pm as the cgi-bin folder isn't a library folder for the perl installation. I sorted this by setting an environment variable PERLLIB to point to c:\xampp\cgi-bin.

                      I hope this helps

                      Malcolm

                      SellerDeck Accredited Partner,
                      SellerDeck 2016 Extensions, and
                      Custom Packages

                      Comment


                        #12
                        Thanks for that.

                        The settings are what I have, except I am runngni xampp in a different directory rather than off the root.

                        I'm still have permissions problems though. I've changed the security settings as you mentioned but still no joy. I added the local USERS group to the list with full access but made no difference.

                        Comment


                          #13
                          Originally posted by drounding View Post
                          I'm still have permissions problems though. I've changed the security settings as you mentioned but still no joy. I added the local USERS group to the list with full access but made no difference.
                          The actual user I used for ftp sign on has administrator rights on the laptop, if I look at the folders using an ftp client the directories are all 755.

                          My problem at the moment is the web pages are fine but scripts are not executing properly, does actinic need php and perl on the server or just perl.

                          Malcolm

                          SellerDeck Accredited Partner,
                          SellerDeck 2016 Extensions, and
                          Custom Packages

                          Comment


                            #14
                            Originally posted by malbro View Post
                            The actual user I used for ftp sign on has administrator rights on the laptop...
                            l'll try that.

                            Originally posted by malbro View Post
                            ...does actinic need php and perl on the server or just perl.
                            Just perl, unless you have your own php Actinic doesn't use it.

                            Comment


                              #15
                              Originally posted by drounding View Post
                              Just perl, unless you have your own php Actinic doesn't use it.
                              I am still having problems with the installation on Windows XP but just to check I installed the system on a Windows Server, similar problems with permissions but have now got a working copy so I will retry with Windows XP to see if the solutions for the server work on XP. I tried sharing some of the folders as web share and setting all permissions including script execution which seems to help.

                              Makes you want to move to Linux

                              Malcolm

                              SellerDeck Accredited Partner,
                              SellerDeck 2016 Extensions, and
                              Custom Packages

                              Comment

                              Working...
                              X