Search

Language:  
Search for:

Available article translations:

How do I enable Piped Logs for Apache Web Server

APPLIES TO:
  • Parallels Plesk for Linux/Unix

Symptoms

Various issues related to Apache and the Horde web interface. For example:

  • "Login failed" message or a blank page in Horde web interface

  • Unable to send emails from Horde Webmail

  • Web sites not opening properly.

Cause

If you try to host more than 300 websites on the server, Apache may fail to work because of a problem involving the file descriptors limit. By default, Apache can only handle 1024 file descriptors.

Every Virtual Host requires 2 or 4 (if HTTPS is enabled) log files, so with this scheme only around 300 domains can be hosted without an Apache recompilation. See article #260 for more details on recompiling.

Diagnostics

Run the following command to see the root of the Apache processes tree:

# ps axf | grep httpd | grep -v grep
2718 ? Ss 0:00 /usr/sbin/httpd
2720 ? S 0:00 \_ /usr/sbin/httpd
2721 ? S 0:03 \_ /usr/sbin/httpd
…
3821 ? S 0:00 \_ /usr/sbin/httpd
3901 ? S 0:00 \_ /usr/sbin/httpd

Then check the number of open file descriptors using the root PID (2718):

# ls /proc/2718/fd/ | wc -l
1406

If the returned value is more than 1024, this means that Apache does not have enough file descriptors and may fail to work correctly.

Resolution

The Piped Logs feature that was implemented in Parallels Plesk 8.2 allows you to host up to 900 domains safely on the default Apache web server. If you have more than 900 domains, you will still have to recompile Apache and certain other system packages as described in article #260.

To enable Piped Logs on Plesk 11.5 or newer, go to Tools & Settings > Apache Web Server and check "Piped logs" checkbox.

To enable Piped Logs on earlier versions:

  1. Log in to the server shell.
  2. Issue this command:

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "replace into misc (param,val) values ('apache_pipelog', 'true');"
    
  3. Rebuild the Apache configuration:

    # $PRODUCT_ROOT_D/admin/sbin/websrvmng -v -a
    

Search words:

Unable to send emails from Horde Webmail

Login failed

FastCGI-stderr: PleskUtilException:

failed login Horde

login is not possible

horde is broken




56797cefb1efc9130f7c48a7d1db0f0c c81e59b61af9dca603ba03b14aabe968 9f8baf78266b4e54525d1c6bf06305a5

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Desktop Virtualization
- Parallels Desktop 9 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification