Unable to Save and close my wordpress php file on my console

I am trying to install wordpress and I’ve gotten to the point in step three of the tutorial “How To Install Wordpress on Ubuntu 14.04” where I used the command: nano wp-config.php to open the text file and edit the ‘DB_Name’, ‘DB_User’ and ‘DB_Password’. But now it isn’t letting me save and close the php file so I can continue onto the next step of the tutorial. I’ve tried several commands and nothing seems to work. I just need to know what I’m doing wrong or what I’m not doing so I can continue to get wordpress installed.

Any help would be fantastic, thanks so much!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you for the quick response. After several attempts the ctrl + c worked. I’m not sure why it wasn’t working, but for now it is and hopefully it continues to do so.

Thanks again for all of your help!

To close an edit document with nano is ctrl + c, then will ask you to save the changes or not, so just press Y to say yes and Enter, then you are ready to go.