1

I'm having some major issues deploying a website I have built in Laravel which is a technology I am still learning.

I built the site on a temporary subdomain (new.example.com) on a brand new server. I have now come to deploy it so I removed the subdomain mapping in cPanel and changed the primary domain's document root to point Laravel's /public folder as described here.

This shows what I have done:

new.example.com - /public_html/mainsite/public
www.example.com - /public_html/mainsite/public

Now when I try to access www.example.com I get the error message:

No input file specified.

I saw this question but it doesn't seem to match what I have in my .htaccess file. I appear to have run out of talent to be able to fix this problem on my own and need help.

My questions are:

  1. How can I resolve the error mentioned above?
  2. Is there a better way to deploy Laravel sites to cPanel environments?
  3. Have I created an XY problem for myself and I should be looking at something else to get this to work?
2
  • Did you deploy it on a shared hosting that incorporates CPanel? Commented Feb 9, 2018 at 20:18
  • No its a dedicated server that came with cpanel installed. Commented Feb 9, 2018 at 21:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.