Results 1 to 8 of 8

Thread: editing php.ini

  1. #1
    Join Date
    Dec 2004
    Location
    New Jersey
    Posts
    86

    editing php.ini

    Gentlepeople,

    i have a customer who wants to be uploading more than 2M from a php script.

    If you see this, http://www.mauritius-network.com/test.php


    You will noitice it is set to 2M

    I changed my \etc\php.ini to reflect a change of 20M and restarted apache.

    Why is the setting still 2M ?

    Am I changing it in the wrong place?

    Marc
    Fast Affordable Web Hosting
    www.vizhost.com
    Contact on AIM: DIALSOFT

  2. #2
    Hi Marc -

    Make sure you're targeting the right php.ini file; in some instances they run multiple files to specific targets - and without changing the root file for the targeted directory, your alterations may not be processed.

  3. #3
    Join Date
    Dec 2004
    Location
    New Jersey
    Posts
    86
    Im a total noob. I dont know how to tell which one is being used.
    Fast Affordable Web Hosting
    www.vizhost.com
    Contact on AIM: DIALSOFT

  4. #4
    Do you know if it's the root server?

    Check out some basic online tutorials on php initialization files - maybe that will help you identify your specific situation?

    I hope this helps!

  5. #5
    Easy way, take a look at phpinfo.php ...
    Code:
    <?php phpinfo(); ?>
    place that in a text file, save as phpinfo.php, upload to site, then browse to it. Should be in the very top section.

  6. #6
    Join Date
    Dec 2004
    Location
    New Jersey
    Posts
    86
    thanks guys. I found it using phpinfo.
    Fast Affordable Web Hosting
    www.vizhost.com
    Contact on AIM: DIALSOFT

  7. #7
    Join Date
    Nov 2004
    Location
    Switzerland
    Posts
    855
    be carefull with your php.ini

    It would be wise to make a backup before editing this file.
    .:. Enterprise SAN Consultant .:.

  8. #8
    Join Date
    Jan 2002
    Location
    Boston
    Posts
    5,010
    try httpd stop then httpd start, sometimes just doing a restart does not kick in correctly (at least I have experienced this myself) but if you are editing the correct php.ini that will fix your problem.

Posting Permissions

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