Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    webapp 500 internal server error

    Kopano WebApp
    3
    10
    3090
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ItzJustinN
      ItzJustinN last edited by

      hello, im not sure if this is the right place but i hope someone can help.

      I recently installed kopano on a new RHEL7 vm.
      it seems everything is working fine except webapp.
      i was able to install zpush and get email synced up to my phone, am able to send/rcv
      however when i try to login to webapp, i get a 500 internal server error upon using correct login credentials.
      incorrect login credentials presents me with an error and asks me to try again.
      i have setup kopano to use ldap plugin for authentication with my ad server.
      i cant find anything in the apache/kopano logs as to why this error is occuring, only that a 500 error is being logged.
      the obvious stuff i found online like php memory limit, and selinux has already been checked.
      im really at a loss why im getting a 500 error,…

      1 Reply Last reply Reply Quote 0
      • ItzJustinN
        ItzJustinN last edited by ItzJustinN

        as i found in another post, i made the following change: webapp’s config.php error debugging to “E_ALL”

        and the below error has showed itself:

        PHP Parse error:  syntax error, unexpected '===' (T_IS_IDENTICAL), expecting ',' or ';' in /usr/share/kopano-webapp/server/includes/loader.php on line 8
        [Wed Jun 21 21:32:46.466933 2017] [headers:debug] [pid 4516] mod_headers.c(823): AH01502: headers: ap_headers_output_filter()
        
        1 Reply Last reply Reply Quote 0
        • ItzJustinN
          ItzJustinN last edited by

          commenting this line out

          //      private $source = DEBUG_LOADER === LOAD_SOURCE;
          

          in the file:
          /usr/share/kopano-webapp/server/includes/loader.php

          solved the problem as a work-around

          any ideas why this is occurring?

          1 Reply Last reply Reply Quote 0
          • marty
            marty Kopano (Inactive) last edited by marty

            Hi ItzJustinN,

            This should be fixed in the latest (master) version.
            Related ticket:
            https://jira.kopano.io/browse/KW-1599

            https://documentation.kopano.io/deskapp_admin_manual
            http://documentation.kopano.io/webapp_smime_manual
            https://documentation.kopano.io/webapp_admin_manual

            1 Reply Last reply Reply Quote 0
            • ItzJustinN
              ItzJustinN last edited by

              hello, i have a few questions about the update.

              first if i update kopano packages will this overwrite my current config files?

              also what are the side effects (if any) to commenting this line out?
              if there is no consequence, i may wait to update kopano at a later time.

              umgfoin 1 Reply Last reply Reply Quote 0
              • marty
                marty Kopano (Inactive) last edited by

                Hi ItzJustinN,

                I can’t tell you the consequence.
                But if you’re editing the file, why don’t you copy the fix?

                https://documentation.kopano.io/deskapp_admin_manual
                http://documentation.kopano.io/webapp_smime_manual
                https://documentation.kopano.io/webapp_admin_manual

                ItzJustinN 1 Reply Last reply Reply Quote 0
                • umgfoin
                  umgfoin @ItzJustinN last edited by umgfoin

                  @ItzJustinN said in webapp 500 internal server error:

                  if i update kopano packages will this overwrite my current config files?

                  No, if the yum package-manager applies changes to config-files, modified files will be kept untouched and
                  updated (default)-configs will be created additionally, (usually) named foo.cfg.rpmnew.
                  Thus diff foo.cfg foo.cfg.rpmnew will show you the relevant changes.

                  1 Reply Last reply Reply Quote 0
                  • ItzJustinN
                    ItzJustinN @marty last edited by

                    @marty said in webapp 500 internal server error:

                    Hi ItzJustinN,

                    I can’t tell you the consequence.
                    But if you’re editing the file, why don’t you copy the fix?

                    hello, i am not sure where to find the fixed config. could you advise?

                    1 Reply Last reply Reply Quote 0
                    • marty
                      marty Kopano (Inactive) last edited by

                      Here: https://stash.kopano.io/projects/KW/repos/kopano-webapp/browse/server/includes/loader.php?at=0c0d311638cc963377001852c86572b7f49bc816#6

                      I would still advice a normal upgrade though :)

                      https://documentation.kopano.io/deskapp_admin_manual
                      http://documentation.kopano.io/webapp_smime_manual
                      https://documentation.kopano.io/webapp_admin_manual

                      1 Reply Last reply Reply Quote 0
                      • ItzJustinN
                        ItzJustinN last edited by

                        i made the change and its working fine now.
                        i look forward to future kopano updates!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post