0

it worked fine when the file structure was:

/bin
....
....
/public_ftp
/public_html/app
/public_html/bootstrap
...
/public_html/public
....
....
/www

but when i changed it to:

/bin
/laravel/app
/laravel/bootstrap
....
....
/public_ftp
...
/public_html/css
/public_html/js
/public_html/index.php
....
....
/www

and i also changed index.php to:

$app = require_once __DIR__.'/../laravel/bootstrap/app.php';
require __DIR__.'/../laravel/bootstrap/autoload.php';

but when i opened index.php it shows

Whoops, looks like something went wrong.

laravel log

production.ERROR: exception 'RuntimeException' with message 'The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.' in /home/fabitzza/laravel/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:43

this error was not there before when every this was in public_html

codenut
  • 683
  • 1
  • 7
  • 21
  • Check your current PHP version and required PHP version for current Laravel. – Md. Abutaleb Dec 19 '16 at 17:46
  • php version is 5.6 – codenut Dec 19 '16 at 17:48
  • And whare is your laravel version ? – Md. Abutaleb Dec 19 '16 at 17:49
  • "laravel/framework": "5.3.*" – codenut Dec 19 '16 at 17:50
  • You must required 5.6.4 or above php version for laravel 5.3 – Md. Abutaleb Dec 19 '16 at 17:53
  • AES-256-CBC requires 32 character long key(on .env). But "SomeRandomString" only have 16 characters. So run `php artisan key::generate` command to get a 32 characters long key – Ravisha Hesh Dec 19 '16 at 17:54
  • actually its not the version problem because it worked before when every this was in public_html director problem occurs when i moved it to different directory. I have mentioned in my question above – codenut Dec 19 '16 at 17:55
  • [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "key:" namespace. Did you mean this? key – codenut Dec 19 '16 at 17:56
  • Suggestions for your future error: Try to copy and paste part of your error log to Google rather than asking SO straightaway. I know that you're a beginner, so this is the best way to learn : Google, after hours of searching, if still stuck, use SO. It's most likely every errors that you have and you will have, somebody already asked out there. It will be better to research first, so you won't be judged by SO people and your future employer as a lazy developer :) – Imam Assidiqqi Dec 20 '16 at 12:07
  • ok i will keep that in mind. – codenut Dec 20 '16 at 13:13
  • @codenut great! Welcome to SO, I'm upvoting so this question will be in the neutral score again. – Imam Assidiqqi Dec 21 '16 at 01:09

1 Answers1

0

Run this command

php artisan key:generate

and the clear config cache using

php artisan config:cache

Hope this will work!

Saumya Rastogi
  • 13,159
  • 5
  • 42
  • 45