[users@httpd] Trouble migrating Apache server to another instance: setsid errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
Hi folks,
I am trying to create another Apache instance on the same server.   I am getting the following error in my httpd log file:

setsid: Not owner
httpd: setsid failed
setsid() failed probably because you aren't running under a process management tool like daemontools

This is what I have done so far.

1. I have copied the /opt/apache-modssl directory to another directory /opt/apache-modssl-back.
2. I have change the config file to point to /opt/apache-modssl-back
3. I have changed my DocumentRoot and ServerRoot to point to different directories.
4. I am using modssl, cronolog, MM and OpenSSL.
5. I don't get any syntax errors when I run httpd -t.
6. Here is my http -V compile options.

root@mustang:/opt/apache-modssl-back/bin# ./httpd -V
Server version: Apache/1.3.29 (Unix)
Server built:   Apr 15 2004 17:47:14
Server's Module Magic Number: 19990320:15
Server compiled with....
 -D EAPI
 -D HAVE_MMAP
 -D USE_MMAP_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D HAVE_PTHREAD_SERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=2048
 -D HTTPD_ROOT="/opt/apache-modssl"
 -D SUEXEC_BIN="/opt/apache-modssl/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"

7. And below is my httpd.conf

Thanks
Appreciate if someone could help.  I need to get his running by COB today (PST).

-Mukarram Syed

--httpd.conf---
ServerType standalone
ServerRoot "/opt/apache-modssl-back"
PidFile logs/httpd.pid
ScoreBoardFile logs/httpd.scoreboard
Timeout 60
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 10
MinSpareServers 10
MaxSpareServers 20
StartServers 40
MaxClients 2048
MaxRequestsPerChild 10000
ExtendedStatus On
Port 80
Listen 80
User www
Group www
ServerAdmin unix-team@xxxxxxxxxxx
DocumentRoot "/opt/apache-modssl-back/htdocs"
<Directory "/opt/apache-modssl-back/htdocs/index.html.en">
    Options FollowSymLinks
</Directory>
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Allow from 10.185 172.20
    Deny from all
</Location>
<IfModule mod_dir.c>
    DirectoryIndex index.jhtml index.html index.cgi
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
    TypesConfig /opt/apache-modssl-back/conf/mime.types
</IfModule>
DefaultType text/plain
HostnameLookups Off
ErrorLog "|/usr/local/sbin/cronolog /opt/apache-modssl-back/logs/http/mustang_http_error_log.%Y-%m-%d"
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "^^%h^^%t^^%r^^%>s^^%B^^%T^^%p^^%{Referer}i^^%{User-Agent}i^^%{Cookie}i^^%{Cookie}n^^" extcookie
CustomLog "|/usr/local/sbin/cronolog /opt/apache-modssl-back/logs/http/mustang_http_access_log.%Y-%m-%d" extcookie
ServerSignature Off
<IfModule mod_alias.c>
    <Directory "/opt/apache-modssl-back/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
<IfModule mod_autoindex.c>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/mo vie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
     AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    DefaultIcon /icons/unknown.gif
    ReadmeName README
    HeaderName HEADER
</IfModule>
<IfModule mod_mime.c>
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage he .he
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .se
    AddLanguage cz .cz
    AddLanguage ru .ru
    AddLanguage tw .tw
    AddCharset Big5         .Big5    .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866        .cp866
    AddCharset ISO-8859-5   .iso-ru
    AddCharset KOI8-R       .koi8-r
     AddCharset UCS-2        .ucs2
    AddCharset UCS-4        .ucs4
    AddCharset UTF-8        .utf8
    <IfModule mod_negotiation.c>
        LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>
    <IfModule mod_php3.c>
        AddType application/x-httpd-php3 .php3
        AddType application/x-httpd-php3-source .phps
    </IfModule>
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
        php_admin_value extension_dir /opt/apache-modssl-back/lib/php/extensions/debug-non-zts-20000401
    </IfModule>
    AddType application/x-tar .tgz
</IfModule>
ErrorDocument 404 /errors/defaultError.html
ErrorDocument 500 /defaultError.html
<IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
NameVirtualHost *
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
SSLPassPhraseDialog  builtin
SSLSessionCache        dbm:logs/ssl/ssl_scache
SSLSessionCacheTimeout  300
SSLMutex  file:logs/ssl/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog      logs/ssl/ssl_engine_log
SSLLogLevel warn
<VirtualHost _default_:443>
DocumentRoot "/opt/apache-modssl-back/htdocs"
ErrorLog  "|/usr/local/sbin/cronolog /opt/apache-modssl-back/logs/https/mustang_https_error_log.%Y-%m-%d"
CustomLog "|/usr/local/sbin/cronolog /opt/apache-modssl-back/logs/https/mustang_https_access_log.%Y-%m-%d" extcookie
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /opt/apache-modssl-back/ssl/certs/www.sephora.com.cert
SSLCertificateKeyFile /opt/apache-modssl-back/ssl/private/www.sephora.com.key
SSLCACertificateFile /opt/apache-modssl-back/ssl/certs/intermediate-ca.cert
<Files ~ "\.(cgi|shtml)$">
    SSLOptions +StdEnvVars +CompatEnvVars
</Files>
<Directory "/opt/apache-modssl-back/cgi-bin">
    SSLOptions +StdEnvVars +CompatEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
</VirtualHost>                           



Mukarram Syed
muksyed@xxxxxxxxx


Bring words and photos together (easily) with
PhotoMail - it's free and works with your Yahoo! Mail.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux