Click to See Complete Forum and Search --> : VPS Domain Hosting Errors


prettyskin
03-17-2009, 09:40 PM
How do I solve these errors?

[root@somebody sbin]# apachectl configtest

I get this error:
/usr/sbin/httpd: error while loading shared libraries: libdl.so.2: cannot open shared object file: Error 23

[root@somebody sbin]# apachectl graceful

I get this error:
apachectl: Configuration syntax error, will not run "graceful":
/usr/sbin/httpd: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 23

prettyskin
03-19-2009, 06:52 PM
This error message means that you have exceeded the maximum number of file handles (or maybe inode handlers) the kernel can allocate.

To find the values do this:
cat /proc/sys/fs/file-max
cat /proc/sys/fs/inode-max

Change the defaults at boot by putting the following lines in /etc/sysctl.conf:

# Increase no. of file handles, recommended 8192 per 128MB RAM
# fs.file-max = 8192
fs.file-max = 24576
# Increase no. of inode handlers, recommended 3 x file-max
# fs.inode-max = 16376
fs.inode-max = 98304