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

April 10, 2015 3.8k views
PHP WordPress

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!

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!

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!