Report this

What is the reason for this report?

Unable to open primary script. cannot move it from etc/nginx/html.

Posted on June 7, 2015

Hi, i’ve followed this guide:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7

i believe i’ve followed it correctly. i had it working (step 5 worked), then i wanted to change the default directory (for the websites) to /usr/home/Solder. but when i try to access info.php which is in that directory (as a test) i get no input file specified. i check the error logs for nginx and it shows:

FastCGI sent in stderr: "Unable to open primary script: /etc/nginx/html/info.php (No such file or directory)"

i did have to change Doc_Root in php.ini to the location for step 5 to work, i have changed that to usr/home/Solder now. its changed to that directory and i dont know why. it wouldnt be file permissions, because it’s showing an entirely different path

i am quite fresh with Linux, so forgive me if its an easy fix

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

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