0

I need to run the project using cpanel. all the database detail are changed and up-to-date, also I have manually imported the database to cpanel.

What I have done so far:

uploaded the whole project to the server via filezilla.
then i created a .htaccess file with following content so every request will go to public folder

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

still I have a message saying Whoops, looks like something went wrong.

3
  • Try change config/app.php -> 'debug' => true to get more info. Or maybe laravel.log file. Commented Jan 19, 2017 at 15:08
  • well now it says The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. and since I am in cpanel i cannot run php artisan key:generate Commented Jan 19, 2017 at 16:13
  • @Regolith If your host doesn't offer SSH access, get a new one. Commented Jan 19, 2017 at 16:42

1 Answer 1

1

You can manually add a valid key. In config/app.php:

'key' => env('APP_KEY', 'MyKeyWith32Chars'), //<--- ADD here a key with 32 random chars 
'cipher' => 'AES-256-CBC',

Optionally, add in your .env:

APP_KEY=MyKeyWith32Chars
Sign up to request clarification or add additional context in comments.

Comments

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.