Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default Max Execution Madness

    Hi, ok i'll make this as simple as possible

    i have a website, 40,000 members all squeezed into a flat file database

    im now in process of converting that to MYSQL, so ive wrote a simple PHP script out which uses a loop to dump each users details into the table

    it works fine, the script is flawless, but after 30secs it stops processing

    now obviously this is due to a PHP limit of MAX Execution Time

    Noted, and altered to 700 secs, restarted apache, then the server, still no luck

    any ideas

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    252

    Default

    run the script from ssh:

    php -f script.php
    Rack911.com - Competent Server Administration
    Server Security - Administration - Managed Servers - Optimization - High Traffic Clusters

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    Exactly the same problem running the script via SSH as to a browser

    any ideas ?
    Last edited by jaymc; 07-02-2005 at 12:15 PM.

  4. #4
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Adjust the max amount of memory php can use up as much as you can and then rerun the script

    Also make sure there is enough space in /tmp
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    nope ! still no luck

    doing the same thing no change

  6. #6
    Member lankyb's Avatar
    Join Date
    Sep 2004
    Location
    Peterborough, UK
    Posts
    104

    Default

    Stupid suggestion, but when you have Zend Optimizer installed on your server, it changes the location of the php.ini file to /usr/local/Zend/etc/php.ini (or is atleast for me anyway)

    Are you sure your updating the correct php.ini file?

  7. #7
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    well as a matter of fact i was changing the wrong file

    but ive just checked the php.ini located in Zend, and its exactly the same as the other 1

    so i guess they are some how linked, but any way

    still the same problem

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;

    max_execution_time = 2900 ; Maximum execution time of each script, in seconds
    memory_limit = 150M ; Maximum amount of memory a script may consume (8MB)


    just so you can see

    additional information : when running the script, even when using an array instead of echoing, i get an OFSET error when it gets to about the 6000 folder that its reading from

    ring any bells ?

    get back asap please! cheers !!

  8. #8
    Member
    Join Date
    Nov 2004
    Posts
    6

    Default

    I am having the same problem. Changing the php.ini file does nothing. Could anyone shed some light?

Similar Threads & Tags
Similar threads

  1. virtfs madness
    By haz_ in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-25-2008, 06:18 AM
  2. IMAP Madness
    By dc2447 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-18-2004, 11:29 AM
  3. Interchange madness
    By Weiyi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-01-2003, 03:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube