Hi, i’ve followed this guide:
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
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!
This comment has been deleted
Post your config file, e.g. /etc/nginx/sites-available/default if you use this. Then it is possible to see what you did wrong.
I believe you did that wrong (in config file e.g. /etc/nginx/sites-available/default) :
Change root:
root /usr/home/Solder
To create a new info.php do this:
touch /usr/home/Solder/info.php
nano /usr/home/Solder/info.php
Paste this (right click):
<?php
phpinfo();
?>
Restart your Server service nginx restart
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.