My php.ini not working Please help

Discussion in 'PHP' started by 68555, Jul 30, 2009.

  1. #1
    So here are the things. I want to make some rapidshare like site and I found the script and installed it etc. Now the only problem is this. My php is configured to have only 30 input time and you can upload almost nothing in that time. So I would like to change
    Resource Limits max_execution_time 30
    Resource Limits max_input_time 60
    Resource Limits memory_limit 64M

    to

    Resource Limits max_execution_time 2500
    Resource Limits max_input_time 2500
    Resource Limits memory_limit 700M

    or something like that.

    I tried myself but I got 500 Internal server error. Please help.
    I fixed it by deleting it.
     
    68555, Jul 30, 2009 IP
  2. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I don't know where you're getting the Resource Limits from, but those php.ini values should look like these:

    max_execution_time = 2500;
    max_input_time = 2500;
    memory_limit = 700M;
     
    Webray, Jul 30, 2009 IP
  3. 68555

    68555 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's from cpanel.I just ripped the information. So I should just copy that to notepad and save it like php.ini??
     
    68555, Jul 30, 2009 IP
  4. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    NO, you can't just put that in the file by itself. There are many values in the file. Open up the php.ini file and find the values I've posted and modify them as I've shown.

    That should do it.
     
    Webray, Jul 30, 2009 IP
  5. 68555

    68555 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There is only 1 problem. I'm on shared server and I don't have php.ini file.
    But I can do it in .htaccess file if it's easier.
     
    Last edited: Jul 30, 2009
    68555, Jul 30, 2009 IP