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

guc43's avatar
Level 2

Can't deploy Laravel 5.1 to subdomain

Hey Guys,

i am running a working website build with laravel on yoursport-potsdam.de. Now i have changed a lot in the last months and want to test my new code on a subdomain dev.yoursport-potsdam.de, so i can update my production after that.

i just uploaded everything but i am just getting a blank page without any errors. i have set the permission to 777 but i cant get it to work. i hope someone can help me. On my local machine everything is working fine.

best regards, tino

0 likes
10 replies
bobbybouwmann's avatar

Do you use Apacke or Nginx? Maybe you use Forge?

Can you tell us how you have setup your application with your subdomain?

transpalette's avatar

You need to have a different configuration for your subdomain, where you would set your DocumentRoot to be in a different folder (your dev site). Can you post the configuration for your normal domain ?

guc43's avatar
Level 2

My folderstructure looks like:

public_html/laravel/ (here is my production site www.yoursport-potsdam.de, this is still working)

public_html/dev/ (here is my new Version i want to test. DocumentRoot of Domain is showing on /dev/public/)

Can u tell me what configuration do you need? As is said i am pretty new to this whole thing :/

transpalette's avatar

Okay I need the Apache config file, located in /etc/var/apache2/sites-available/yoursport-ptsdam.de.conf (probably). But is your subdomain set correctly ? Does it point to your server ?

guc43's avatar
Level 2

Subdomain is working if i upload a simple index.html with some content. Favicon is loaded aswell. I think there is a php error, but i cant get it to show. Debug in .env is set to true.

transpalette's avatar

That's why I need your original Apache configuration file for you full domain ... Please upload it and we can then try to figure that out.

guc43's avatar
Level 2

Ok i will do it this evening. I am not at home right now.

guc43's avatar
Level 2

Fixed the problem, i had a bug in my code that was not working on the server. i added

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

to my code to see errors.

ty for help

Please or to participate in this conversation.