Attention

This document was written for an old version of Plone, Plone 3, and was last updated 1128 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Start All Services

by Bryan Hinton last modified Apr 20, 2009 05:35 PM
Configure CacheSetup - Start Apache, Squid, Plone
  1. open a browser window and go to http://mydomain.com/manage
  2. login as admin:mysecretpassphrase
  3. go to /portal_squid
  4. select the Proxy Urls tab and input the following in the corresponding sections:

 Cache URLs

http://127.0.0.1:8902
https://127.0.0.1:8902

 Purge URLs

Python:object.getUrlsToPurge(setup='squid_behind_apache')

 

Now go to http://mydomain.com/portal_cache_settings

Enable CacheFu

Default Cache Policy (v1.2)

   Proxy Cache Purge Configuration

        Purge with VHM URLs (squid/varnish behind apache, VHM virtual hosting)

Under Site Domains place the following

http://mydomain.com:80

http://www.mydomain.com:80

https://mydomain.com:443

https://www.mydomain.com:443

Under Proxy Cache Domains place the following

http://127.0.0.1:8902

https://127.0.0.1:8902

Now click on Save

Restart PF

# /etc/rc.d/pf restart

 

Before starting all services, you will need to make sure that /etc/hosts is properly configured:

Here is an example:

::1     localhost
127.0.0.1     localhost
a.b.c.e   internalhostname internalhostname.mydomain.com
a.b.c.d   mydomain.com www.mydomain.com

Now let's check all permissions and restart Apache, Squid, and Plone/Zope

# apachectl stop
# kill -9 `cat /usr/local/plone/mydomain.com/var/squid.pid` \
&& rm /usr/local/plone/mydomain.com/var/squid.pid
# /usr/local/plone/mydomain.com/bin/client1 stop
# /usr/local/plone/mydomain.com/bin/zeoserver stop

# chown -R zadmin:www /usr/local/plone/mydomain*
# chown -R www:www /usr/local/www/data
# cd /usr/local/plone/mydomain.com
# ./bin/zeoserver start
# ./bin/client1 start
# ./bin/squid-instance
# apachectl start


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.