Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I see a lot of 'File name too long' errors in apache error log on Debian.

How can I fix this?

share|improve this question
    
More details, maybe an excerpt from the logfiles maybe? –  SvW May 14 '12 at 12:55
add comment

2 Answers 2

up vote 1 down vote accepted

This is a known bug and or known problem.

This could be the bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=45187

Or your file name might actually be too long, in that case, make sure your file-names (or anything between 2 slashes) is not longer then 255 characters.

Also, make sure to revise any mod_rewrite-rules you have, they can also cause this behavior.

When you have an argument/filename longer then 255 chars, apache will check this against your file system limits.

More info on the max filename length can be found here: http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits

There aren't a lot of them that allow for longer file names, so you will have to make them shorter, no other way around them.

share|improve this answer
    
Well, since I use 'clean urls' in non-western alphabet the urls may actually exceede 255 characterless. How exactly can I increase the limit? Thanks –  alfish May 14 '12 at 13:17
    
Updated answer above. –  Bart De Vos May 14 '12 at 13:34
add comment

With path too long error I use an alternative tool "Long Path Tool" a guaranteed fast and easy fix.

share|improve this answer
    
Maybe you could add a link to the tool and show how to use it? –  slm Aug 1 '13 at 18:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.