The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel mailman is missing

Discussion in 'E-mail Discussions' started by gizmola, May 20, 2009.

  1. gizmola

    gizmola Registered

    Joined:
    May 20, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel 11.24.4-R36167 - WHM 11.24.2 - X 3.9

    In trying to setup a mail list, I received the error:

    Mailing List Created
    The mailing list xxxx on xxxx with password xxx was successfully created.

    Unable to create xxx mailing list.

    Another thread suggested running some mailman related scripts in the /scripts directory. In particular, when I run the /scripts/reinstallmailman script I get this output:

    checking Python interpreter... /usr/local/bin/python2.4
    checking Python version... Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    2.4.3
    checking that Python has a working distutils... Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    configure: error:

    etc.

    Here are the python packages installed:

    python-sqlite-1.1.7-1.2.1
    python-urlgrabber-2.9.8-2
    python-2.3.4-14.7.el4
    python-tools-2.3.4-14.7.el4
    libxml2-python-2.6.16-12.6
    python-devel-2.3.4-14.7.el4
    python-elementtree-1.2.6-5.el4.centos
    python-docs-2.3.4-14.7.el4
    rpm-python-4.3.3-26_nonptl
     
  2. gizmola

    gizmola Registered

    Joined:
    May 20, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Fixed by installing new Python from source

    One comment: all work described her was accomplished while su -.

    After a lot of poking around, I figured out that the problem was lack of a solid python2.4.

    Just to be clear, cpanel uses python2.4 even though the rpm package manager has an old version of 2.3. This indirection is accomplished via the /var/cpanel/cpanel.config file which has a line that sets python=/usr/local/bin/python2.4.

    After finding a blog post suggesting that an old version of python2.4 was the issue (2.4.3), I followed this set of tasks to ultimately fix things.

    # cd /usr/local/src/
    # wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz
    # tar -xvzf Python-2.4.6.tgz
    # cd Python-2.4.6/
    # ./configure
    # make

    Removed the old version of 2.4.

    # rm -rf /usr/local/lib/python2.4
    # rm -f /usr/local/bin/python2.4

    # make install

    Just to be careful that the new version does not interfere with the rpm version, I removed /usr/local/bin/python. There will still be a copy of the executable as /usr/local/bin/python2.4.

    # rm -f /usr/local/bin/python

    Reinstall (which in my case installed mailman for the first time).

    # /scripts/reinstallmailman

    Mailman installed, and is now fully functional. :)
     
Loading...

Share This Page