How do I enable Piped Logs for Apache Web Server.

Article ID: 2066 
Last Review: Oct,6 2008
Author: Dmitry Frantsev APPLIES TO:
  • Plesk 8.2.x for Linux/Unix
  • Plesk 8.3.x for Linux/Unix
  • Plesk 8.4.x for Linux/Unix

Symptoms

If you are going to host more than 300 Web sites on the server, Apache may fail to work because of problem with file descriptors limit. Apache by default can handle only 1024 file descriptors. Every Virtual Host requires 2 or 4 (if HTTPS is enabled) log files, so with this scheme only about 300 domains can be hosted without Apache recompilation, see 260.

Resolution

Piped Logs feature that was implemented in Plesk 8.2 allows to host safely on the default Apache web server build up to 900 domains. If you have more that 900 domains, you still have to recompile Apache and some other system packages as described in article 260. To enable Piped Logs the following steps have to be done:

   1. Log in to the server shell.
   2. Issue the command:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "replace into misc (param,val) values ('apache_pipelog', 'true');"

   3. Rebuild Apache configuration:
# $PRODUCT_ROOT_D/admin/sbin/websrvmng -v -a

Attachments:

Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
captcha *Please type the code you can see.
* - required fields