Keyword

Internal Server Error

  • Igor Kramarsich
  • Igor Kramarsich's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 3 weeks ago #87841 by Igor Kramarsich
Internal Server Error was created by Igor Kramarsich
Hi,after different success import joomla content in K2 I arrive on wall.
In one site is around 750 articles and when import I receive "Internal Server Error"
SOme suggestion how to resolve this? It is some kind of article limit or other?

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #87842 by David R.
Replied by David R. on topic Internal Server Error
No, this has nothing to do with k2. An internal server error is coming directly out of apache and php and could indicate that you are running out of memory, or a php timeout. You should look into how to increase those limits in php by changing the php.ini file, until you can run the import. Most likely it's because you ran out of memory, although you can get internal server errors due to bugs in librarires that php is calling, or bad interactions with other apache modules or even php ibs that are not thread safe. In this case however, the fact that you seem to have been able to do the imports on smaller data sets leads me to think it's related to running out of memory in the php/apache thread.

Please Log in or Create an account to join the conversation.

  • Igor Kramarsich
  • Igor Kramarsich's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 3 weeks ago #87843 by Igor Kramarsich
Replied by Igor Kramarsich on topic Internal Server Error
Thanks for your fast replay.
I never touch php.ini and if I understand correctly what you write i change this:

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

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (32MB)

to this:

max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume (32MB)

But I still receive 500 Internal Server Error

Did I need to change something else too?

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #87844 by David R.
Replied by David R. on topic Internal Server Error
Igor,

Yes, those are the right parameters to change.
2 things to note:

-Whenever you make a change to the php.ini file you need to restart the apache process for those changes to take effect.

-You might need to continue to increase the limits.

Once you have success you can revert the settings back to their original limits.

Igor Kramarsich said:Thanks for your fast replay. I never touch php.ini and if I understand correctly what you write i change this:

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

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (32MB)

to this:

max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume (32MB)

But I still receive 500 Internal Server Error

Did I need to change something else too?

Please Log in or Create an account to join the conversation.

  • Igor Kramarsich
  • Igor Kramarsich's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 weeks ago #87845 by Igor Kramarsich
Replied by Igor Kramarsich on topic Internal Server Error
Hello,
David thanks for your help. I do all this but still without success.
I notice one thing. If I change php.ini like up number it always "go down" so Internal server error after around 40 seconds. Maybe some other parameters is problematic on esecution.

Please Log in or Create an account to join the conversation.

  • Igor Kramarsich
  • Igor Kramarsich's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 weeks ago #87846 by Igor Kramarsich
Replied by Igor Kramarsich on topic Internal Server Error
Problem solved with hoster. It was problem with hard limit of memory. It was set to 200mb. They change temporary to 500mb and after minute and 18 second all items pass. Now is all in K2.
Interesting that in error was nothing about memory limit problem

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum