Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Php.ini file in reseller's account.

  1. #1
    GDufresne is offline Nearly a Glow Sage
    Join Date
    Dec 2013
    Posts
    18

    Default Php.ini file in reseller's account.

    I think it's a simple questions. Is it possible to set a php.ini file, or to set the php limits so that it applies to all the accounts within my reseller's account?

    Specifically, I want to set a higher file upload limit than the the default 2M.

    Or do I have to do this on an account by account basis.

    Thanks in advance.

    GARRY DUFRESNE

  2. #2
    GlowHost-Joseph is offline What's a Guru? I want to be a GlowRu!
    Join Date
    Sep 2013
    Posts
    56

    Default

    Hello Garry,

    You need to create seperate php.ini for each of the account under your Reseller. You can increase upload limit more than 2M by adding the below parameters under each account's php.ini
    ----
    upload_max_filesize = 10M
    post_max_size = 10M
    ----

  3. #3
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    Hello Garry,

    It's possible to set your own php.ini for new accounts, please see "Skeleton Directory" option in WHM or this video: Learning about the skeleton directory

    If you want to increase those limits for all accounts, please open a ticket and we will help you.

  4. #4
    GDufresne is offline Nearly a Glow Sage
    Join Date
    Dec 2013
    Posts
    18

    Default

    Thanks to both of you and David that video is helpful.

    1 - When David says "If you want to increase those limits for all accounts, please open a ticket and we will help you." Does that mean you will make a global change that resets all my accounts . . . or do it on an account by account basis?

    2 - Does GlowHost have a max size limit for the upload file and post size?

    3. My understanding is that if I add the line - "SuPHP_ConfigPath /home/cctset3/public_html/php.ini " - to the .htaccess file in the public_html, it will cause the setting to apply to all sub folders/directories . . . . correct?

    4. Can I use php5.ini or is it better to stay with php.ini ?

    Thanks.

    GARRY

  5. #5
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    1. We can make a simple script to increase the limits for all of your accounts.

    2. We don't have such limit, but optimal value is about 256Mb.

    3. Yes, you are right. Here is the similar thread: http://forums.glowhost.com/knowledge...ders-2581.html

    4. You should use php.ini, php5.ini may cause problems.

  6. #6
    GDufresne is offline Nearly a Glow Sage
    Join Date
    Dec 2013
    Posts
    18

    Default

    Ok . . thanks again and almost there. Another question:

    if I add the above command to the .htaccess file in the skeleton directory, then in a new account install WordPress via Softalicous ( or whatever it's called ) . . . will the .htaccess file be overwritten with the WP install?

  7. #7
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    I'm not sure if adding .htaccess to skeleton is a good idea. The matter is that .htaccess should have an username, so this should be as value and I don't think that it supports any parameters.


    Just for your information, we have our own hooks for Wordpress (and some other scripts), if you installed Wordpress then Softaculous will create a custom php.ini with higher upload_limit and memory_limit values than the default.

  8. #8
    GDufresne is offline Nearly a Glow Sage
    Join Date
    Dec 2013
    Posts
    18

    Default

    Thanks

    Quote Originally Posted by David I View Post
    IJust for your information, we have our own hooks for Wordpress (and some other scripts), if you installed Wordpress then Softaculous will create a custom php.ini with higher upload_limit and memory_limit values than the default.
    And what would those limits be?

    The issue of this thread came up because one of our WP accounts said it had a upload limit of 2M, wouldn't up load a 5M theme. But that site was set up via a cpanel restore.

  9. #9
    GlowHost-John's Avatar
    GlowHost-John is offline Technical Analyst
    Join Date
    Jan 2013
    Posts
    485

    Default

    If thats the case you can set the limit to 32M or 64M for your wordpress accounts and if you want to increase those limits again, please open a ticket and we will help you to increase the limits upto 256M, if needed.

  10. #10
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    Hello Garry,

    We have just decided to increase those limits. Now all shared server have the following limits:
    Code:
    root@server [~]# grep -E "post_max_size|upload_max_filesize" /usr/local/lib/php.ini
    post_max_size = 64M
    upload_max_filesize = 56M
    This should be enough for most of CMS.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 04-21-2011, 07:13 PM
  2. [How To] Create or edit a php.ini file
    By AndrewGlow in forum Knowledge Base
    Replies: 0
    Last Post: 01-23-2011, 10:02 AM
  3. php.ini - What is the best way to create a php.ini
    By salmon in forum General Support
    Replies: 1
    Last Post: 08-05-2010, 09:26 AM
  4. [HOW To] Edit the global php.ini file in Mac OSX
    By Matt in forum Knowledge Base
    Replies: 9
    Last Post: 11-19-2009, 03:12 PM

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14