Help me! I have to modify "php.ini" for my wordpress website!!


In fact, I didn’t know about the Linux as well. But I just know that VPS HOSTING is better than web-sharing hosting.

So i chose yours for my web site in wordpress and I bought one wordpress theme that is about 10M. and i tried to apply the theme… but I see the message below from wordpress

“The uploaded file exceeds the upload_max_filesize directive in php.ini.”

I read many – possibly dozens – of posts on and other sites about this problem. They suggest me that i have to increase my WP upload file size to 32MB with correting php.ini file. Someone change it as the following text :

    max_execution_time = 90
    max_input_time = 300
    memory_limit = 64M
    post_max_size = 32M
    upload_max_filesize = 32M

My question is so simple!

How can I modify the “php.ini” Can this modification resolve my uploading problem?

I can’t even see the where is server and files for my website. Please help me, considering that I don’t about Linux well!

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.

can someone make video tutorial…im noob so much

vim /etc/php5/apache2/php.ini or if you’re using nginx (which I doubt) vim /etc/php5/fpm/php.ini

hit / to search, enter upload_max_filesize and Enter. Get the pointer to the corresponding value that’s set there and hit i. Delete/Backspace away the value and change it to what you want it to be. Then hit Escape. Begin with search until you’ve properly edited the file.

Then hit :wq! which saves the file.

You may wanna service apache2 restart (or nginx depending on which webserver you run).