6 Replies - 3567 Views - Last Post: 17 August 2012 - 05:33 AM Rate Topic: -----

#1 Theaegd  Icon User is offline

  • Hater & Lover

Reputation: -125
  • View blog
  • Posts: 944
  • Joined: 15-August 09

The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 15 August 2012 - 09:42 PM

Alright so I'm trying to test my upload form and it's not working, I'm using the codeigniter framework although I'm pretty sure that it has nothing to do with the problem.

$config['upload_path'] = './uploads/music/';
            $config['allowed_types'] = 'mp3|wav';     
            $config['max_size']  = '0'; //the zero means no limit


that's the config for the upload, which is all well and good according to the codeigniter documentation. But I get this

Quote

The uploaded file exceeds the maximum allowed size in your PHP configuration file.


So, i tried changing my php.ini file.

Quote

upload_max_filesize = 800M
post_max_size = 800M


But it stills showed the same error, so I made a info.php file to see what's up, and it says that even though i change my ini file, the upload_max_size is still only 2M and the post_max_size is only 8M. So then I tried restarting my computer, and also restarting my apache. Neither worked. I've exhuasted all available options that I can think of, any solutions? Thank you, Alex.

Is This A Good Question/Topic? 0
  • +

Replies To: The uploaded file exceeds the maximum allowed size in your PHP configu

#2 creativecoding  Icon User is offline

  • Hash != Encryption
  • member icon


Reputation: 926
  • View blog
  • Posts: 3,205
  • Joined: 19-January 10

Re: The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 15 August 2012 - 11:09 PM

That's weird. Can you post your phpinfo(); here, as well as your php.ini?
Was This Post Helpful? 0
  • +
  • -

#3 Theaegd  Icon User is offline

  • Hater & Lover

Reputation: -125
  • View blog
  • Posts: 944
  • Joined: 15-August 09

Re: The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 15 August 2012 - 11:44 PM

Here is the info.php http://pastebin.com/wncwy5J6
Here is the php.ini http://pastebin.com/1kkJM38z

Any ideas?
Was This Post Helpful? 0
  • +
  • -

#4 creativecoding  Icon User is offline

  • Hash != Encryption
  • member icon


Reputation: 926
  • View blog
  • Posts: 3,205
  • Joined: 19-January 10

Re: The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 15 August 2012 - 11:58 PM

What is the location of the php.ini file? Are you sure you're editing the right one (/etc/php5/apache2/php.ini)?
Was This Post Helpful? 1
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6052
  • View blog
  • Posts: 23,487
  • Joined: 23-August 08

Re: The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 16 August 2012 - 02:56 AM

Read the manual entry for post_max_size
Was This Post Helpful? 0
  • +
  • -

#6 Theaegd  Icon User is offline

  • Hater & Lover

Reputation: -125
  • View blog
  • Posts: 944
  • Joined: 15-August 09

Re: The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 16 August 2012 - 09:00 AM

Thanks creativecoding, I was editing the php.ini that came up through my HUD search, and it turned out to be the wrong one in my lampstack directory. But changing the one you listed and then restarting my apache fixed it perfectly. Thanks a lot.
Was This Post Helpful? 0
  • +
  • -

#7 vaayaaedu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 17-August 12

Re: The uploaded file exceeds the maximum allowed size in your PHP configu

Posted 17 August 2012 - 05:33 AM

writing php.ini file or httpd in the root folder of website might help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1