Answer the question
In order to leave comments, you need to log in
Problems after migrating to PHP 7, how to solve?
Good time!
Upgraded to PHP7 on CentOS 7.2 x64, having problems with the script.
There is a script that receives data from the world using the GET method (script.php?data=*data*), on a home computer with Windows 10 (Open Server latest version with PHP 7.0) - everything works, on a production server with PHP 5.4, 5.5, 5.6 - everything works. But on the same server with PHP 7, it crashes with error 500.
If you send data to the script via mod_rewrite, then everything works, that is, PHP itself works, the problem is purely that it refuses to work if the url contains ?...
PHP versions on the server are switched in the control panel.
Question: do I need to fix something in php.ini or is this a feature of php 7 itself?
Solution: Solution
As it turned out, the matter is completely different. Thanks for the advice to look at the logs, it turned out that php was falling due to the lack of one library ... Namely, bcmath
Answer the question
In order to leave comments, you need to log in
Run the script on the server from the command line, this way you can cast a more detailed description of the error
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question