Weird PHP Errors With Yii 2.0 But Not with Yii 1.1

Hello:

Just deployed an Yii2 app into production. AWS using Unix with Apache. And now I’m getting intermittent PHP errors like:

PHP Core Warning – yii\base\ErrorException

PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/5.5/modules/mysqli.so’ - /usr/lib64/php/5.5/modules/mysqli.so: cannot open shared object file: No such file or directory

And then sometimes I will get errors like:

PHP Module "http" loaded already.

And then I’ll refresh the browser and the message will disappear and the site will work fine for a while. Very odd.

But my Yii1.14 environment has been running just fine for well over a year… Any ideas why this might be happening?

Just about to move an AWS app over from Yii 1.x to 2.x and noticed that my environment is old PHP but will have to update it all for Yii2 since I’m running PHP 5.3 and that’s too old for it. I’m currently running Amazon’s instance of EC2 which may not be current with all new PHP versions/modules.

Did you create a new AWS instance with the current PHP 5 or did you upgrade?

Also I would tail the apache2 error log and the Yii application log to see if that might have any clues.

Sandy