1

Topic: FreeBSD 8.2 iRedMail-0.7.3 :: iredadmin internal server error

hello, i install iredmail on freebsd 8.2

my problem...
https://a.b.c.d/iredadmin/
Internal Server Error ...

thanks -

========================================================================
tail -f /var/log/httpd-*
[Tue Aug 30 17:23:27 2011] [error] [client 124.137.200.225] Premature end of script headers: iredadmin.py

==> /var/log/httpd-access.log <==
124.137.200.225 - - [30/Aug/2011:17:23:26 +0900] "GET /iredadmin/ HTTP/1.1" 500 535

==> /var/log/httpd-ssl_request.log <==
[30/Aug/2011:17:23:26 +0900] 124.137.200.225 TLSv1 AES128-SHA "GET /iredadmin/ HTTP/1.1" 535

==> /var/log/httpd-error.log <==
[Tue Aug 30 17:23:27 2011] [notice] child pid 98402 exit signal Segmentation fault (11)

========================================================================
iredadmin.conf / httpds-ssl.conf

cat iredadmin.conf
#
# Note: Uncomment below two lines if you want to make iRedAdmin accessable via HTTP.
#
#WSGIScriptAlias /iredadmin /usr/local/www/iredadmin/iredadmin.py/
#Alias /iredadmin/static /usr/local/www/iredadmin/static/

WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess iredadmin user=iredadmin threads=15
WSGIProcessGroup iredadmin

AddType text/html .py

<Directory /usr/local/www/iredadmin/>
    Order deny,allow
    Allow from all
</Directory>
========================================================================

cat httpd-ssl.conf
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

SSLPassPhraseDialog  builtin
SSLSessionCache        "shmcb:/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout  300
SSLMutex  "file:/var/run/ssl_mutex"

<VirtualHost _default_:443>

ErrorLog "/var/log/httpd-error.log"
TransferLog "/var/log/httpd-access.log"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/ssl/certs/iRedMail_CA.pem
SSLCertificateKeyFile /etc/ssl/private/iRedMail.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/www/apache22/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

BrowserMatch ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog "/var/log/httpd-ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

Alias /mail "/usr/local/www/roundcube/"
Alias /webmail "/usr/local/www/roundcube/"
Alias /roundcube "/usr/local/www/roundcube/"
Alias /phpmyadmin "/usr/local/www/phpMyAdmin/"
Alias /awstats/icon "/usr/local/www/awstats/icon/"
ScriptAlias /awstats "/usr/local/www/awstats/cgi-bin/"
WSGIScriptAlias /iredadmin /usr/local/www/iredadmin/iredadmin.py/
Alias /iredadmin/static /usr/local/www/iredadmin/static/
</VirtualHost>


========================================================================
i connect http://a.b.c.d:8080/

python iredadmin.py
http://0.0.0.0:8080/


