[Zope-dev] Problem in strating zope server
sanjay singh
sanjay.singh@tatainfotech.com
Thu, 21 Feb 2002 12:03:39 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C1BACF.CC41DE70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I m installing Zope 4.2.1 on linux.After getting it installed, =
when its strated it strats and gives the port it is listening to.
But when i access it through browser then there is no connection =
established with the server.
It gives following output while installing and starting.
[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 80
-rw-r--r-- 1 506 users 75448 Jan 21 2001 Data.fs.in
[root@EP Zope2.4.1]# ls -l
total 92
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 Extensions
-rw-r--r-- 1 506 users 3026 Sep 4 18:54 LICENSE.txt
-rw-r--r-- 1 506 users 987 Apr 29 1999 README.txt
drwxr-xr-x 4 506 users 4096 Sep 4 19:18 ZServer
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 bin
drwxr-xr-x 4 506 users 4096 Sep 4 19:18 doc
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 import
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 inst
-rwxr-xr-x 1 506 users 225 Jul 23 1999 install
drwxr-xr-x 4 506 users 4096 Sep 4 19:18 lib
drwxr-xr-x 8 506 users 4096 Sep 4 19:18 pcgi
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 utilities
drwxrwxr-x 2 506 users 4096 Sep 4 19:18 var
-rw-r--r-- 1 506 users 25607 Jun 18 19:19 z2.py
-rw-r--r-- 1 506 users 9546 Dec 8 2000 zpasswd.py
#########################################################################=
#####################################
[root@EP Zope2.4.1]# ./install -u ep -g users
-------------------------------------------------------------------------=
-----
Compiling python modules
File "/home/ep/zope/Zope2.4.1/lib/python2.1/test/nocaret.py", line 2
[x for x in x] =3D x
SyntaxError: can't assign to list comprehension
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future3.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future4.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future5.py, line 4)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future6.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future7.py, line 3)
-------------------------------------------------------------------------=
-----
-------------------------------------------------------------------------=
-----
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'IaejsWAa'.
You can change the name and password through the web
interface or using the 'zpasswd.py' script.
=20
chgrp users /home/ep/zope/Zope2.4.1/inituser
chown ep /home/ep/zope/Zope2.4.1/inituser
chmod 0660 /home/ep/zope/Zope2.4.1/inituser
chgrp users /home/ep/zope/Zope2.4.1/var
chown ep /home/ep/zope/Zope2.4.1/var
chmod 0771 /home/ep/zope/Zope2.4.1/var
-------------------------------------------------------------------------=
-----
setting dir permissions
-------------------------------------------------------------------------=
-----
creating default database
chgrp users /home/ep/zope/Zope2.4.1/var/Data.fs
chown ep /home/ep/zope/Zope2.4.1/var/Data.fs
chmod 0660 /home/ep/zope/Zope2.4.1/var/Data.fs
-------------------------------------------------------------------------=
-----
Writing the pcgi resource file (ie cgi script), =
/home/ep/zope/Zope2.4.1/Zope.cgi
chgrp users /home/ep/zope/Zope2.4.1/Zope.cgi
chown ep /home/ep/zope/Zope2.4.1/Zope.cgi
chmod 0775 /home/ep/zope/Zope2.4.1/Zope.cgi
-------------------------------------------------------------------------=
-----
Creating start script, start
chgrp users /home/ep/zope/Zope2.4.1/start
chown ep /home/ep/zope/Zope2.4.1/start
chmod 0771 /home/ep/zope/Zope2.4.1/start
-------------------------------------------------------------------------=
-----
Creating stop script, stop
chgrp users /home/ep/zope/Zope2.4.1/stop
chown ep /home/ep/zope/Zope2.4.1/stop
chmod 0771 /home/ep/zope/Zope2.4.1/stop
-------------------------------------------------------------------------=
-----
Done!
#########################################################################=
#####################################
[root@EP Zope2.4.1]#=20
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 Extensions
-rw-r--r-- 1 506 users 3026 Sep 4 18:54 LICENSE.txt
-rw-r--r-- 1 506 users 987 Apr 29 1999 README.txt
drwxrwxr-x 4 ep users 4096 Oct 17 18:44 ZServer
-rwxrwxr-x 1 ep users 501 Oct 17 18:44 Zope.cgi
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 bin
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 doc
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 import
-rw-rw---- 1 ep users 39 Oct 17 18:44 inituser
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 inst
-rwxr-xr-x 1 506 users 225 Jul 23 1999 install
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 lib
drwxrwxr-x 8 ep users 4096 Oct 17 18:44 pcgi
-rwxrwx--x 1 ep users 155 Oct 17 18:44 start
-rwxrwx--x 1 ep users 56 Oct 17 18:44 stop
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 utilities
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 var
-rw-r--r-- 1 506 users 25607 Jun 18 19:19 z2.py
-rw-r--r-- 1 root root 17133 Oct 17 18:44 z2.pyc
-rw-r--r-- 1 506 users 9546 Dec 8 2000 zpasswd.py
-rw-r--r-- 1 root root 6783 Oct 17 18:44 zpasswd.pyc
[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 160
-rw-rw---- 1 ep users 75448 Oct 17 18:44 Data.fs
-rw-r--r-- 1 506 users 75448 Jan 21 2001 Data.fs.in
[root@EP var]#=20
[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 160
-rw-rw---- 1 ep users 75448 Oct 17 18:44 Data.fs
-rw-r--r-- 1 506 users 75448 Jan 21 2001 Data.fs.in
[root@EP var]# cd ..
[root@EP Zope2.4.1]# chmod o+w var
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 Extensions
-rw-r--r-- 1 506 users 3026 Sep 4 18:54 LICENSE.txt
-rw-r--r-- 1 506 users 987 Apr 29 1999 README.txt
drwxrwxr-x 4 ep users 4096 Oct 17 18:44 ZServer
-rwxrwxr-x 1 ep users 501 Oct 17 18:44 Zope.cgi
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 bin
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 doc
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 import
-rw-rw---- 1 ep users 39 Oct 17 18:44 inituser
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 inst
-rwxr-xr-x 1 506 users 225 Jul 23 1999 install
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 lib
drwxrwxr-x 8 ep users 4096 Oct 17 18:44 pcgi
-rwxrwx--x 1 ep users 155 Oct 17 18:44 start
-rwxrwx--x 1 ep users 56 Oct 17 18:44 stop
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 utilities
drwxrwxrwx 2 ep users 4096 Oct 17 18:44 var
-rw-r--r-- 1 506 users 25607 Jun 18 19:19 z2.py
-rw-r--r-- 1 root root 17133 Oct 17 18:44 z2.pyc
-rw-r--r-- 1 506 users 9546 Dec 8 2000 zpasswd.py
-rw-r--r-- 1 root root 6783 Oct 17 18:44 zpasswd.pyc
[root@EP Zope2.4.1]# cd var
############# changing the default permission of any file created (root =
user)
[root@EP var]# umask g=3Drw,o=3Drw
[root@EP var]# vi newroot1
[root@EP var]# ls -l
total 180
-rw-rw--w- 1 ep users 75448 Oct 17 18:44 Data.fs
-rw-r--rw- 1 506 users 75448 Jan 21 2001 Data.fs.in
-rw-rw--w- 1 ep ep 10 Oct 17 19:20 latest
-rw-rw-rw- 1 ep ep 16 Oct 17 19:22 new
-rw-r--r-- 1 root root 11 Oct 17 19:23 new1
-rw-r--r-- 1 root root 21 Oct 17 19:24 newroot
-rw-rw-rw- 1 root root 11 Oct 17 19:25 newroot1 #after =
changing umask value to 011
#########################################################################=
############################
STARTING ZOPE ----some details
./start=20
-u username or uid number
=20
The username to run ZServer as. You may want to run ZServer as =
'nobody'
or some other user with limited resouces. The only works under Unix, =
and
if ZServer is started by root. The default is: %(UID)s
-P [ipaddress:]number
Set the web, ftp and monitor port numbers simultaneously
as offsets from the number. The web port number will be number+80.
The FTP port number will be number+21. The monitor port number will
be number+99.
The number can be preeceeded by an ip address follwed by a colon
to specify an address to listen on. This allows different servers
to listen on different addresses.
-w port
=20
The Web server (HTTP) port. This defaults to %(HTTP_PORT)s. The
standard port for HTTP services is 80. If this is a dash
(e.g. -w -), then HTTP is disabled.
The number can be preeceeded by an ip address follwed by a colon
to specify an address to listen on. This allows different servers
to listen on different addresses.
Multiple -w options can be provided to run multiple servers.
-l path
Path to the ZServer log file. If this is a relative path then the
log file will be written to the 'var' directory. The default is
%(LOG_FILE)s.=20
#########################################################################=
############################
[root@EP Zope2.4.1]# ./start -u ep -P 163.122.12.10:8000
------
2001-10-17T16:20:23 INFO(0) ZServer HTTP server started at Wed Oct 17 =
21:50:23 2001
Hostname: 163.122.12.10
Port: 8080
------
2001-10-17T16:20:23 INFO(0) ZServer FTP server started at Wed Oct 17 =
21:50:23 2001
Hostname: EP.tatainfotech.com
Port: 8021
------
2001-10-17T16:20:23 INFO(0) ZServer PCGI Server started at Wed Oct 17 =
21:50:23 2001
Unix socket: /home/ep/zope/Zope2.4.1/var/pcgi.soc
AND THE SERVER STARTS SUCCESSFULLY =
THEREAFTER.........................................................
But on accessing it through browser it says no connection established =
with tyhe server.
Kindly answer me what is wrong.
Thankns in advance,
Regards...
Sanjay
------=_NextPart_000_0007_01C1BACF.CC41DE70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> I=20
m installing Zope 4.2.1 on linux.After getting it installed, when its =
strated it=20
strats and gives the port it is listening to.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But when i access it through browser =
then there is=20
no connection established with the server.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>It gives following output while =
installing and=20
starting.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><XMP>[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 80
-rw-r--r-- 1 506 users 75448 Jan 21 2001 Data.fs.in
[root@EP Zope2.4.1]# ls -l
total 92
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 Extensions
-rw-r--r-- 1 506 users 3026 Sep 4 18:54 LICENSE.txt
-rw-r--r-- 1 506 users 987 Apr 29 1999 README.txt
drwxr-xr-x 4 506 users 4096 Sep 4 19:18 ZServer
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 bin
drwxr-xr-x 4 506 users 4096 Sep 4 19:18 doc
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 import
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 inst
-rwxr-xr-x 1 506 users 225 Jul 23 1999 install
drwxr-xr-x 4 506 users 4096 Sep 4 19:18 lib
drwxr-xr-x 8 506 users 4096 Sep 4 19:18 pcgi
drwxr-xr-x 2 506 users 4096 Sep 4 19:18 utilities
drwxrwxr-x 2 506 users 4096 Sep 4 19:18 var
-rw-r--r-- 1 506 users 25607 Jun 18 19:19 z2.py
-rw-r--r-- 1 506 users 9546 Dec 8 2000 zpasswd.py
#########################################################################=
#####################################
[root@EP Zope2.4.1]# ./install -u ep -g users
-------------------------------------------------------------------------=
-----
Compiling python modules
File "/home/ep/zope/Zope2.4.1/lib/python2.1/test/nocaret.py", line 2
[x for x in x] =3D x
SyntaxError: can't assign to list comprehension
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future3.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future4.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future5.py, line 4)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future6.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the =
file (test_future7.py, line 3)
-------------------------------------------------------------------------=
-----
-------------------------------------------------------------------------=
-----
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'IaejsWAa'.
You can change the name and password through the web
interface or using the 'zpasswd.py' script.
=20
chgrp users /home/ep/zope/Zope2.4.1/inituser
chown ep /home/ep/zope/Zope2.4.1/inituser
chmod 0660 /home/ep/zope/Zope2.4.1/inituser
chgrp users /home/ep/zope/Zope2.4.1/var
chown ep /home/ep/zope/Zope2.4.1/var
chmod 0771 /home/ep/zope/Zope2.4.1/var
-------------------------------------------------------------------------=
-----
setting dir permissions
-------------------------------------------------------------------------=
-----
creating default database
chgrp users /home/ep/zope/Zope2.4.1/var/Data.fs
chown ep /home/ep/zope/Zope2.4.1/var/Data.fs
chmod 0660 /home/ep/zope/Zope2.4.1/var/Data.fs
-------------------------------------------------------------------------=
-----
Writing the pcgi resource file (ie cgi script), =
/home/ep/zope/Zope2.4.1/Zope.cgi
chgrp users /home/ep/zope/Zope2.4.1/Zope.cgi
chown ep /home/ep/zope/Zope2.4.1/Zope.cgi
chmod 0775 /home/ep/zope/Zope2.4.1/Zope.cgi
-------------------------------------------------------------------------=
-----
Creating start script, start
chgrp users /home/ep/zope/Zope2.4.1/start
chown ep /home/ep/zope/Zope2.4.1/start
chmod 0771 /home/ep/zope/Zope2.4.1/start
-------------------------------------------------------------------------=
-----
Creating stop script, stop
chgrp users /home/ep/zope/Zope2.4.1/stop
chown ep /home/ep/zope/Zope2.4.1/stop
chmod 0771 /home/ep/zope/Zope2.4.1/stop
-------------------------------------------------------------------------=
-----
Done!
#########################################################################=
#####################################
[root@EP Zope2.4.1]#=20
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 Extensions
-rw-r--r-- 1 506 users 3026 Sep 4 18:54 LICENSE.txt
-rw-r--r-- 1 506 users 987 Apr 29 1999 README.txt
drwxrwxr-x 4 ep users 4096 Oct 17 18:44 ZServer
-rwxrwxr-x 1 ep users 501 Oct 17 18:44 Zope.cgi
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 bin
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 doc
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 import
-rw-rw---- 1 ep users 39 Oct 17 18:44 inituser
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 inst
-rwxr-xr-x 1 506 users 225 Jul 23 1999 install
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 lib
drwxrwxr-x 8 ep users 4096 Oct 17 18:44 pcgi
-rwxrwx--x 1 ep users 155 Oct 17 18:44 start
-rwxrwx--x 1 ep users 56 Oct 17 18:44 stop
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 utilities
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 var
-rw-r--r-- 1 506 users 25607 Jun 18 19:19 z2.py
-rw-r--r-- 1 root root 17133 Oct 17 18:44 z2.pyc
-rw-r--r-- 1 506 users 9546 Dec 8 2000 zpasswd.py
-rw-r--r-- 1 root root 6783 Oct 17 18:44 zpasswd.pyc
[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 160
-rw-rw---- 1 ep users 75448 Oct 17 18:44 Data.fs
-rw-r--r-- 1 506 users 75448 Jan 21 2001 Data.fs.in
[root@EP var]#=20
[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 160
-rw-rw---- 1 ep users 75448 Oct 17 18:44 Data.fs
-rw-r--r-- 1 506 users 75448 Jan 21 2001 Data.fs.in
[root@EP var]# cd ..
[root@EP Zope2.4.1]# chmod o+w var
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 Extensions
-rw-r--r-- 1 506 users 3026 Sep 4 18:54 LICENSE.txt
-rw-r--r-- 1 506 users 987 Apr 29 1999 README.txt
drwxrwxr-x 4 ep users 4096 Oct 17 18:44 ZServer
-rwxrwxr-x 1 ep users 501 Oct 17 18:44 Zope.cgi
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 bin
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 doc
drwxrwxr-x 2 ep users 4096 Sep 4 19:18 import
-rw-rw---- 1 ep users 39 Oct 17 18:44 inituser
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 inst
-rwxr-xr-x 1 506 users 225 Jul 23 1999 install
drwxrwxr-x 4 ep users 4096 Sep 4 19:18 lib
drwxrwxr-x 8 ep users 4096 Oct 17 18:44 pcgi
-rwxrwx--x 1 ep users 155 Oct 17 18:44 start
-rwxrwx--x 1 ep users 56 Oct 17 18:44 stop
drwxrwxr-x 2 ep users 4096 Oct 17 18:44 utilities
drwxrwxrwx 2 ep users 4096 Oct 17 18:44 var
-rw-r--r-- 1 506 users 25607 Jun 18 19:19 z2.py
-rw-r--r-- 1 root root 17133 Oct 17 18:44 z2.pyc
-rw-r--r-- 1 506 users 9546 Dec 8 2000 zpasswd.py
-rw-r--r-- 1 root root 6783 Oct 17 18:44 zpasswd.pyc
[root@EP Zope2.4.1]# cd var
############# changing the default permission of any file created (root =
user)
[root@EP var]# umask g=3Drw,o=3Drw
[root@EP var]# vi newroot1
[root@EP var]# ls -l
total 180
-rw-rw--w- 1 ep users 75448 Oct 17 18:44 Data.fs
-rw-r--rw- 1 506 users 75448 Jan 21 2001 Data.fs.in
-rw-rw--w- 1 ep ep 10 Oct 17 19:20 latest
-rw-rw-rw- 1 ep ep 16 Oct 17 19:22 new
-rw-r--r-- 1 root root 11 Oct 17 19:23 new1
-rw-r--r-- 1 root root 21 Oct 17 19:24 newroot
-rw-rw-rw- 1 root root 11 Oct 17 19:25 newroot1 #after =
changing umask value to 011
#########################################################################=
############################
STARTING ZOPE ----some details
./start=20
-u username or uid number
=20
The username to run ZServer as. You may want to run ZServer as =
'nobody'
or some other user with limited resouces. The only works under Unix, =
and
if ZServer is started by root. The default is: %(UID)s
-P [ipaddress:]number
Set the web, ftp and monitor port numbers simultaneously
as offsets from the number. The web port number will be number+80.
The FTP port number will be number+21. The monitor port number will
be number+99.
The number can be preeceeded by an ip address follwed by a colon
to specify an address to listen on. This allows different servers
to listen on different addresses.
-w port
=20
The Web server (HTTP) port. This defaults to %(HTTP_PORT)s. The
standard port for HTTP services is 80. If this is a dash
(e.g. -w -), then HTTP is disabled.
The number can be preeceeded by an ip address follwed by a colon
to specify an address to listen on. This allows different servers
to listen on different addresses.
Multiple -w options can be provided to run multiple servers.
-l path
Path to the ZServer log file. If this is a relative path then the
log file will be written to the 'var' directory. The default is
%(LOG_FILE)s.=20
#########################################################################=
############################
[root@EP Zope2.4.1]# ./start -u ep -P 163.122.12.10:8000
------
2001-10-17T16:20:23 INFO(0) ZServer HTTP server started at Wed Oct 17 =
21:50:23 2001
Hostname: 163.122.12.10
Port: 8080
------
2001-10-17T16:20:23 INFO(0) ZServer FTP server started at Wed Oct 17 =
21:50:23 2001
Hostname: EP.tatainfotech.com
Port: 8021
------
2001-10-17T16:20:23 INFO(0) ZServer PCGI Server started at Wed Oct 17 =
21:50:23 2001
Unix socket: /home/ep/zope/Zope2.4.1/var/pcgi.soc
AND THE SERVER STARTS SUCCESSFULLY =
THEREAFTER.........................................................
<FONT size=3D3>But on accessing it through browser it says no connection =
established with tyhe server.</FONT></XMP><XMP>=A0</XMP><XMP><FONT =
size=3D3>Kindly answer me what is =
wrong.</FONT></XMP><XMP>=A0</XMP><XMP><FONT size=3D3>Thankns in =
advance,</FONT></XMP><XMP><FONT =
size=3D3>Regards...</FONT></XMP><XMP><FONT =
size=3D3>Sanjay</FONT></XMP></FONT></DIV></BODY></HTML>
------=_NextPart_000_0007_01C1BACF.CC41DE70--