Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


HELP with single upload file


  • Please log in to reply
6 replies to this topic

#1 MeX

MeX

    Newbie

  • Members
  • Pip
  • 7 posts
  • IP.Board Version:IPB 2.3.x

Posted 13 June 2009 - 08:59 AM

Hi guys need some help with this issue
on my board the single upload file is limeted at only 2MB
I have setted in "global settings" the limited to 0 (unlimited) but it tells me that :Note that single file uploads are also limited by your PHP configuration to 2M
i tried to create a php.ini file and ftp in my uploads and/or root folder but has not worked
have you guys got any suggestions ????
regards
MeX

#2 ismadman

ismadman

    Elite Member

  • Members
  • PipPipPipPip
  • 110 posts
  • Gender:Male
  • Location:Gold Coast Australia
  • IP.Board Version:IPB 2.3.x
  • First Name:Kev

Posted 13 June 2009 - 04:38 PM

You need to create a .htaccess file and place it in your forum root directory .
You may have to edit your global PHP.INI file but it is not necessary in most cases
If you already have an existing .htaccess file
Just place this in the top
(just open notepad ++ or a normal text editor and paste this in and save it as .htaccess)

Options +FollowSymlinks
php_value max_execution_time 1800
php_value memory_limit 100M
php_value post_max_size 10M
php_value upload_max_filesize 100M

Change the values to what you want
This is set to let 100mb upload etc

Go into your ACP and set the permissions for each group
ACP/Management/Manage User Groups/Edit (***) Group
Scroll down till you find
Upload Permissions
And change this to whatever
Remembering that this will create a load on your server
So be careful who you let use it
It should not be set as global
It should be set group based ( Edit all permissions accordingly )
My 2cents and thats the way I would set it

ps : if it still doesnt work ,
edit the php.ini file
I have never needed to as it seems to overide it

Just search for the php.ini file
(normally in the usr/local/lib folder)
Just edit the section

;;;;;;;;;;;;;;;;
; File Uploads;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

But as I said there should be no need to do this
As I have a 100mb limit with this file still set to 2

Hope this helps ;)

Edit :- Just found my old link !
http://php-mysql-art...ize-apache.html

Edited by ismadman, 13 June 2009 - 05:38 PM.


#3 MeX

MeX

    Newbie

  • Members
  • Pip
  • 7 posts
  • IP.Board Version:IPB 2.3.x

Posted 14 June 2009 - 04:45 AM

Fantastic help
thank you so much ismadman
im gonna get stuck into it right now
regards
MeX

#4 ismadman

ismadman

    Elite Member

  • Members
  • PipPipPipPip
  • 110 posts
  • Gender:Male
  • Location:Gold Coast Australia
  • IP.Board Version:IPB 2.3.x
  • First Name:Kev

Posted 14 June 2009 - 07:11 AM

Sorry ....everything else is fine
You need to change the php.ini file in your apache folder not the one I listed above
(too many late nights lol )
Mines here
/etc/php5/apache2/php.ini
but yours may be somewhere else
find that file and Definitely change the upload amount in there and also the htaccess file and you'll be fine ;)

#5 MeX

MeX

    Newbie

  • Members
  • Pip
  • 7 posts
  • IP.Board Version:IPB 2.3.x

Posted 15 June 2009 - 08:39 AM

View Postismadman, on Jun 14 2009, 07:11 AM, said:

Sorry ....everything else is fine
You need to change the php.ini file in your apache folder not the one I listed above
(too many late nights lol )
Mines here
/etc/php5/apache2/php.ini
but yours may be somewhere else
find that file and Definitely change the upload amount in there and also the htaccess file and you'll be fine ;)
Worked fine
only problem my hoster has a allowance of 10mb per single upload so i thought i would be better respect their rules.
Thanks again my friend
Regards
MeX

#6 wHaLe

wHaLe

    Newbie

  • Members
  • Pip
  • 2 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Frank

Posted 07 September 2009 - 05:17 PM

Your htaccess edit gives my server a 500 Internal error.

#7 ismadman

ismadman

    Elite Member

  • Members
  • PipPipPipPip
  • 110 posts
  • Gender:Male
  • Location:Gold Coast Australia
  • IP.Board Version:IPB 2.3.x
  • First Name:Kev

Posted 10 January 2010 - 08:52 PM

Check your permissions for the file you created .
Some servers don't allow some files to be chmod to 777
If this is the case ( Which it shouldnt be as this permission is insecure )
Chmod it to 644 or if it has to be 755 or 775 but never 777
Don't know why you are getting that error but a 500 error is normally a permission error




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users