Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 02, 2015 3:26 pm 
Offline
Senior Newbie

Joined: Sat Oct 04, 2014 7:31 pm
Posts: 9
Hi Folks,

I just set up a Linode and configured it per the 1G guide, after installing Wordpress I found I couldn't upload a theme due to the following error:

The uploaded file exceeds the upload_max_filesize directive (theme is 3MB)

I edited this category in /etc/php5/cli/php.ini:

Code:
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 200M


But it is still giving me the same error... I guess this is something silly that I'm missing, but would appreciate any insights!


Top
   
PostPosted: Sat May 02, 2015 4:02 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Did you restart Apache?

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Sat May 02, 2015 4:06 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
I think you'll find '/etc/php5/cli/php.ini' only affects running php via the command line (CLI). There should be a /etc/php5/apache2/php.ini or /etc/php5/cgi/php.ini file, which you may have more luck with. Oh, and yes - restart Apache after making the changes.

-Chris


Top
   
PostPosted: Sat May 02, 2015 4:42 pm 
Offline
Senior Newbie

Joined: Sat Oct 04, 2014 7:31 pm
Posts: 9
Thanks guys - I think Chris nailed it as there was another php.ini file that I changed and got a new error. This for file writing permissions - so I think that worked and now I'm going to figure the other one out.

Getting a new error makes me happy... Is that weird?


Top
   
PostPosted: Sat May 02, 2015 6:48 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2015 8:12 pm
Posts: 101
You might want to consider using PHP-FPM (Debian package name php5-fpm), in which case the file to modify would be
Code:
/etc/php5/fpm/php.ini

and you don't have to restart Apache but php-fpm instead.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group