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

Posted April 10, 2015 5k views

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 ‘DBName’, 'DBUser’ 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!

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.

Submit an Answer
2 answers

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.

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!