R
R
Rishat Sultanov2017-06-27 18:26:53
Laravel
Rishat Sultanov, 2017-06-27 18:26:53

Why can't he see MCRYPT?

Good evening.
This is the kind of thing that haunts me all day.
What I just didn't do. As I just did not pull together PHP.
And did not include modules. But Laravel does not want to work.
Namely, to generate php artisan key: generate
PHP 7.1 generates successfully but does not enter the key into app.php. Only in .env.
And 5.6 generally throws out such an error:
PHP 5.6
Apache2
Laravel 5.0

Log Apache2

[Tue Jun 27 18:31:11.816726 2017] [:error] [pid 11744] [client 127.0.0.1:43026] PHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/investin.dev/config/app.php on line 89
[Tue Jun 27 18:31:11.820423 2017] [:error] [pid 11744] [client 127.0.0.1:43026] PHP Fatal error:  Call to undefined function Illuminate\\Foundation\\Bootstrap\\mb_internal_encoding() in /var/www/investin.dev/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 43

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2017-06-27
@rishatss

You probably need to install the mcrypt module, for example:
sudo apt install php-mcrypt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question