"HTTP ERROR 500" New installation error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • especial
    Junior Member
    • Nov 2024
    • 11

    "HTTP ERROR 500" New installation error

    HTTP ERROR 500 pops up when i click install button.

    I checked this file 'espo-2024-12-07.log', the content in this file :
    [2024-12-07 06:38:12] ERROR: (0) Uncaught Exception RuntimeException: "Could not write file `/home/u271320918/domains/server-domain/public_html/expo/data/logs/espo-2024-12-07.log`. Error message: Call to undefined function Espo\Core\Utils\File\chgrp()" at /home/u271320918/domains/server-domain/public_html/expo/application/Espo/Core/Log/Handler/EspoFileHandler.php line 88 :: /home/u271320918/domains/server-domain/public_html/expo/application/Espo/Core/Log/Handler/EspoFileHandler.php(88)

    after refresh the 500 error page, it hows permission denied.
    Searched the forums and find espo official docs, and applied the permissions as requested, but still no change, i even checked it with hostinger support but no luck.

    EspoCRM version is 8.4.2
    PHP version is 8.2
    mySQL version is

    What might be the issue? Please help.
    Last edited by especial; 12-07-2024, 03:41 PM.
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    #2
    In config-internal file set error level to DEBUG, as this shows a bit more in the log file.
    Also check your server logs.

    Comment

    • especial
      Junior Member
      • Nov 2024
      • 11

      #3
      Originally posted by shalmaxb
      In config-internal file set error level to DEBUG, as this shows a bit more in the log file.
      Also check your server logs.
      Thanks for posting. This is the new espo-2024-12-07.log:
      [2024-12-07 06:38:12] ERROR: (0) Uncaught Exception RuntimeException: "Could not write file `/home/u271320918/domains/server-domain/public_html/expo/data/logs/espo-2024-12-07.log`. Error message: Call to undefined function Espo\Core\Utils\File\chgrp()" at /home/u271320918/domains/server-domain/public_html/expo/application/Espo/Core/Log/Handler/EspoFileHandler.php line 88 :: /home/u271320918/domains/server-domain/public_html/expo/application/Espo/Core/Log/Handler/EspoFileHandler.php(88)
      [2024-12-07 06:44:32] WARNING: E_WARNING: Undefined array key "errors"
      [2024-12-07 06:44:32] WARNING: E_WARNING: Attempt to read property "value" on null
      [2024-12-07 14:57:19] WARNING: E_WARNING: Undefined array key "errors"
      [2024-12-07 14:57:19] WARNING: E_WARNING: Attempt to read property "value" on null

      This is the error info in server log:
      [10-Oct-2024 01:08:40 UTC] PHP Warning: Module "mysqli" is already loaded in Unknown on line 0
      [10-Oct-2024 01:08:41 UTC] PHP Warning: Module "Phar" is already loaded in Unknown on line 0
      [10-Oct-2024 01:08:41 UTC] PHP Warning: Module "mysqlnd" is already loaded in Unknown on line 0
      [10-Oct-2024 01:08:41 UTC] PHP Warning: Module "mysqli" is already loaded in Unknown on line 0​​
      Last edited by especial; 12-07-2024, 03:43 PM.

      Comment

      • especial
        Junior Member
        • Nov 2024
        • 11

        #4
        i can install this version on windows locally pretty smoothly, strange

        Comment

        • yuri
          Member
          • Mar 2014
          • 8438

          #5
          It seems PHP is configured/built without some required extensions.

          The same issue here: https://forum.espocrm.com/forum/inst...ils-file-chown
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • especial
            Junior Member
            • Nov 2024
            • 11

            #6
            I tried to switched to php 8.1, installation succeed, maybe it's the issue of php version?

            Comment

            • especial
              Junior Member
              • Nov 2024
              • 11

              #7
              Also tried to deploy from github public repositories https://github.com/espocrm/espocrm, then changed the php version to 8.1, then installed successfully in a different folder from github one. If github public repositories is deleted, it won't allow me to install, either. And if php version switched back to 8.2, installation failed.
              EspoCRM version 8.4.2
              PHP version 8.1

              Who can explain this?

              Comment

              • yuri
                Member
                • Mar 2014
                • 8438

                #8
                If you took the master branch, it's not a stable. It won't work.
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                • especial
                  Junior Member
                  • Nov 2024
                  • 11

                  #9
                  Originally posted by yuri
                  If you took the master branch, it's not a stable. It won't work.
                  Thanks for advice. Still can't install on hostinger

                  Comment

                  Working...