LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-10-2012, 01:03 PM   #1
sanjay87
Member
 
Registered: Oct 2011
Posts: 164

Rep: Reputation: Disabled
Internal server error while login IredMail Server


hI
Today i tried to install iredmailserver in centos 5.5 operating system .Installation process completed without any sort of error ,but when i ry to login into admin panel it delivering Internal server error,Can any one help me how can i solve the problem

[error] [client ] mod_wsgi (pid=1371): Target WSGI script '/var/www/dbmailadmin/dbmailadmin.py' cannot be loaded as Python module.
[error] [client x] mod_wsgi (pid=1371): Exception occurred processing WSGI script '/var/www/dbmailadmin/dbmailadmin.py'.
[client x] Traceback (most recent call last):
[error] [client c] File "/var/www/dbmailadmin/dbmailadmin.py", line 8, in <module>
 
Old 04-10-2012, 03:51 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
This error means you don't have correct file owner or permission on DBMailAdmin config file, settings.ini.
It must be owned by user 'dbmailadmin', group 'dbmailadmin', and permission '0400'. If 0400 doesn't work for you, try 0750 instead.

So, please switch the owner of DBMailAdmin directory to the original one (dbmailadmin:dbmailadmin), and try again.

It's not related to Python or mod_wsgi, both of them should be fine.
Quote from this post.

HTH
 
Old 04-12-2012, 02:31 AM   #3
sanjay87
Member
 
Registered: Oct 2011
Posts: 164

Original Poster
Rep: Reputation: Disabled
Hi
Even its delivering Internal server error 500 .after editing the permission to chmod 750

[root@mail iRedAdmin-0.1.6]# ls -al
total 72
dr-xr-xr-x 8 iredadmin iredadmin 4096 Apr 12 12:45 .
drwxrwxrwx+ 11 root root 4096 Apr 10 22:55 ..
-r-xr-xr-x 1 iredadmin iredadmin 49 Aug 17 2011 AUTHORS
-r-xr-xr-x 1 iredadmin iredadmin 2034 Aug 17 2011 ChangeLog
dr-xr-xr-x 5 iredadmin iredadmin 4096 Apr 12 12:45 controllers
dr-xr-xr-x 3 iredadmin iredadmin 4096 Aug 17 2011 docs
dr-xr-xr-x 12 iredadmin iredadmin 4096 Apr 12 12:45 i18n
lrwxrwxrwx 1 iredadmin iredadmin 24 Apr 12 12:45 iRedAdmin-0.1.6 -> /var/www/iRedAdmin-0.1.6
-r-xr-xr-x 1 iredadmin iredadmin 387 Aug 17 2011 iredadmin.py
dr-xr-xr-x 5 iredadmin iredadmin 4096 Apr 12 12:45 libs
-rwxr-x--- 1 iredadmin iredadmin 4243 Apr 12 12:45 settings.ini
-rwxr-x--- 1 iredadmin iredadmin 4262 Aug 17 2011 settings.ini.ldap.sample
-rwxr-x--- 1 iredadmin iredadmin 4166 Aug 17 2011 settings.ini.mysql.sample
dr-xr-xr-x 4 iredadmin iredadmin 4096 Apr 12 12:45 static
dr-xr-xr-x 3 iredadmin iredadmin 4096 Aug 17 2011 templates
[root@mail iRedAdmin-0.1.6]#
 
Old 04-12-2012, 03:29 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I'm not using iredmail, but the error in your 1st post
Quote:
Exception occurred processing WSGI script '/var/www/dbmailadmin/dbmailadmin.py'
and the link I've posted above, are about the dbmailadmin directory (I guess the /var/www/dbmailadmin) and its permissions, not the iRedAdmin-0.1.6 directory you've posted its files owners/permissions. Besides the file having the problem is dbmailadmin.py that is not in the list you've posted above.

Make sure you are changing permissions/owners to the correct files/directories, or you may damage your installation

Regards
 
Old 04-13-2012, 03:39 AM   #5
sanjay87
Member
 
Registered: Oct 2011
Posts: 164

Original Poster
Rep: Reputation: Disabled
Hi
i had tried out all type of permission chmod 0400 permission for settings.ini ,777,nothings works
Can anyone help me regarding these issue



[root@mail ~]# cd /etc/httpd/logs
[root@mail logs]# tail -f ssl_error_log
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] mod_wsgi (pid=22512): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] mod_wsgi (pid=22512): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] Traceback (most recent call last):
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] File "/var/www/iredadmin/iredadmin.py", line 10, in ?
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] from libs import iredbase
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] File "/var/www/iredadmin/libs/iredbase.py", line 7, in ?
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] import web
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] File "/usr/lib/python2.4/site-packages/web/__init__.py", line 27, in ?
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] from application import *
[Fri Apr 13 14:05:04 2012] [error] [client x.x.x.x] IndentationError: expected an indented block (application.py, line 237)



[root@mail www]# ls
bkup html iredadmin iRedAdmin-0.1.6 roundcubemail roundcubemail-0.7.2
[root@mail www]# ls -al iredadmin/
total 72
dr-xr-xr-x 8 iredadmin iredadmin 4096 Apr 13 07:39 .
drwxr-xr-x 6 root root 4096 Apr 13 07:39 ..
-r-xr-xr-x 1 iredadmin iredadmin 49 Aug 17 2011 AUTHORS
-r-xr-xr-x 1 iredadmin iredadmin 2034 Aug 17 2011 ChangeLog
dr-xr-xr-x 5 iredadmin iredadmin 4096 Apr 13 07:39 controllers
dr-xr-xr-x 3 iredadmin iredadmin 4096 Apr 13 07:39 docs
dr-xr-xr-x 12 iredadmin iredadmin 4096 Apr 13 07:39 i18n
-r-xr-xr-x 1 iredadmin iredadmin 387 Aug 17 2011 iredadmin.py
dr-xr-xr-x 5 iredadmin iredadmin 4096 Apr 13 07:39 libs
-r-------- 1 iredadmin iredadmin 4243 Apr 13 07:39 settings.ini
-r-xr-xr-x 1 iredadmin iredadmin 4262 Aug 17 2011 settings.ini.ldap.sample
-r-xr-xr-x 1 iredadmin iredadmin 4166 Aug 17 2011 settings.ini.mysql.sample
dr-xr-xr-x 4 iredadmin iredadmin 4096 Apr 13 07:39 static
dr-xr-xr-x 3 iredadmin iredadmin 4096 Aug 17 2011 templates
[root@mail www]# chmod 777 *
[root@mail www]# ls
bkup html iredadmin iRedAdmin-0.1.6 roundc
 
Old 04-13-2012, 09:30 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Huh, now you get the same kind of error for a different python script. I suggest you to ask for assistance in their forums.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal Server Error conflicker Linux - Newbie 4 02-04-2012 08:29 AM
[SOLVED] 505- Internal server error - The server encountered an internal error or misconfigura physnastr Linux - Server 7 11-17-2011 04:57 PM
internal server error :( hsegtreas Linux - Newbie 2 06-20-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration