App not launching

Luckily this is on our test environment.

Browser says:
Internal Server Error

Console reports:
[Fri Mar 04 13:07:02 2016] [error] [client] Can’t use an undefined value as a symbol reference at /Library/Server/Web/Data/CGI-Executables/test/testadmin/testadmin.cgi line 118.
[Fri Mar 04 13:07:02 2016] [error] [client] Premature end of script headers: testadmin.cgi

I have double checked permissions.

Another piece of information: If I reboot the server, it launches successfully.

You may want to make sure your app is not already running when you upload a new version.