By info355111
I followed this tutorial (https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6) and everything worked perfectly.
However when I want to change my site’s root, I get the message ‘no input file specified’.
Compared to the tutorial I change 2 lines: location / { root /home/username/www/laravel/public; … } And location ~ .php$ { root /home/username/www/laravel/public; … }
I want my root to be there because I want to be able to access my webapp with ftp.
Any ideas what’s going wrong? Should be something small I guess?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
any one got answer for this because i m also in a same issue “no input file specified”
Please pastebin your nginx config.Try looking in the error logs for pointers on what’s going on: <br><pre>tail /var/log/nginx/error.log</pre>
thanks for reply @kamaln7
issue was in php-fpm and nginx configuration file.
root path was not specified where my all php files was stored…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
