skip to Main Content

When I upgrade my server from PHP 7.2 to PHP 7.3 I get a server error 500.

I’m using the same packages as I did with 7.2 (and none have been deprecated). My error logs aren’t very helpful as they don’t provide any inclination of the problem (or anything else, a problem for another day).

I’ve never had any issues updating my PHP version so I’m not sure why I’m having issues now.

I use htaccess but I can’t think why my htaccess file will work with 7.2 and not 7.3. All I get is a 500 Server Error, no additional information.

Does anyone have any ideas? I would be very grateful!

2

Answers


  1. Chosen as BEST ANSWER

    I made a boo boo, ignore me. Turns out that when you update to PHP 7.3 when using cPanel the necessary sqli/pdo modules get unchecked. In my sleep deprived state I wasn't paying proper attention. Enabling nd_mysqli and nd_pdo_mysql modules fixed everything.


  2. Does index.php ONLY containing the following and still has a 500?

    <?php
     phpinfo();
    ?>
    

    If so make sure you’ve disabled the old php 7.2 and enable 7.3

     sudo a2dismod php7.2
     sudo a2enmod php7.3
    

    this assumes you use apache

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search