Search

Language:  
Search for:

Available article translations:

Web Server does not start on Mac OS X

APPLIES TO:
  • Parallels Server 4.0 for Mac
  • Parallels Virtual Automation

Symptoms

After installing Parallels Virtual Automation Agent on a Parallels Server for Mac 4.0 host, Apache does not start. Offline management does not work for virtual machines.
Similar log entries can be found in system.log:
Feb  8 17:07:43 mymac org.apache.httpd[3416]: httpd: Syntax error on line 1492 of /private/etc/apache2/httpd.conf: Syntax error on line 1 of /etc/apache2/sites/0.pp.conf: Cannot load /opt/pva/pp/libexec/mod_pvapp22.so into server: dlopen(/opt/pva/pp/libexec/mod_pvapp22.so, 10): no suitable image found.  Did find:\n\t/opt/pva/pp/libexec/mod_pvapp22.so: mach-o, but wrong architecture

Cause

Apache runs in 64-bit mode, while Parallels Virtual Automation libraries are present in 32-bit mode only.

Resolution


Switch Apache to 32-bit mode by following these steps:
  1. Stop Apache service:
    sudo su -
    launchctl remove org.apache.httpd
  2. Verify that it is stopped:
    ps ax| grep httpd | wc -l

    If it shows a value greater than "1," then issue the below command:
    killall httpd
  3. Edit the configuration file /System/Library/LaunchDaemons/org.apache.httpd.plist and append the startup options with these values:
    <string>/usr/bin/arch</string>
    <string>-i386</string>
    Show\Hide full configuration file example
    Example:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>Disabled</key>
            <true/>
            <key>Label</key>
            <string>org.apache.httpd</string>
            <key>ProgramArguments</key>
            <array>
                    <string>/usr/bin/arch</string>
                    <string>-i386</string>
                    <string>/usr/sbin/httpd</string>
                    <string>-D</string>
                    <string>FOREGROUND</string>
            </array>
            <key>OnDemand</key>
            <false/>
            <key>SHAuthorizationRight</key>
            <string>system.preferences</string>
    </dict>
    </plist>
  4. Start Apache:
    launchctl load /System/Library/LaunchDaemons/org.apache.httpd.plist



f40b23732465ab01289f9ff69b1d5bec ca05eaf5b843fbd53589c90d7228a6df f5fb5ece659efa734e6246bdcb55fa2c de15ebe36a547439f84e5981418f36c7 2897d76d56d2010f4e3a28f864d69223

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