T
T
tuxx2014-04-20 18:59:28
Apache HTTP Server
tuxx, 2014-04-20 18:59:28

Too many open files: /.htaccess pcfg_openfile

Recently, the server began to fall off periodically. Tech support wrote that an error constantly occurs in the logs:

Too many open files: /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Googling doesn't provide much useful information. Has anyone experienced something similar? And how did you decide?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rustelecom, 2014-04-20
@rustelecom

Add ulimit -n 16384 to /etc/init.d/httpd (apache init script) and then restart apache. Perhaps it will help.

V
Vlad Zhivotnev, 2014-04-21
@inkvizitor68sl

OpenVZ for sure?
cat /proc/user_beancounters
show.
Most likely, you are running out of numfile.

T
topgim, 2018-01-30
@topgim

chcon -R -t httpd_sys_content_t /home/www on centos 7 helped, sorry for the necroposting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question