Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ZStrgar's avatar

Deploy application on hosted server

Hi!

I'm new to the Laravel and I have problems with deploying the app on my server. When I work on xampp it's all fine but when I push the application to server I recive the error 500. For index.php in root folder I used artisan code.

Also .env file set to APP_DEBUG=false and APP_ENV=production.

Regards, Žiga!

0 likes
9 replies
jrean's avatar

Can you please post the error trace?

ZStrgar's avatar

Server didn't create error_log file and also laravel didn't create one under storage/logs. I have allready sent message to my host provider if It's possible to host Laravel application on their servers.

Site link: http://zigastrgar.com/laravel

jrean's avatar

APP_DEBUG=true just for the query then APP_DEBUG=false and show the error trace.

ZStrgar's avatar

Well I've set permssion 777 to all files and subfolders of storage also tried with changed .env to APP_ENV=local, APP_DEBUG=true. Same result :(

taijuten's avatar

What OS is the host using? Windows or Linux based?

Try putting a blank / fresh Laravel install on there to check if it's application-based error or not.

ZStrgar's avatar

Server is Linux based with Apache/2.2.26

taijuten's avatar
Level 10

I'm convinced that it's one of the following issues, as I've had the same before:

  • Storage doesn't have full write access
  • htaccess isn't in /public
  • binding isn't set to /public
  • php version on the server isn't high enough (needs to be 5.4 or above)
ZStrgar's avatar

Checked again all of the above and current version of PHP is 5.3.28. I will contact hosting provider to change it for me because I don't have permission :(

Please or to participate in this conversation.