Configuring and Running Zope

Creating a Zope Instance
You will need to create an “instance home”. This is a directory that contains configuration and data for a Zope server process. The instance home is created using the mkzopeinstance script:
user(at)shellmix ~/> mkzopeinstance
output :
Please choose a directory in which you'd like to install
Zope "instance home" files such as database files, configuration
files, etc.
Directory: test1
Please choose a username and password for the initial user.
These will be the credentials you use to initially manage
your new Zope instance.
Username: admin
Password:
Verify password:
Configuring Zope
Zope uses for HTTP or FTP. The default HTTP and FTP ports used by Zope are 8080 and 8021 respectively. You can change the ports used by editing zope.conf appropriately.
user(at)shellmix ~/test1> ee etc/zope.conf
The section in the configuration file looks like this:
<http-server>
# valid keys are "address" and "force-connection-close"
#address 8080
address 8332
# force-connection-close on
</http-server>
</http-server>
The address can just be a port number as shown, or a host:port pair to bind only to a specific interface.
After making any changes to the configuration file, you need to restart any running Zope server for the affected instance before changes are in effect.
Running Zope in the Foreground
To run Zope without detaching from the console, use the fg command (short for foreground):
user(at)shellmix ~/test1> bin/zopectl fg
user(at)shellmix ~/test1> bin/zopectl fg
Check http://213.155.190.134:8332/
In this mode, Zope emits its log messages to the console, and does not detach from the terminal.
Running Zope as a Daemon
Once an instance home has been created, the Zope server can now be started using this command:
user(at)shellmix ~/test1> bin/zopectl start
user(at)shellmix ~/test1> bin/zopectl start
Check http://213.155.190.134:8332/
Logging In To Zope
Once you’ve started Zope, you can then connect to the Zope webserver by directing your browser to:
http://213.155.190.134:8332/manage
http://213.155.190.134:8332/manage
If you changed the HTTP port as described, use the port you configured.
You will be prompted for a user name and password. Use the user name and password you provided in response to the prompts issued during the “make instance” process.
Now you’re off and running! You should be looking at the Zope management screen which is divided into two frames. On the left you can navigate between Zope objects and on the right you can edit them by selecting different management functions with the tabs at the top of the frame.
If you haven’t used Zope before, you should head to the Zope web site and read some documentation. The Zope Documentation section is a good place to start. You can access it at http://docs.zope.org/


Tutorials 