0.0 (1): DELETE FROM sessions WHERE '2011-08-29T17:30:59.045245' > atime
0.0 (2): SELECT * FROM sessions WHERE session_id='3ca0ab5dcbfb1e50e8e453a3393ac8c9a15dbf5e'
0.0 (3): SELECT * FROM sessions WHERE session_id='3ca0ab5dcbfb1e50e8e453a3393ac8c9a15dbf5e'
0.0 (4): UPDATE sessions SET atime = '2011-08-30T17:30:59.077159' WHERE session_id='3ca0ab5dcbfb1e50e8e453a3393ac8c9a15dbf5e'
0.0 (5): SELECT * FROM sessions WHERE session_id='3ca0ab5dcbfb1e50e8e453a3393ac8c9a15dbf5e'
0.0 (6): UPDATE sessions SET data = 'KGRwMQpTJ3VzZXJuYW1lJwpwMgpOc1MnbGFuZycKcDMKUydlbl9VUycKcDQKc1MnaXAnCnA1ClYx\nMjQuMTM3LjIwMC4yMjUKcDYKc1MnbG9nZ2VkJwpwNwpJMDAKc1Mnc2Vzc2lvbl9pZCcKcDgKUycz\nY2EwYWI1ZGNiZmIxZTUwZThlNDUzYTMzOTNhYzhjOWExNWRiZjVlJwpwOQpzUydlbmFibGVTaG93\nVXNlZFF1b3RhJwpwMTAKSTAwCnNTJ3BhZ2VTaXplTGltaXQnCnAxMQpJNTAKc1MnZmFpbGVkVGlt\nZXMnCnAxMgpJMApzUyd3ZWJtYXN0ZXInCnAxMwpTJ3d3d0BqamdoaXQuY28ua3InCnAxNApzLg==\n' WHERE session_id='3ca0ab5dcbfb1e50e8e453a3393ac8c9a15dbf5e'
124.137.200.225:55269 - - [30/Aug/2011 17:30:59] "HTTP/1.1 GET /" - 200 OK
124.137.200.225:55269 - - [30/Aug/2011 17:30:59] "HTTP/1.1 GET /static/default/css/screen.css" - 200
124.137.200.225:55269 - - [30/Aug/2011 17:30:59] "HTTP/1.1 GET /static/default/images/login.jpg" - 200
124.137.200.225:55270 - - [30/Aug/2011 17:30:59] "HTTP/1.1 GET /static/default/images/gear.png" - 200

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: FreeBSD 8.2 iRedMail-0.7.3 :: iredadmin internal server error

pranludi wrote:

python iredadmin.py http://0.0.0.0:8080/

It works fine with command line, so there might be something wrong with Apache + SSL.

Could you show me output of below commands:

# ls -l /usr/local/www/iredadmin/
# ls -dl /usr/local/www/i*

3

Re: FreeBSD 8.2 iRedMail-0.7.3 :: iredadmin internal server error

Thanks ...

# ls -l /usr/local/www/iredadmin/
total 40
dr-xr-xr-x   8 iredadmin  iredadmin   512 Aug 30 16:44 ./
drwxr-xr-x   8 root       wheel       512 Aug 30 15:33 ../
-r-xr-xr-x   1 iredadmin  iredadmin    49 Aug 17 17:28 AUTHORS*
-r-xr-xr-x   1 iredadmin  iredadmin  2034 Aug 17 17:28 ChangeLog*
dr-xr-xr-x   5 iredadmin  iredadmin   512 Aug 30 17:33 controllers/
dr-xr-xr-x   3 iredadmin  iredadmin   512 Aug 30 16:10 docs/
dr-xr-xr-x  12 iredadmin  iredadmin   512 Aug 30 16:10 i18n/
-r-xr-xr-x   1 iredadmin  iredadmin   387 Aug 30 15:57 iredadmin.py*
dr-xr-xr-x   5 iredadmin  iredadmin   512 Aug 30 16:47 libs/
-rw-r-----   1 iredadmin  iredadmin  4262 Aug 30 15:46 settings.ini
-r-xr-xr-x   1 iredadmin  iredadmin  4262 Aug 17 17:28 settings.ini.ldap.sample*
-r-xr-xr-x   1 iredadmin  iredadmin  4166 Aug 17 17:28 settings.ini.mysql.sample*
dr-xr-xr-x   4 iredadmin  iredadmin   512 Aug 30 16:10 static/
dr-xr-xr-x   3 iredadmin  iredadmin   512 Aug 30 16:10 templates/

# ls -ld /usr/local/www/i*
dr-xr-xr-x  8 iredadmin  iredadmin  512 Aug 30 16:44 /usr/local/www/iRedAdmin-0.1.6/
lrwxr-xr-x  1 root       wheel       30 Aug 30 15:33 /usr/local/www/iredadmin@ -> /usr/local/www/iRedAdmin-0.1.6

4

Re: FreeBSD 8.2 iRedMail-0.7.3 :: iredadmin internal server error

[Tue Aug 30 17:23:27 2011] [notice] child pid 98402 exit signal Segmentation fault (11)

Is there any detail log if you turn on debug mode in Apache?