Results 1 to 8 of 8

.htaccess and php upload limits

This is a discussion on .htaccess and php upload limits within the Troubleshooting forums, part of the vBSEO SEO Plugin category; hi guys, i need to increase the possibility of my user to put into my board a larger files in ...

  1. #1
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6

    Question .htaccess and php upload limits

    hi guys, i need to increase the possibility of my user to put into my board a larger files in the attachments ...

    i found this code to do this thing (i wanna put 30 MB max size):

    PHP Code:
    php_value upload_max_filesize 30M
    php_value post_max_size 30M 
    and someone have told me that i need to put this code into the .htaccess file that you gave me withe the SEO ...

    this is my .htaccess:

    PHP Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /

    #RewriteCond %{HTTP_HOST} !^www\.fniv\.it
    #RewriteRule (.*) http://www.fniv.it/board/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteCond 
    %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA
    then i need to know if there is any trouble about this and also i need a tip where i can put that code into my file.

    thanks

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    You can put it just at the beginning of your .htaccess
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    Quote Originally Posted by Mert Gökçeimam View Post
    You can put it just at the beginning of your .htaccess
    OK thanks Mert

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    if you have root/ssh access to your server, you're better off editing those values in php.ini

  5. #5
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    Quote Originally Posted by briansol View Post
    if you have root/ssh access to your server, you're better off editing those values in php.ini
    so i should put that code into the php.ini?

  6. #6
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    Those values already exits on your php.ini , if you have root access you should ediit your php.ini and change those settings to your desired values.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  7. #7
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    thanks Mert, however i spoke with my domain manager and he told me that with these huge files i can have many troubles with my board ... seems that should slow down my mysql ... can you confirm that?

  8. #8
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    If you store attachments within database , surely it causes a problem. But if you server these files within file system it shouldnt slow down mysql
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Similar Threads

  1. Replies: 5
    Last Post: 05-12-2009, 03:29 PM
  2. Blank Pages after htaccess upload
    By paresy in forum Troubleshooting
    Replies: 3
    Last Post: 06-11-2008, 11:09 AM
  3. .htaccess upload problem
    By DaMa in forum URL Rewrite Settings
    Replies: 2
    Last Post: 05-10-2007, 12:45 PM
  4. can't upload .htaccess
    By swa in forum Troubleshooting
    Replies: 7
    Last Post: 01-06-2006, 04:03 PM
  5. how to upload .htaccess file
    By ang2el in forum Troubleshooting
    Replies: 7
    Last Post: 11-11-2005, 02:01 PM

Tags for this Thread

Posting Permissions

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