Prakhar Thakur
Prakhar Thakur

Reputation: 1229

Laravel Project, 500 internal server error

I developed a simple application in laravel (5.6) everything works fine on my PC (windows 10/ Xamp / PHP 7.1). but when i upload the same project to a VPS running Cent OS it gives

with PHP 5.6 (which is expected)

Parse error: syntax error, unexpected '?' in /home/clarionit/public_html/ambience/c/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233

with PHP 7.0 / 7.1 / 7.2

500, Internal server error.

What I have done so far?

Ask for any more information needed, Please tell me what can be causing the 500, internal server error.

Upvotes: 1

Views: 22044

Answers (1)

Sateesh
Sateesh

Reputation: 1336

Laravel 5.6 requirement should be installed in system

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension

Once run these commands, I hope your problem will resolve.

rm -rf vendor
rm -rf storage/framework/cache/*
rm -rf storage/framework/session/*
rm -rf storage/framework/views/*
rm composer.lock
composer clear-cache
composer install

Upvotes: 5

Related Questions