Results 1 to 6 of 6
  1. #1

    Out of file handles because of ErrorLogs in vhosts

    I have hundreds of sites on a server running Plesk. When I try to add more, Apache refuses to start, because it is out of file handles.

    It is out of file handles because Plesk includes a custom ErrorLog and CustomLog in every vhost config file it makes. I tried overriding them with a vhost.conf file, but am not sure how to unset set options. I also tried pointing all the same ErrorLogs to the same file, but that didn't seem to do anything.

    Does anyone know how I can either log everything to a single file, or just shut off logging? I really never use logging, and it seems like it would save me progressing power and storage (not to mention file handles!) if I could just disable it.

  2. #2
    Join Date
    Oct 2006
    Please read

    Think that covers your situation in great detail, and probably should help fix your issue.

    Good luck,

  3. #3
    It explains my problem, but it doesn't tell me how I can get Plesk to stop defining a custom log for every site.

    The way Plesk sets it up, every site has:

    CustomLog /var/www/vhosts/ plesklog
    ErrorLog /var/www/vhosts/

    If I change it in that file, it gets overwrote. And I don't know how to unset it in the file I am supposed to use:

    Include /var/www/vhosts/

  4. #4
    Join Date
    Oct 2006
    Suggest you also check out the Apache-specific solutions on that page....there are parameters that you may be able to change to avoid this issue.

  5. #5
    Are you on VPS or dedicated ?

  6. #6
    Join Date
    Mar 2008
    kolkata, India
    Maybe you need to do some specific configurations for a domain or subdomain and you tried to do directly in httpd.include file. You saw that it works for the momment but plesk will delete again your specific configurations from this file. So, in this case the answer is vhost.conf file. This file will be placed inside your domain’s conf directory, usually found at /var/www/vhosts/ Create a file called vhost.conf in whatever editor you prefer. I use vim.

    You can now put in any Apache configuration options like you would into httpd.include. In my case I wanted to do only one thing, to have subversion repository accesible over web, without any kind of access restriction.
    Here is my vhost.conf file:

    DAV svn
    SVNPath /home/svn

    Now, you need to tell Plesk to update it’s information.
    You have to run:
    # /usr/local/psa/admin/sbin/websrvmng -u

    this will configure plesk only for one single domain, in this case
    If you want to configure it for all sites run:
    # /usr/local/psa/admin/bin/websrvmng -a

    After this command if you look to httpd.include file, will see that your httpd.include will have an include line for your vhost.conf, something like this:
    Include /srv/www/vhosts/

    There is also a vhost.conf file for subdomain in their DocumentRoot directory, if you want to do some specific things for subdomain.

    That’s all, bye!
    So you think your server is secure?
    Try our security Service
    With SysFirm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts