Announcement

Collapse
No announcement yet.

500 Internal Server Error

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

    500 Internal Server Error

    Hi Community

    I would appreciate any suggestions on my problem.

    I've just migrated my Seller Deck 2014 Business website to a new server.
    - Linux Apache Web Server, Version Plesk v12. OS CentOS 6.8

    When I Add to Basket I get a 500 Internal Server Error. 'The server encountered an internal error or misconfiguration and was unable to complete your request.'

    My Network Settings Test runs without any problems.

    I have updated the CGI Script number from 1 to 2 and then 3.

    I have run Publish to Web, Web Refresh and Purge and Refresh (under Help > Troubleshooting).

    I have manually reset the permissions on the cgi-bin folder to rwxr-xr-x (755)

    All the files within the cgi-bin folder are rwxr-xr-x (755)

    The acatalog folder is rwxrwxrwx (777). The Web root is rwxr-x--- (750)

    When I run a Web Refresh I see a pop up alert reading:

    --
    An error occurred while sending the merge request

    Possible causes:
    - corrupt scripts (run purge and refresh)
    - permissions
    --

    I'm happy to try anything that might fix the problem or post an error log here if it would be helpful.

    Many thanks for taking the time to look.

    #2
    Can't think of anything off the top of my head, except to try Web > Generate Scripts and manually upload them.
    Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

    Comment


      #3
      Thanks guccij

      I'm afraid that didn't fix it.

      I uploaded the .pl / .pm files into the cgi-bin. And the SiteHtml into the /acatalog directory.

      Hmm. Doesn't look good.

      Comment


        #4
        Who is your host? And, could you post the network settings here minus passwords and usernames?
        Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

        Comment


          #5
          Thank you for sticking with this.

          The server belongs to Webfusion (Now Heart Internet).



          HTTPPROXYMODE 0
          HTTPPROXYADDRESS
          HTTPPROXYPORT 80
          HTTPPROXYUSER
          HTTPPROXYPASSWORD
          FTPPROXYMODE 0
          FTPPROXYADDRESS
          FTPPROXYPORT 21
          FTPPROXYUSER
          FTPPROXYPASSWORD
          SCRIPTID 3
          SCRIPTEXT .pl
          SMTPHOST localhost
          WEBSITEURL http://www.mysite.co.uk/
          IGNOREPASSIVEERRORS true
          USERELATIVECGIURLS false
          PATHTOPERL /usr/bin/perl
          USEENHANCEFTP false
          FTPBUFFERSIZE 4
          FTPCLIENTTIMEOUT 15000
          FTPRETRYDELAY 3000
          FTPKEEPALIVEINTERVAL 30000
          FTPSILENT false
          FTPMAXRETRIES 3
          FTPCONNECTTIMEOUT 25000
          SMTPAUTHREQUIRED false
          SMTPUSERNAME
          SMTPPASSWORD
          COMPRESSIONPACKETSIZE 1024
          COMPRESSEDUPLOAD true
          CATALOGURL http://www.mysite.co.uk/acatalog/
          ONLINESTOREFOLDERNAME acatalog
          CGIBINURL http://www.mysite.co.uk/cgi-bin/
          PATHFROMCGITOCATALOG /var/www/vhosts/mysite.co.uk/httpdocs/acatalog/
          FTPHOST mysite.co.uk
          FTPUSERNAME ************
          FTPPASSWORD *******************
          PATHTOCGIBIN /httpdocs/cgi-bin/
          USEPASSIVEFTP false
          FTPPATHFROMCGITOCATALOG /httpdocs/acatalog/

          Comment


            #6
            Here's a recent thread about Webfusion - perhaps you could compare your settings to the ones in it.
            Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

            Comment


              #7
              You could also try comparing to this:
              http://community.sellerdeck.com/show...52&postcount=4

              This also may help:
              http://community.sellerdeck.com/showthread.php?t=45140

              Comment


                #8
                Thanks Both

                I've just looked at the error log on the server and this relates to my testing. Just need to decipher what it means... Do shout if it says anything to you.

                [Wed Jul 13 15:02:05 2016] [error] [client 86.162.96.104] script not found or unable to stat: /var/www/cgi-bin/ca000003.pl, referer: http://www.mysite.co.uk/acatalog/Climbers_others.html
                [Wed Jul 13 15:02:40 2016] [error] Can't locate al000003.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd cgi-bin) at /var/www/vhosts/mysite.co.uk/httpdocs/cgi-bin/ca000003.pl line 17.\n

                BTW both al000003.pm (and ca000003.pl) are in the CGI Bin

                Comment


                  #9
                  Are you confident this is correct?
                  PATHTOPERL /usr/bin/perl

                  Similararly with these?
                  PATHTOCGIBIN /httpdocs/cgi-bin/
                  FTPPATHFROMCGITOCATALOG /httpdocs/acatalog/

                  Comment


                    #10
                    Originally posted by alphastate View Post
                    Thanks Both

                    I've just looked at the error log on the server and this relates to my testing. Just need to decipher what it means... Do shout if it says anything to you.

                    [Wed Jul 13 15:02:05 2016] [error] [client 86.162.96.104] script not found or unable to stat: /var/www/cgi-bin/ca000003.pl, referer: http://www.naturesplants.co.uk/acata...rs_others.html
                    [Wed Jul 13 15:02:40 2016] [error] Can't locate al000003.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd cgi-bin) at /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/cgi-bin/ca000003.pl line 17.\n

                    BTW both al000003.pm (and ca000003.pl) are in the CGI Bin
                    Hi
                    You have a definite configuration error as the server is trying to find the perl scripts in /var/www/cgi-bin/ca000003.pl
                    cgi-bin will never be in that location as each virtual host will have its own cgi-bin so its most likely location for a Centos operating system is /var/www/vhosts/xxxxxxxxxx.co.uk/cgi-bin. the vhosts folder holds all the different domains that you may have running on the server.

                    You need to change PATHTOCGIBIN as that is wrong, the path needs to be from the ftp root whichfor webfusion should be /cgi-bin/ as the ftp root should be the Web site root.

                    At present the site cannot find the path you have set and is looking in other possible locations on the server.

                    Edit
                    I sorted out another Web fusion Web site today so these changes should correct your problem.
                    PATHTOPERL /usr/bin/perl
                    PATHFROMCGITOCATALOG ../acatalog/
                    PATHTOCGIBIN /cgi-bin/
                    USEPASSIVEFTP true
                    FTPPATHFROMCGITOCATALOG

                    also you need to set the SMTP to your webfusion mail server rather than localhost and set authorisation to true, and assign an account for logging on the the mail server, I set up a specific account to use just for this purpose see below->

                    SMTPHOST mail.yourdomainname
                    SMTPAUTHREQUIRED true
                    SMTPUSERNAME sellerdeck@yourdomainname
                    SMTPPASSWORD yourpassword

                    replace yourdomainname with the domain your are using and set a suitable password.

                    I used to have a server at WebFusion before they changed to Heart and these settings are not the ones I used in the past so either they made some changes or different types of account have different settings.
                    Last edited by malbro; 15-Jul-2016, 09:13 PM.

                    Malcolm

                    SellerDeck Accredited Partner,
                    SellerDeck 2016 Extensions, and
                    Custom Packages

                    Comment


                      #11
                      Thank you Malcolm.
                      I think you are correct - its a configuration error.

                      I will test your suggested paths and let you know how I get on ASAP.

                      Comment


                        #12
                        Hi

                        I'd love to be able to say you suggestions worked Malcolm but I am afraid they didn't.

                        The only configuration I can get to pass the Network test are those posted by me above.
                        And they clearly don't work unless the correct path is hardcoded into the script.

                        I must therefore conclude that the server is incapable of running SellerDeck and move on....

                        Comment


                          #13
                          Originally posted by alphastate View Post
                          Hi

                          I'd love to be able to say you suggestions worked Malcolm but I am afraid they didn't.

                          The only configuration I can get to pass the Network test are those posted by me above.
                          And they clearly don't work unless the correct path is hardcoded into the script.

                          I must therefore conclude that the server is incapable of running SellerDeck and move on....
                          If you want me to take a look for you you can email me via the forum.

                          Malcolm

                          SellerDeck Accredited Partner,
                          SellerDeck 2016 Extensions, and
                          Custom Packages

                          Comment


                            #14
                            Thank you Malcolm

                            That is very generous of you. However I have just published the website to a 123-Reg VPS (Plesk) with the very same Network settings I published above and it works perfectly.

                            It must therefore be a problem with the set up of the Webfusion server.

                            Thanks for your help.

                            Comment


                              #15
                              Hello Malcolm

                              Many thanks again for your kind help with my problem.

                              One small request though - I wonder if you could edit and remove reference to the domain in one your helpful posts (15-Jul-2016, 10:12 AM).

                              You were simply quoting my post that included them of course - entirely understandable.
                              On reflection though it does turn up in search results on the domain and is a minor irritation.

                              Hope you don't mind.

                              Thanks

                              Comment

                              Working...
                              X