Results 1 to 2 of 2

Thread: php.ini - What is the best way to create a php.ini

  1. #1
    salmon is offline Certified Glow Sage
    Join Date
    May 2008
    Posts
    30

    Default php.ini - What is the best way to create a php.ini

    What is the best way to create a php.ini

    I want to change the sites ability to upload a file larger then 8M

    Should I just create a blank file php.ini, place teh following in it and upload to root?

    upload_max_filesize = 20M

  2. #2
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,960

    Default

    Hi Salmon

    Yes, that is correct. Upload it to public_html or any subdirectory that you want those settings to apply to.

    If you want it to work for the entire site, you can do this:

    Add the following line to the .htaccess file:

    suPHP_ConfigPath /home/cpuser/path/to/php.ini

    Then the php.ini will be used by all of that account's scripts / subdirs by default.

    It prevents the need for many php.ini files.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

Similar Threads

  1. [HOW To] Edit the global php.ini file in Mac OSX
    By Matt in forum Knowledge Base
    Replies: 9
    Last Post: 11-19-2009, 02:12 PM
  2. Referencing a PHP Class inside a PHP Include
    By rickpugh in forum Programming Talk
    Replies: 1
    Last Post: 01-22-2006, 08:30 AM

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