Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Importing big text file to SQL generates 500 Internal Server Error

Discussion in 'Database Discussion' started by imniclas, Jun 15, 2012.

  1. imniclas

    imniclas Registered

    Jun 15, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Have a customer who has a PHP script that's importing a large .txt file to MySQL. Have always worked very well but now is the file over 250MB with a lot of rows.

    Exactly after the script have runned for 4 minutes it just stops and generates a 500 Internal Server Error in the users web browser. The SQL is then around 220MB and has about 280 000 rows.

    I have tried to maximize all limits in php.ini and also the time out in Apache Configuration in WHM but nothing helps.

    Am I missing something?

    Appreciate all advice I can get. I can not help the customer any further...
  2. markhard

    markhard Well-Known Member

    Apr 22, 2004
    Likes Received:
    Trophy Points:
    restore the SQL dump from SSH, faster and have no problem with php/http timeout
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice