Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 01:49:25

Author Topic: Error: LOAD DATA INFILE failed  (Read 5120 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Error: LOAD DATA INFILE failed
« on: 2017-06-11, 06:21:26 »
I got this error from one of my app.

Code: [Select]
Error: LOAD DATA INFILE failed
When I used htaccess for the verison of php then no error. But when I used web features for the version of php then this error.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #1 on: 2017-06-11, 12:57:40 »
Inform here your .htaccess content.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #2 on: 2017-06-11, 14:24:16 »
Code: [Select]
<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
SetHandler x-httpd-php56
#SetHandler x-httpd-php70
#SetHandler x-httpd-php71
</FilesMatch>

If I use this in htaccess then it work fine. If I use the 'Web Features' for the php version then it show error.

NOTE: I noticed this. When using htaccess as above then it uses this /opt/php56m/custom/php.ini and when using 'Web Features' then it uses this /opt/php56m/custom/php-fpm.ini. Not sure if the configuration are different.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #3 on: 2017-06-11, 15:11:38 »
Select php from .htaccess mean using in php-cgi mode. From 'web features' mean in php-fpm mode (need select 'php-fpm' in php-type).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #4 on: 2017-06-11, 16:29:54 »
PHP Type: php_fpm_event (I have always been using this)

I've been using htaccess to select php but as learned that 'Advanced PHP Configure' doesn't work. I now using 'Web Features' to select php so 'Advanced PHP Configure' work. But now by using this method I now get this error from my app. How do I fix it?

Code: [Select]
Error: LOAD DATA INFILE failed

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #5 on: 2017-06-11, 19:24:15 »
What's phpXYm used?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #6 on: 2017-06-12, 04:35:47 »
php56m

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #7 on: 2017-06-15, 08:52:11 »
+

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #8 on: 2017-06-15, 12:40:44 »
To enable multiple select for 'php selected', you click 'Multiple PHP Enable (for 'php-fpm')' in 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #9 on: 2017-06-16, 19:07:27 »
I am not sure if we are still on the same topic here. I have Multiple PHP selected it's work fine. That's the issue. I not sure if that's what you meant.

What I am trying to fixed is this error I got from my app.
Code: [Select]
Error: LOAD DATA INFILE failed
This error happened when I use php70, php56, etc php-fpm_event (/custom/php-fpm.ini) but what using php70, php56, etc from .htaccess php-cgi mode (/custom/php.ini) no error.

So when I used this htaccess there is no error.
Code: [Select]
<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
SetHandler x-httpd-php56
#SetHandler x-httpd-php70
#SetHandler x-httpd-php71
</FilesMatch>
From what you are telling me this is using php-cgi mode. This doesn't get that [Error: LOAD DATA INFILE failed]

From the 'Web Features > PHP Seleted' I selected a PHP say php56m or php70m it doesn't matter and I do have 'Multiple PHP Enable' checked in 'Webserver Configure'. This use 'php-fpm' and it got the [Error: LOAD DATA INFILE failed].

So I guess php-cgi mode no error and php-fpm mode error. How to fix php-fpm so no error?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #10 on: 2017-06-17, 04:38:06 »
Where you found 'Error: LOAD DATA INFILE failed'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #11 on: 2017-06-17, 06:57:42 »
One of the apps I use (Piwik) show this error.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #12 on: 2017-06-17, 07:38:21 »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Error: LOAD DATA INFILE failed
« Reply #13 on: 2017-06-17, 08:28:52 »
Too much... I am so confused. I guess I will stick with the htaccess using php-cgi mode for now.

Code: [Select]
<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
#SetHandler x-httpd-php56
#SetHandler x-httpd-php70
SetHandler x-httpd-php71
</FilesMatch>
Well, this is working and I don't have to mess with other stuff. Down side is not able to use the 'Web Features' to select php to use php-fpm_event. And also not able to use the 'Advanced PHP Configure > Disable Functions' I will have to edit '/custom/php.ini' instead. :-[

Thank you for your help.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: LOAD DATA INFILE failed
« Reply #14 on: 2017-06-17, 08:41:20 »
Did you try using php56m or php70m instead php71m?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.031 seconds with 18 queries.

web stats analysis