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

vincej's avatar
Level 15

Error: No input file specified.

HI, I have just cloned my application from Github into a Ubuntu server on Digital Ocean. Github is the production server. I have set the key in the .env, and I set the owner and group to www-data. My application files are set to 755. However, when accessing the application all I am getting is:

No input file specified

I have never had this before. I have had a look on SO and have not seen anything yet which applies.

Any ideas? Many thanks !

EDIT I tried to restart Apache and got:

Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. failed!

Where in the heck do I find:

See "systemctl status apache2.service" and "journalctl -xe" for details.

0 likes
3 replies
Snapey's avatar

systemctl status apache2.service

you run this as a command

Snapey's avatar
Snapey
Best Answer
Level 122

Did you set a virtual host to point to the laravel public folder?

vincej's avatar
Level 15

HI Ya @snapey ! As usual you come up with the right idea. But unfortunately it was not as simple as configuring a host file or a virtual host.

Many, Many Thanks to @sinnbeck, I only recently adopted Github. My github repo is called Kidsclub, but the DO production server project root is "html". This Apache's default when you install by hand which I did several months ago pre Github. So when I cloned the repo, this created a conflict which resulted in the mother of an avalanche of problems involving the SSL certificates and all kinds. So - it now 1:30AM, and screw it, I can't fix it so I just reached for the DO restore from backup.

So - going forward I need to integrate Github into the production server, and I guess the more intelligent thing would be to change the various hosts files to kidsclub first before a Github clone. If you know of an even more clever approach, please let me know ! It has been a major pain.

As always Many Thanks Cheers !!

Please or to participate in this conversation.