Koozali.org: home of the SME Server

Problems intalling Python / Plone

Anonymous

Problems intalling Python / Plone
« on: March 28, 2004, 12:38:35 PM »
Hi,

I have a strange problem. I want to install Plone (Plone2-2.0.0rh-2.i386.rpm) Because Plone 2.0 needs Python 2.3.3, I installed Python 2.3.3 from source (Python-2.3.3.tar).

Everything went well. After installing Python I did a reboot of the server and checked if Python works.

Quote
[root@homeserver root]# python
Python 2.3.3 (#1, Mar 28 2004, 11:29:35)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


So I suppose I installed the right version of Python. But when I tried to install Plone2-2.0.0rh-2.i386.rpm it gives the following error:

Quote
[root@homeserver Zope-Plone]# rpm -Uvh Plone2-2.0.0rh-2.i386.rpm
error: failed dependencies:
        /usr/bin/python2.3 is needed by Plone2-2.0.0rh-2
        expat >= 1.95.5 is needed by Plone2-2.0.0rh-2
        libc.so.6(GLIBC_2.3)   is needed by Plone2-2.0.0rh-2
        python2.3 >= 2.3.3 is needed by Plone2-2.0.0rh-2


When I installed Python from source, Python was installed in "/usr/local/bin/" in stead of "/usr/bin/" so I copied "Python2.3" from "/usr/local/bin/" to "/usr/bin/" but that doesn't help.

What can I do to change (or extend) the path so Plone can find the right version of Python.

Thanks,

Rien

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Problems intalling Python / Plone
« Reply #1 on: March 28, 2004, 12:41:23 PM »
Sorry, I forgot to log in.
Rien
(The Netherlands)......

Kruuse

Problems intalling Python / Plone
« Reply #2 on: April 11, 2004, 11:20:19 AM »
One of the problems is that the RPM system is unable to "see" packages you have installed manually.

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Problems intalling Python / Plone
« Reply #3 on: April 18, 2004, 07:29:24 PM »
It appears that there are a few threads on installing Plone 2 on SME6 at the moment.
http://forums.contribs.org/index.php?topic=21023.msg83004#msg83004
http://forums.contribs.org/index.php?topic=21023.msg83004#msg83004

If there is any success I can write it up.

-- Here is info for Python 2.3 --

A How-To upgrade to Python 2.3 has now been added to the Python How-To page.
http://no.longer.valid/phpwiki/index.php/Python

I had a quick try at installing Plone 2 but failed on
# rpm -Uvh Plone2-3.0.0-3.rh.i386.rpm
error: failed dependencies:
expat >= 1.95.5 is needed by Plone2-2.0.0-3
libc.so.6(GLIBC_2.3)is needed by Plone2-2.0.0-3
............

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Problems intalling Python / Plone
« Reply #4 on: April 18, 2004, 09:54:31 PM »
Hi Wellsi,

Thanks for the "How To" for python. But when I try to install Plone2-2.0.0-3.rh.i386.rpm, I got the same error as you did.

Rien
Rien
(The Netherlands)......

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Problems intalling Python / Plone
« Reply #5 on: April 18, 2004, 10:12:30 PM »
I believe that glibc 2.3 is not compatible with 2.2 which SME 6 has - so I would be worried about trying to upgrade it without a lot more knowledge.

I am thinking that there are three paths to try:
* What is the most recent Plone that does not need glibc 2.3

* search the web for a recent 'Redhat 7.3' Plone RPM

* rebuild the rpm from the SRPM

I think it is time that I left this to those more skilled then me.
............

Anonymous

Problems intalling Python / Plone
« Reply #6 on: April 21, 2004, 06:43:43 AM »
I have installed Plone 2.0, and am working to configure it.

Here's how I installed it (very short version!):

Download and unpack Python-2.3.3.tgz from python.org.
Install it per the README file *
Download and unpack Zope-2.7.0.tgz from zope.org
Install it per the doc/INSTALL.txt file *
Download and unpack CMFPlone-2.0-final.tar.gz
Install it per the CMFPlone/INSTALL.txt file

I realize this is very brief; however, if you take the steps detailed in the various installation docs, it works fine (running off port 8080 - I haven't configured it for port 80 yet).

* I plan, time permitting, to create RPMs to simplify the process, especially as the above process will require compile tools for Python and Zope, as both are source tarballs. I installed and compiled both on my test box but don't want to install compilers on my production server.

Offline ddougan

  • *
  • 155
  • +0/-0
    • http://www.DouganConsulting.com
Problems intalling Python / Plone
« Reply #7 on: April 21, 2004, 06:44:54 AM »
Oops! I forgot to log in before making the last post....
Des Dougan

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Problems intalling Python / Plone
« Reply #8 on: April 21, 2004, 08:25:14 PM »
Hi ddougan.

I installed Python 2.3.3 and Zope 2.7.0 from source as you did. Everything seemed to go fine but when I wanted to start Zope I got the following message:

Quote

[root@mlkserver html]# [root@mlkserver bin]# ./runzope
------
2004-04-03T20:19:15 INFO(0) ZServer HTTP server started at Sat Apr 3 20:19:15 2004
Hostname: mlkserver.focus.demon.nl
Port: 8080
------
2004-04-03T20:19:15 INFO(0) ZServer FTP server started at Sat Apr 3 20:19:15 2004
Hostname: mlkserver
Port: 8021
------
2004-04-03T20:19:15 PANIC(300) Zope A user was not specified to setuid to; fix this to start as root (change the effective-user directive in zope.conf)
Traceback (most recent call last):
File "/home/e-smith/files/ibays/cms/html/lib/python/Zope/Startup/run.py", line 49, in ?
run()
File "/home/e-smith/files/ibays/cms/html/lib/python/Zope/Startup/run.py", line 19, in run
start_zope(opts.configroot)
File "/home/e-smith/files/ibays/cms/html/lib/python/Zope/Startup/__init__.py", line 48, in start_zope
starter.dropPrivileges()
File "/home/e-smith/files/ibays/cms/html/lib/python/Zope/Startup/__init__.py", line 203, in dropPrivileges
return dropPrivileges(self.cfg)
File "/home/e-smith/files/ibays/cms/html/lib/python/Zope/Startup/__init__.py", line 319, in dropPrivileges
raise ZConfig.ConfigurationError(msg)
ZConfig.ConfigurationError: A user was not specified to setuid to; fix this to start as root (change the effective-user directive in zope.conf)



But no matter how I changed the "effective-user directive", Zope won't start.

Do you have any idea what I did wrong?

(See the discussion at http://forums.contribs.org/index.php?topic=21693.0 )

Thanks,

Rien
Rien
(The Netherlands)......

Offline ddougan

  • *
  • 155
  • +0/-0
    • http://www.DouganConsulting.com
Problems intalling Python / Plone
« Reply #9 on: April 22, 2004, 04:09:58 AM »
The effective user should be the same user the server runs for web services, i.e. www. That's what I have in my zope.conf file (I can't recall what the default was).

What ID are you using?

Des
Des Dougan

Offline si_blakely

  • *
  • 57
  • +0/-0
Zope/Plone running - service question
« Reply #10 on: April 23, 2004, 07:52:57 AM »
I have got Python/Zope/Plone running

first, install the SME dev tools.
make appropriate symlinks
ln -s /usr/src/linux-2.4/include/linux /usr/include/linux
ln -s /usr/src/linux-2.4/include/asm-i386 /usr/include/asm

upgrade to python2.3 http://no.longer.valid/phpwiki/index.php/Upgrade%20to%20Python%202.3?

so grab
wget "http://norlug.org/~chipster/download_handler.pxml?cat=1&file=python2.3-2.3.3-1.norlug.i386.rpm"
wget "http://norlug.org/~chipster/download_handler.pxml?cat=1&file=db4-4.0.14-4.norlug.i386.rpm"
wget "http://norlug.org/~chipster/download_handler.pxml?cat=1&file=python2.3-devel-2.3.3-1.norlug.i386.rpm"
wget "http://norlug.org/~chipster/download_handler.pxml?cat=1&file=python2.3-tools-2.3.3-1.norlug.i386.rpm"


install db4 over db4.1 installed as part of dev tools
rpm -ivh --force db4-4.0.14-4.norlug.i386.rpm
rpm -Uvh python2.3-2.3.3-1.norlug.i386.rpm
rpm -Uvh python2.3-devel-2.3.3-1.norlug.i386.rpm
rpm -Uvh python2.3-tools-2.3.3-1.norlug.i386.rpm


Get Zope
wget http://zope.org/Products/Zope/2.7.0/Zope-2.7.0.tgz

gunzip Zope-2.7.0.tgz
tar -xvf Zope-2.7.0.tar
cd Zope-2.7.0
./configure
make
make install


Create a Zope Instance
/opt/Zope-2.7/bin/mkzopeinstance.py

I put my instance in an ibay (/home/e-smith/files/ibays/cms/files) so I can add products via ftp/smb

cd /home/e-smith/files/ibays
chown -R www cms


cd cms/files/etc

edit zope.conf

insert the line
effective-user www

save and exit

to install Plone
download CMFPlone-2.0-final.tar.gz from sourceforge

gunzip CMFPlone-2.0-final.tar.gz
tar -xvf CMFPlone-2.0-final.tar
cd CMFPlone-2.0-final
cp -R * /home/e-smith/files/ibays/cms/files/Products


Now you are ready to start Zope with Plone by running
/home/e-smith/files/ibays/cms/files/bin/runzope

This works fine, but how do I add the instance as a service that I can start at boot and control via the service panel - any ideas?

Simon

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Problems intalling Python / Plone
« Reply #11 on: April 23, 2004, 11:25:51 PM »
Simon,

Thank you very much. I finally have zope up and running.

I've used /home/e-smith/files/ibays/cms/files/bin/zopectl to start the daemon and keep it going after I stopped midnight commander. Is that the correct way to do it?

Rien
Rien
(The Netherlands)......

Anonymous

Problems intalling Python / Plone
« Reply #12 on: April 24, 2004, 08:44:58 AM »
I think you should be able to link the runzope script, as it sets up the environment, but I think that zopectl will do it as well.
I just want to see it on the service panel.

Glad I could help, but it was the norlug Python RPMs that did the trick.

Simon

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Problems intalling Python / Plone
« Reply #13 on: July 04, 2004, 12:37:13 PM »
Hi,

In order to make my plone-site visible to the outside world I have to adjust httpd.conf.

According to http://www.zope.org/Members/anser/apache_zserver I have to do the following:

Code: [Select]
First, we have to make sure that Apache's mod_proxy is configured and activated, so we check the following lines in httpd.conf or apache.conf:

LoadModule proxy_module libexec/apache/libproxy.so
AddModule mod_proxy.c


Mod_proxy seems to be configured and activated, but I have no idea how to adjust httpd.conf with the second section:

Code: [Select]
Now we add our inverse proxy directives, within the main <Directory> context:

ProxyPass /Zope/ http://fightclub.org:8080/
ProxyPassReverse /Zope/ http://fightclub.org:8080/

Restart Apache and that's almost it! ............


I've read the howto: "Apache as reverse proxy - proxypass" (http://www.schirrms.net/sme/SMEApacheReverseProxy.php) but in this howto "virtual host" are used.
 
Additional info:
  • I'm running on SME 6.0.1-01.
  • My ZopeInstance is installed in an ibay "/home/e-smith/files/ibays/cms/files" and the id of the plone-site is "plone".
  • My servername is "mlkserver" and my domainname is "focus.demon.nl".
  • So the url to my plone site is http://mlkserver:8080/plone".
Is it correct to use:


To prevend messing up absolute and relative url's, I have to add a SiteRoot object (SiteAccess is pre-installed in zope 2.7). Is it correct to edit the fields: "Base" and "Path" as follows:


Can anyone help me please, I'm a newbie on this?

Regards,

Rien
(Netherlands)
Rien
(The Netherlands)......

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Problems intalling Python / Plone
« Reply #14 on: July 04, 2004, 09:45:53 PM »
Hi,

I managed to adjust the "httpd.conf" file. I created a file called "97proxyplone" in the directory: "/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/"

The file "97proxyplone" contains the following code:

Code: [Select]

ProxyPass /plone http://mlkserver:8080/plone
ProxyPassReverse /plone http://mlkserver:8080/plone


After this I restarted Apache with:

server-# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
server-# service httpd graceful

I opened the Zope "manage" panel, in my case "http://mlkserver:8080/manage". I added a "SiteRoot" object to the plone-site and filled the fields:

Title: ..leave it blank...
Base: http://focus.demon.nl/plone
Path: /plone

Now Plone works as it should be.


Regards,

Rien
(Netherlands)
Rien
(The Netherlands)......