Php upgrade went wrong

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ali.ahmed@bios.pk
    Junior Member
    • Mar 2024
    • 25

    Php upgrade went wrong

    Hello,

    I was updating my Espo from 8.4.2 to the latest released one however i got an error that it cannot be upgraded unless i update my php version from 8.1 to 8.2 and above. However, something went wrong and even before upgrading the espo version i am getting error 500 on the home page and nothing is loading. I have switched back to the older version of php but it is still not working..
  • novastream
    Member
    • May 2021
    • 70

    #2
    Hi Ali,

    Who is the owner of:
    /var/www/html/espocrm

    And who is the webserver user? (usally it is www-data)

    Lets say www-data is the owner of /var/www/html/espocrm then you can run sudo -u www-data php command.php upgrade

    Now If you instead have vhosts for multiple users you need to execute the sudo -u [insert-username] php command.php upgrade

    Please do also check the logs in /var/logs/nginx or /var/logs/apache2, here you should find an error log with some more information.

    Comment

    • victor
      Active Community Member
      • Aug 2022
      • 759

      #3
      Originally posted by ali.ahmed@bios.pk
      Hello,

      I was updating my Espo from 8.4.2 to the latest released one however i got an error that it cannot be upgraded unless i update my php version from 8.1 to 8.2 and above. However, something went wrong and even before upgrading the espo version i am getting error 500 on the home page and nothing is loading. I have switched back to the older version of php but it is still not working..
      The best option would be to install PHP 8.3 and then update EspoCRM to the current 9.0.1.

      Comment

      Working...