Server Requirements for PHP Version

New documentation mentions 5.3.7 as a php version requirement. Although viewing the current composer.lock 5.3.3 file will be fine?

+4
source share
2 answers

Laravel requires 5.3.7, so get at least that. I recommend (if possible) upgrading to 5.4 anyway. Laravel requires the password_compat package, and this package requires at least PHP 5.3.7. Cause:

The reason for this is that PHP prior to 5.3.7 contains a security issue with its implementation of BCRYPT. Therefore, it is highly recommended that you upgrade to a newer version of PHP before using this layer.

If you are using a lower version of PHP, beware.

If you try to use password compatibility in an unsupported version, attempts to create or verify hashes will return false. You have been warned!

+8
source

There are also a number of PHP extensions needed to use some bits of the embedded material in laravel. For example, yesterday I noticed that to download a file, the fileinfo extension is required to collect information.

Not sure if this is noted in the docs. Laravel really gives you 500 errors, though, to tell you if extensions are missing.

+1
source

Source: https://habr.com/ru/post/1483921/


All Articles