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!
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.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.