Increasing PHP max upload file size. Complete Novice

Asked by James Edge

Hi,

I have installed Xibo's latest version on the latest version of Ubunto (Jan 2011) and I have been really impressed with how easy it was to set up. Especially as I have no previous Linux knowledge. We currently have a Ubunto PC used as the server and a Windows XP based PC with the Xibo client software and a 42" TV as the display.

I have been spending my time time adding web pages, RSS feeds and mostly powerpoint files created in Office 2007. The main issue I have is the measly 2Mb max upload limit.

I have read in these forums that it is not Xibo but the PHP.ini file installed with Apache which is the cause of this. Now when I installed Xibo on Ubuntu I followed your installation guide typing code into the terminal window in Ubuntu. Without the concise and simple step by step layout of your install notes I would not have been able to complete the installation.

Is there any resource that you can point me to where I can find the information I need to increase the max file upload size of PHP.ini file so I can upload my larger than 2Mb powerpoint files. I have tried following some of the other threads but it seems they require a greater understanding of the Linux systems and php itself.

I currently don't know where or how to access the php.ini file. Is this through the terminal? Is is through Apache?

We currently use the Ubuntu System as a localhost webserver whereby we access the server via our local subnet as we do not have the capabilities to use it as a webserver as we are behind a site wide proxy server that is located and maintained off-site by our local educational authority (We are a Primary School in Birmingham, England using a Windows AD domain st-annes.bham.sch.local). The proxy server filters the outbound web access and is required to access the internet

I don't even know If you need to know this.

Any help is much appreciated

Kind Regards

James Edge
I.T Co-ordinator
St Annes RC Primary School
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Harrington
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

I'm on my phone at the moment so writing full instructions is tricky.

You need to edit /etc/apache/php.ini as per the instructions in the FAQ. Add any entries that aren't there already.

Then reload apache
/etc/init.d/apache restart

Job done

Alex

Revision history for this message
Brian Mathis (bcmathis) said :
#2

To change the upload size from a terminal, use nano to open /etc/php5/apache2/php.ini

     - sudo nano /etc/php5/apache2/php.ini

Search for the following lines by pressing Ctrl + W

     - upload_max_filesize
     - post_max_size

Change the default 2M/8M to whatever limit you want in MB. I.e. if the largest file you want to upload is 30MB, then you line should look like this:

     - upload_max_filesize = 30MB
     - post_max_size = 30MB

After making your changes, press Ctrl = O (not zero) to write the file. Nano will ask what name you want to write, press enter to accept the default. Next, exit Nano by pressing Ctrl + X.

Now restart Apache so the changes take effect.

     - sudo service apache2 restart

Revision history for this message
Alex Harrington (alexharrington) said :
#3

Cheers Brian. My recollection of where the ini file is was full of fail.

Revision history for this message
Brian Mathis (bcmathis) said :
#4

@James - to make things a bit easier, I rewrote the instructions and added screenshots. You can view it on my blog: http://www.brianmathis.net/2011/02/10/howto-change-upload-limit-in-php/

@Alex - no problem :)

Revision history for this message
Matthew Holder (matt-mattmole) said :
#5

Thanks Brian.

I've also copied the instructions to the FAQ

https://answers.launchpad.net/xibo/+faq/510

Matt

Revision history for this message
James Edge (j4mesedge) said :
#6

Hi Alex,

Cheers for the quick reply

Many Thanks,

James Edge

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #144859]: Increasing PHP max upload file size. CompleteNovice
> Date: Thu, 10 Feb 2011 16:01:00 +0000
>
> Your question #144859 on Xibo changed:
> https://answers.launchpad.net/xibo/+question/144859
>
> Status: Open => Answered
>
> Alex Harrington proposed the following answer:
> I'm on my phone at the moment so writing full instructions is tricky.
>
> You need to edit /etc/apache/php.ini as per the instructions in the FAQ.
> Add any entries that aren't there already.
>
> Then reload apache
> /etc/init.d/apache restart
>
> Job done
>
> Alex
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/xibo/+question/144859/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/xibo/+question/144859
>
> You received this question notification because you are a direct
> subscriber of the question.

Revision history for this message
Best Alex Harrington (alexharrington) said :
#7

Marking as Answered.

Revision history for this message
James Edge (j4mesedge) said :
#8

Thank you so very much, your answer was exactly how I needed it to be and I only had to wait half an hour for the reply! All members of staff here who use the Xibo software really appreciate the help.

Kind Regards
James Edge
St Annes RC Primary school