Setting Up Plone / Zope
We are setting up plone on a clean install of FC5. Some steps of this how to can be completely skipped and will be marked optional. Our system was intentionally partitioned for security and stability. There are many ways of doing this, but for this instance we chose:
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 8.0G 1.4G 6.2G 19% /
/dev/hda1 104M 15M 84M 15% /boot
tmpfs 264M 0 264M 0% /dev/shm
/dev/mapper/VolGroup00-LogVol00 193G 728M 183G 1% /home
/dev/hda5 4.2G 76M 3.9G 2% /tmp
/dev/hda2 11G 3.2G 6.7G 33% /usr
/dev/hda6 17G 296M 16G 2% /var
** You will need the root password multiple times during this setup
Prerequisite: Setting up Apache and get it answering web requests
I am not going to rehash Apache howto's which have been written. Ask any of those questions in those areas please.
Stanton Finely http://stanton-finley.net/fedora_cor...notes.html#Web
Fedora Jim http://www.fedorajim.homelinux.com/p...tualhosts.html
You should really have apache running and functioning before starting the plone set up, not because of Zope or Plone, just to check connections and it only takes a few minutes. Possible issues you will hit: Router not port forwarding, SELinux not set correctly, and httpd not running.
Step 1: Backup your configs (not really optional)
** The only caveat here is that you will need to have room for the archives to be made
Typically on systems we admin we make ourselves archives of the partitions which get most admins out of jams the quickest and where most packages are setup and configured.
Open a root terminal (and keep it open for this howto). This can be done by going to Applications | Accessories | Terminal
Step 2: Installing the packages
tar -czvf etc.tar.gz etc/
tar -czvf usr.tar.gz usr/
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.working
In Step 1's terminal type:
yum install plone zope python
Step 3: Setting up Zope
Make sure Zope is funtional
Open Firefox and navigate to http://localhost:8080/
This should startup the Zope quick start page. Leave the browser open. You will also notice the red error: “WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a supported combination. Don't file bugreports or ask for support on zope.org.” I have not found any issues with this as of yet.
Stop Zope so we can add a user. Change the “username” and “password” to your Zope User. Restart Zope.
service zope stop
zopectl adduser username password
service zope start
Back in FireFox Click on the Zope Management Interface link near the bottom of text in the page and log in using the credentials you just created. http://localhost:8080/manage
Step 4: Creating A Plone Instance
Click on the “Root Folder” link in the left menu from the Zope management screen
In the Drop down box in the right menu, select Plone Site and click the Add button
In the three fields Enter a name and use only ASCII characters.
For our purposes place your full domain name in each of the three input boxes
REPLACE yourdomain.com with your domain or dyndns domain. Ignore the text which says only letters A-Z are allowed.
Description: Our Plone Installation for yourdomain.com
After a few seconds you should be greeted with a Plone front page in the right content page.
By typing in the following URL in your browser's address bar you can access the Plone site directly:
Plone is now working
Step 5: SELinux
In Gnome go to System | Administration | Security Level and Firewall
Enter the root password when asked and then select the SELinux tab.
Scroll down to the httpd section and click the arrow to the left.
The following item will need to be checked:
Allow HTTPD scripts and modules to connect to the network
Everything else is unchecked on our installation and not needed.
Step 6: Apache forwarding
I assume you have your apache working. If not you will have to utilize the mapping settings in the virtualsitemonster in Zope.
Back in the terminal window
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.noPlone
Locate your virtual settings you used to get the server working.
You can either comment them out by placing # on the front of the lines or delete the areas all together:
RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/yourdomain.com:80/yourdomain.com/VirtualHostRoot/$1 [L,P]
Replace all FOUR yourdomain.com with your domain name. We are using a dyndns name.
Save and exit gedit
Step 7: Restart
Step 8: Chkconfig
service zope restart
service httpd restart
Go to System | Administrator | Server Settings | Services and make sure Httpd and Zope are set to autostart on boot up by place a check mark in the box and saving it.
Step 9: Hosts file (optional)
we edited the /etc/hosts file to include our dyndns
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
127.0.0.1 wshawn.homelinux.net wshawn
close the terminal