Restricted Notes by a Geek

ISPConfig

Dovecot: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory

by admin on Mar.10, 2008, under ISPConfig, Linux

You may catch this error when you attempt to start dovecot on a Centos 5.1 system with the 64-bit architecture:

dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory
dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory

If you start dovecot, the main dovecot daemon will run with one auth child process, but there will be no POP/IMAP processes started. To fix the issue, open the /etc/dovecot.conf and adjust the following directive:

login_process_size = 64

Restart dovecot after making the change.

I tested this myself with a system running 64 bit Centos 5.1 with ISPConfig on.

Leave a Comment more...

ISPConfig & Proftpd login issues

by admin on Mar.10, 2008, under ISPConfig, Linux

Just before this weekend I had to install a control panel for a client with a fully managed dedicated server called ISPConfig. For those that do not know, this is a hosting control panel for linux hosting servers, much like Plesk or CPanel except for the fact that it is open source and free for use.

Now I am pretty impressed with this control panel, it allows you to keep your OS completely seperate from the control panel while being able to fully manage the hosting with the control panel. One thing I never liked about Plesk was, that it takes over packages and you can’t just do a “yum update” without dependancy problems between OS and Plesk packages. With ISPConfig this was not the case so to say the least I liked it a lot.

Now the problem is you can’t log in with ftp, even though the user was set up and set as admin for the domain. I would look something similar to this:

Connected to x.x.x.x (x.x.x.x).
220 ProFTPD 1.3.1 Server (ProFTPD server) [::ffff:x.x.x.x]
Name (x.x.x.x:david): web10_admin
500 AUTH not understood
SSL not available
331 Password required for web10_admin
Password:
530 Login incorrect.
Login failed.

Now to fix this on Centos 5 you have to create the file /etc/pam.d/ftp with the following entries:

#%PAM-1.0
auth    required        pam_unix.so     nullok
account required        pam_unix.so
session required        pam_unix.so

Restart proftpd with /etc/init.d/proftpd restart and your ftp server will work now.

5 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...