Trouble saving and closing on my digital ocean console

Posted April 27, 2015 5.1k views

So I’m trying to increase the max file size on my wordpress site and I’ve opened: “/etc/php5/apache2/php.ini” and made the needed changes but now when I try to save and exit (control x) it just says “recording” at the bottom of the console window.

I’ve never had this issue before and no matter what I do I am unable to get out of that editing screen. I don’t want to do a hard reboot or anything because I’m not sure if it will save my changes. Can anyone advise me on what to do?

  • Which text editor are you using to edit your php.ini file?

  • Thank you for responding to my question.

    I’m fairly new to the whole development side of things so I hope I answer your question correctly. Right now I’m using the digital ocean console for all of my editing. If that’s not what you’re inquiring about, I apologize. Like I said, I’m really new to this side of things.

    I managed to increase the max file size by typing in the command: sudo nano /etc/php5/apache2/php.ini
    Then once I found “uploadmaxfilesize” I replaced the “2M” with the following lines:

    uploadmaxfilesize = 100M
    postmaxsize = 100M
    maxexecutiontime = 300
    then restated the Apache 2 server.

    It worked, but I never did that before and I’m not sure if that is the best way to accomplish what I want. Or is how I did it okay?

  • Which editor are you using? vi?

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

I would recommend using SSH to connect to your droplet, I would use the web console only for emergency things not for daily tasks: