Results 1 to 2 of 2

Thread: Importing big text file to SQL generates 500 Internal Server Error

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    3
    cPanel/WHM Access Level

    Root Administrator

    Default Importing big text file to SQL generates 500 Internal Server Error

    Hello!
    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. #2
    Member
    Join Date
    Apr 2004
    Posts
    236

    Default Re: Importing big text file to SQL generates 500 Internal Server Error

    restore the SQL dump from SSH, faster and have no problem with php/http timeout
    HalfDedi.com : Half Dedicated Half Price
    We Provide Affordable VPS hosting solution in US and Singapore

Similar Threads

  1. Replies: 2
    Last Post: 05-17-2012, 06:50 AM
  2. 500 internal server error
    By webs20112 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-09-2012, 11:22 PM
  3. Replies: 1
    Last Post: 11-01-2011, 02:14 PM
  4. 500 Internal Server Error with PHP file
    By LSteamGeo in forum cPanel & WHM Discussions
    Replies: 26
    Last Post: 05-19-2011, 12:03 AM
  5. Replies: 6
    Last Post: 06-23-2004, 10:36 PM