I mounted Laravel 5.0 appropriately by cloning in git, and also composer install, once I ran it to internet browser http://localhost/laravel/public/, it says

"Whoops, looks favor somepoint went wrong."

I did not make any alters after composer install.

You are watching: Whoops, looks like something went wrong.

Update after copy the env.example to .env this is result

RuntimeException in compiled.php line 5599: OpenSSL expansion is compelled.


*

*

The logs are situated in storage catalog. If you want laravel to screen the error for you quite than the cryptic "Whoops" message, copy the .env.example to .env and also make certain APP_ENV=neighborhood is in there. It need to then present you the comprehensive error messaging.


*

This is happening bereason tright here is a field in .env file called, APP_KEY, which is empty now, we require some random essential for this variable.

Follow these steps to eliminate this trouble.

1) .env.instance to .env

2) Go to your root brochure in your command also prompt (If you are using windows)/terminal (If you are utilizing MAC or LINUX) wbelow you have installed laravel project/records and run complying with command

php artisan key:generate

and also then run your job.It"s all done.


*

Give write permission to storage and also bootstrap/cache directoriesRename .env.instance file to .envIf you acquire "RuntimeException... No sustained encrypter uncovered. The cipher and / or crucial size are invalid." error, sheight the application and also generate essential from command also line "php artisan key:generate"If your acquire "OpenSSL expansion is required" error, permit the openssl extension by opening php.ini in php installation folder and also uncommenting the line extension=php_openssl.dll by rerelocating the semicolon at the beginning
Share
Follow
edited Jul 20 "15 at 16:04
answered Jul 20 "15 at 14:22
*

YosephYoseph
2,22811 gold badge1111 silver badges1717 bronze badges
2
Simply the ideal answer for this question.
–user379888
Jan 15 "18 at 15:40
Add a comment |
10
Follow these measures to this difficulty for all versions of your laravel favor laravel 5.5

Step: 1

Rename file .env.example to .env

Step: 2

Go to your Command also prompt/terminal and also adjust path to job catalog.Geneprice essential for your application. This is unique for eincredibly application so don"t make copy paste.

Just run the following command. Key will automatically save to your .env file

php artisan key:generate
Share
Follow
answered Dec 25 "17 at 3:03
Rahul HirveRahul Hirve
9431111 silver badges1818 bronze badges
0
Add a comment |
6
Try to type in cmd:php artisan key:generatethe problems will be solved


Share
Follow
answered Nov 21 "16 at 7:45
Ethicalman Gopal BogatiEthicalmale Gopal Bogati
8111 silver badge22 bronze badges
1
Add a comment |
3
Simply form in terminal in your command prompt go to laravel catalog route and form php artisan key:generate then key will be produced. Paste that key in config/app.php vital variable. Your trouble will certainly be fixed. I likewise did favor that inorder to deal with the problem...


Share
Follow
edited Jan 15 "18 at 1:19
YakovL
5,5081010 gold badges5050 silver badges7474 bronze badges
answered Nov 3 "15 at 5:16
pavanipavani
4144 bronze badges
Add a comment |
2
Please, attempt to uncover somepoint like:

./website/config/app.php and also collection "debug" => env("APP_DEBUG", false) as "true" "debug" => env("APP_DEBUG", true)
Share
Follow
edited Jan 4 "17 at 23:08
Hristo Eftimov
9,8231111 gold badges4646 silver badges7272 bronze badges
answered Jan 4 "17 at 22:08
konstantin shevchenkokonstantin shevchenko
3166 bronze badges
0
Add a comment |
2
Try this:

suexecute chvery own -R www-information pathto/.env

BECAUSE IF After Creating the .env file or/and Generating the Key by

php artisan key:generatesimply as defined formerly by others, and also it still persistsTry the following:

ls path/.env -alif apache does not have accessibility to it by displaying

www-data

as one among the customers i suppose like

-rw-rwx--- 1 www-information rootuser 575 Nov 4 06:34 pathto/.env

This as proclaimed above need to solve it. Especially as soon as your laravel.log file keeps complaining that the essential hasn"t been created or included.

sucarry out chown -R www-information pathto/.env


Share
Follow
answered Nov 4 "17 at 7:52
lightuplightup
54477 silver badges1717 bronze badges
Add a comment |
2
Go to task magazine then follow below procedures.

step 1: rename file .env.instance `to .envmv .env.instance .env (for linux)

step 2: php artisan key:generate
Share
Follow
edited Aug 23 "19 at 4:59
answered Aug 22 "19 at 17:27
Indrajeet SinghIndrajeet Singh
2,7752222 silver badges2424 bronze badges
1
Add a comment |
1
In Laravel 5.5, I had actually the exact same issue

.envwas included to .gitignore.

So Either remove ".env" it from .gitdisregard file.

or include it forcetotally

git include .env -fAnd Deploy it. It will certainly work-related.

If above does not assist. Try generating the Key Again

php artisan key:generate
Share
Follow
answered Aug 31 "17 at 8:26
user7762065user7762065
4711 silver badge22 bronze badges
1
Add a comment |
1
Check, which PHP variation is running on your WAMP,XAMPP or LARAGAN server. It have to be greater than 7.0.

Go to task folder prefer "C:wampwwwlaravel". Open the file name of .env.example. (By using any editor choose sublime, notepad++ and so on).Save as a .env

Then run your LARAVEL routine. Hope it will work-related.

You have the right to inspect whether just how to adjust the PHP version in your present server. xampp, wamp


Share
Follow
answered Nov 6 "17 at 16:35
Nadimuthu SarangapaniNadimuthu Sarangapani
15111 silver badge33 bronze badges
Add a comment |
1
I renamed the .env.example to .env and also encertain

APP_ENV=regional which proved me the actual error. It was regarded vital.Then I issued

php artisan key:geneprice command also and it functioned


Share
Follow
answered Sep 13 "18 at 4:23
Nava BogateeNava Bogatee
99799 silver badges1515 bronze badges
Add a comment |
1
For home windows customers, make sure apache"s ssl_module is checked.

Please check out picture below:

*


Share
Follow
answered Oct 12 "18 at 5:12
maqsmaqs
39433 silver badges55 bronze badges
Add a comment |
1
First run command composer install

Then inspect for .env.example and also .env documents in your project folder.

.env file is your primary configuration file for database and also .env.instance is backup file for .env file.

.env.instance file will certainly always be tbelow yet sometimes .env file have the right to be lacking.just copy the .env.instance file and paste in the very same project folder with filename .env .

now run php artisan key:geneprice command. this will certainly geneprice vital for your application.


Share
Follow
edited Feb 12 "20 at 7:11
neighborhood wiki
2 revsHitsa
Add a comment |
0
You can copy these files from template "blog" laravel

*


Share
Follow
edited Nov 23 "16 at 2:53
Zheyuan Li
60.1k1717 gold badges149149 silver badges210210 bronze badges
answered Nov 23 "16 at 2:37
tandry syawaludintandry syawaludin
4333 bronze badges
1
Add a comment |
0
make sure app/storage dir permission is set to 755 and owner is collection to admin. and also examine permission and also owner of files and dir in app/storage too


Share
Follow
answered Mar 29 "17 at 11:03
user889030user889030
3,05422 gold badges3434 silver badges4444 bronze badges
Add a comment |
0
Create a new .env file and also copy the code of .env.example and also run the command -> php artisan key:gen


Share
Follow
edited Nov 1 "17 at 8:03
Ajay Makwana
2,08011 gold badge1515 silver badges3030 bronze badges
answered Nov 1 "17 at 7:36
Hari PudyalHari Pudyal
6133 bronze badges
Add a comment |
0
Rename the .env.example to .envGo to bootstrap=>application.php and also uncomment $app->withEloquent();Make certain that APP_DEBUG=true in .env file.Now it will certainly work.
Share
Follow
answered Jan 7 "20 at 10:06
Nasir KhanNasir Khan
6166 bronze badges
Add a comment |
0
This functioned for me:

Go to the .env file and be certain APP_DEBUG=trueHere (in .env file) change reemlocation 127.0.0.1 for localhold for inspect if your DB credential are corrects. Go to the config folder and also carry out. the action #2.
Share
Follow
edited Apr 30 "20 at 3:40
SherylHohmale
13k1616 gold badges7373 silver badges7979 bronze badges
answered Apr 30 "20 at 1:30
Alexander AbreuAlexander Abreu
111 silver badge11 bronze badge
1
Add a comment |
-1
in procedure of uploading env file to cpanel,

periodically the dot is taken out and also this may elevated the error.

this solution worked for me.

See more: You Got My Hopes Up And Dashed Them Quite Expertly, Sir, You Raised My Hopes

go to your cpanel and rename env file to .env


Share
Follow
edited Feb 22 at 20:09
Abilogos
3,46322 gold badges1212 silver badges3232 bronze badges
answered Feb 22 at 11:09
Emmanuel Iyen-MediatreesEmmanuel Iyen-Mediatrees
1566 bronze badges
Add a comment |
Highly energetic question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps safeguard this question from spam and also non-answer task.

Not the answer you're looking for? Browse other concerns tagged php laravel-5 or ask your own question.


The Overflow Blog
Featured on Meta
Visit chat
Linked
9
How do I change the default route of PHP in XAMPP?
1
How to downgrade Wampserver PHP and also Apache?
Related
1
"Whoops, looks favor something went wrong." Laravel 4.1
0
Error with paths in Laravel 5.0
2
Whoops, looks like something went wrong
2
Laravel Installation in Windows without XAMPP
0
Whoops, looks favor something went wrong. LARAVEL ERROR
0
Laravel 5.7 Installation Issue
Hot Network-related Questions more hot inquiries
Concern feed
Subscribe to RSS
Inquiry feed To subscribe to this RSS feed, copy and also paste this URL into your RSS reader.


lang-php
Stack Overflow
Products
Company
Stack Exreadjust Network-related
website design / logo © 2021 Stack Exreadjust Inc; user contributions licensed under cc by-sa. rev2021.9.16.40224


Stack Overcirculation works best via JavaScript allowed
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exadjust have the right to save cookies on your gadget and discshed information in accordance via our Cookie Policy.