+ Post New Thread
Results 1 to 14 of 14
Web Development Thread, Max Upload Limit - PHP in Coding and Web Development; Ok, so I've just set up my first apache server running under windows and I'm very new to all this. ...
  1. #1
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15

    Question Max Upload Limit - PHP

    Ok, so I've just set up my first apache server running under windows and I'm very new to all this. I've configure everything to make it accessible externally and installed PHP V5.2.17 and Ajaxplorer V4.0.4.

    Now, by default, it would appear that PHP limits the maximum upload to 2Mb but this is too small for me, so after some research I have altered the PHP settings to change the maximum upload size but it hasn't worked... Any ideas?

    I have altered the following sections of the PHP file with no luck:
    memory_limit
    upload_max_filesize
    and
    post_max_size

    Ajaxplorer doesn't have any limits, this is set purely by PHP as stated on their website.

    I have uploaded the ini as a text file if this would be any help to anyone to help me and my test PHP can be accessed here. All changes appear to be displayed in here (The values are set quite high as I have tested from 10mb up to 100GB).

    If you would like to login to the ajaxplorer to view it if this might help it can be accessed here
    Username: test
    Password: test123

    I've restarted apache and the server various times after changes were made.

    Any help appreciated - and I'm new to PHP and apache so please consider that in your answers
    Attached Files Attached Files
    Last edited by gtg93; 15th June 2012 at 10:17 AM.

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,817
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    After you made the changes did you restart the services?

  3. Thanks to FN-GM from:

    gtg93 (15th June 2012)

  4. #3
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15
    Thanks for the reply but yes I've restarted the service after every change I've made and I've even tried restarting the server its self with no luck

  5. #4

    Join Date
    Jan 2009
    Location
    Merseyside
    Posts
    35
    Thank Post
    3
    Thanked 4 Times in 4 Posts
    Rep Power
    12
    was you editing php.ini or php5.ini ?

  6. Thanks to s_tu from:

    gtg93 (15th June 2012)

  7. #5
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15
    Quote Originally Posted by s_tu View Post
    was you editing php.ini or php5.ini ?
    PHP.ini - There is no PHP5.ini on the machine (That I put there). There is a PHP5.dll, but not a PHP5.ini.

    I followed the instructions here for installation of PHP on Apache, but I used the latest version of PHP from the PHP website. Obviously references to PHP4 was changed to PHP5 and the relevant files within the PHP5 folder. I am however running Apache 1.3 from here which I realise now is outdated but from what I read at the time, that wouldn't matter.

  8. #6

    Join Date
    Jan 2009
    Location
    Merseyside
    Posts
    35
    Thank Post
    3
    Thanked 4 Times in 4 Posts
    Rep Power
    12
    Just tried Ajaxplorer V4.0.4 on my machine when changing upload limit in php.ini ajaxplorer would not reflect the changes of the upload size. For me reinstalling ajaxplorer would get the new upload limit.

  9. Thanks to s_tu from:

    gtg93 (15th June 2012)

  10. #7
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15
    Many thanks - I will give that a try

  11. #8
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15
    So I've tried reinstalling jaxplorer as mentioned and now it will not load at all - just gives me the "Page Can Not Be Displayed Error" as though the files aren't actually there. The site its self worked just no Ajaxplorer. :/

    I think I'm gonna start from scratch - that way it also gives me a reason to update to the latest version of Apache.

    I'm sure I'll be back if I'm still stuck :P Thanks for your help so far anyway.

  12. #9

    Join Date
    Sep 2011
    Location
    London
    Posts
    30
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    6
    Just a thought- have you tried creating a .htaccess file (if one doesn't exist already) and putting the new values in there?

  13. #10
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15
    Quote Originally Posted by crutchfieldj View Post
    Just a thought- have you tried creating a .htaccess file (if one doesn't exist already) and putting the new values in there?
    I haven't no. I looked at this after reading something about it online but I also read that this was a Linux file and I'm running it under Windows? I've no idea myself to be honest.

    What else would need to be in the file and where would I save it? Sorry if it's a basic question but as I said I'm new to this.

    Cheers

  14. #11
    gtg93's Avatar
    Join Date
    May 2010
    Posts
    306
    Thank Post
    176
    Thanked 40 Times in 32 Posts
    Rep Power
    15
    By the way - the links are currently down because my server is off. I've not finished sorting the ne version out so I thought it pointless to have it running for now.

  15. #12

    Join Date
    Sep 2011
    Location
    London
    Posts
    30
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    6
    Quote Originally Posted by gtg93 View Post
    I haven't no. I looked at this after reading something about it online but I also read that this was a Linux file and I'm running it under Windows? I've no idea myself to be honest.

    What else would need to be in the file and where would I save it? Sorry if it's a basic question but as I said I'm new to this.

    Cheers

    It should work under windows as long as you're using apache. Create a file named .htaccess (no extension, just .htaccess) and put the following in:

    php_value upload_max_filesize 20M <<<CHANGE THIS
    php_value post_max_size 20M <<<CHANGE THIS to slightly more than the first value.

    save it in your sites root directory.

  16. #13

    Join Date
    Aug 2009
    Posts
    246
    Thank Post
    19
    Thanked 15 Times in 14 Posts
    Rep Power
    13
    A lot of the time those values will be ignored in .htaccess. Make a script in your main web directory called info.php with the following code, go to the page and find the PHP Configuration line, it'll tell you which configuration file it's loading and what values it's reading.

    PHP Code:
    <?php phpinfo();?>

  17. #14

    Join Date
    May 2009
    Location
    UK
    Posts
    294
    Thank Post
    64
    Thanked 21 Times in 20 Posts
    Rep Power
    15
    Quote Originally Posted by gtg93 View Post
    By the way - the links are currently down because my server is off. I've not finished sorting the ne version out so I thought it pointless to have it running for now.
    Did you make any progress with this? I stumbled upon this thread because I'm facing a similar situation and plan to post a question about this and some related general questions shortly.

    I'm using xampp which, as you may be aware, has Apache, PHP and MySQL. The project that I'm investigating will involve uploading files (LAN, rather than WAN!) that may be 100MB, 500MB or more.

SHARE:
+ Post New Thread

Similar Threads

  1. Does uploading count towards download limit?
    By Admiral208 in forum Internet Related/Filtering/Firewall
    Replies: 2
    Last Post: 30th November 2011, 04:38 PM
  2. Replies: 2
    Last Post: 26th May 2010, 11:14 AM
  3. Limit Logon VBS Version
    By ChrisH in forum Scripts
    Replies: 29
    Last Post: 17th August 2009, 02:47 PM
  4. Moodle Upload limit 60mb but over 500k hangs
    By Grumbletweezer in forum Virtual Learning Platforms
    Replies: 11
    Last Post: 3rd April 2009, 11:11 AM
  5. Moodle file upload limit
    By Wildebeaste in forum Educational Software
    Replies: 5
    Last Post: 24th September 2007, 01:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •