Laravel 5.1 installation prompts an error when accessing localhost?
黄舟
黄舟 2017-05-16 16:53:36
0
3
494

I used phpstudy to configure the php environment (php7.0n)

Modified the configuration file php.ini:
1. Remove the semicolon in front of extension=php_mbstring.dll
2. Remove the semicolon in front of extension=php_openssl.dll
3.extension_dir = "D :\Application\phpStudy\php70n\ext"

cd locates the laravel-v5.1.11 directory, enter and execute the php artisan serve command

Then visit http://localhost:8000/

But it seems that the picture is not the same as expected....
Prompt error: Fatal error Call to undefined function Illuminate Encryption openssl_encrypt

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
世界只因有你

Inside php.ini

//去掉分号:
;extension=php_mcrypt.dll

Then restart the server

迷茫

;extension=php_openssl.dll
Just remove the ; before the above code in php.ini

黄舟

I also encountered it today, and it took me a long time to solve it by climbing over the wall.

1. Copy libeay32.dll and ssleay32.dll from the PHP installation root directory, and overwrite the corresponding files under apache/bin.
2. Restart apache.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!