1

I have a laravel project up and running in my localhost. but when i upload all files to the server. it gives me error: The built-in function in laravel goes undefined.

FatalErrorException in Encrypter.php line 71: Call to undefined function Illuminate\Encryption\openssl_encrypt()

How can i solve this?

2 Answers 2

1

You should edit php.ini file and uncomment an extension. For example, change this:

;extension=php_openssl.dll

to this:

extension=php_openssl.dll
Sign up to request clarification or add additional context in comments.

1 Comment

I could not find that php.ini file in server. where it actually is?
1

just edit php.ini and uncomment this like

;extension=php_openssl.dll chnaged to extension=php_openssl.dll

3 Comments

I could not find that php.ini file in server. where it actually is?
create custom php.ini file
@micky if you can access a terminal on the remote server run php -i | grep php.ini (or if it's windows the equivalent on windows). It should tell you where the loaded php.ini is located (if any)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.