/etc/zce.rc doesn't exist! - Message

General discussion on Zend Server for IBM System i
Post Reply
jogisarge
Posts: 17
Joined: Tue Jun 15, 2010 12:59 pm

/etc/zce.rc doesn't exist! - Message

Post by jogisarge » Mon Dec 06, 2010 6:19 pm

Hi,

i installed the newest Zend Server on our i5 / V6R1
if i try to check a script in the Qshell

Code: Select all

/usr/local/zendsvr/bin/php-cli /www/zendsvr/htdocs/webtest.php
the following message is shown

Code: Select all

/etc/zce.rc doesn't exist!
My php-cli file in the path /usr/local/zendsvr/bin looks like

Code: Select all

#!/bin/sh
if [ -f /etc/zce.rc ];then
    . /etc/zce.rc
else
    echo "/etc/zce.rc doesn't exist!"
    exit 1;
fi
LIBPATH=$ZCE_PREFIX/lib
$ZCE_PREFIX/bin/php "$@"

if i try it without cli

Code: Select all

/usr/local/zendsvr/bin/php /www/zendsvr/htdocs/webtest.php
the error

Code: Select all

qsh: 001-0078 Prozess beendet durch Signal 5.

the php-script has only one line

Code: Select all

echo "Hello";
Has anybody an idea how to fix my problem.

erich_hieden
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: /etc/zce.rc doesn't exist! - Message

Post by erich_hieden » Mon Dec 06, 2010 6:32 pm

Have you checked if /etc/zce.rc is really missing, or can't php-cli access it? Likewise have you tried running the script as QSECOFR or any other user with *ALLOBJ authority?

If zce.rc is really missing, here's the content of mine:

Code: Select all

ZCE_PREFIX=/usr/local/zendsvr
if [ -z "$LIBPATH" ];then
   LIBPATH=/lib:/usr/lib:/usr/local/zendsvr/lib
else
   LIBPATH=$LIBPATH:/usr/local/zendsvr/lib
fi
export LIBPATH
APACHE_VER=2.2.11
WEB_USER=qtmhhttp
WEB_GROUP=nogroup
APACHE_PID_FILE=
PRODUCT_NAME=ZendServer
PRODUCT_VERSION=5.0.0
export INSTALLATION_UID=091708121207
DIST=pe
JB_EN=true
ZEND_TMPDIR=/tmp
Regards

jogisarge
Posts: 17
Joined: Tue Jun 15, 2010 12:59 pm

Re: /etc/zce.rc doesn't exist! - Message

Post by jogisarge » Mon Dec 06, 2010 6:42 pm

Hi erich,

my etc/zce.rc is in the right folder and looks like yours

Code: Select all

ZCE_PREFIX=/usr/local/zendsvr
if [ -z "$LIBPATH" ];then
   LIBPATH=/lib:/usr/lib:/usr/local/zendsvr/lib
else
   LIBPATH=$LIBPATH:/usr/local/zendsvr/lib
fi
export LIBPATH
APACHE_VER=2.2.11
WEB_USER=qtmhhttp
WEB_GROUP=nogroup
APACHE_PID_FILE=
PRODUCT_NAME=ZendServer
PRODUCT_VERSION=5.0.0
export INSTALLATION_UID=091708121207
DIST=pe
JB_EN=true
ZEND_TMPDIR=/tmp
the user i tried with has qsecofr rights.

erich_hieden
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: /etc/zce.rc doesn't exist! - Message

Post by erich_hieden » Tue Dec 07, 2010 10:26 am

User class *secofr is not enough. The user needs to have the rights to access the file. You can either do this by making sure he has access using ls -l in qshell (all subfolders as well) and changing access rights with chmod or you give him the special authority *allobj. I had this same problem in the past when a user was *secofr but didn't have *allobj spcaut and therefore he couldn't access all files in IFS.

Regards

jogisarge
Posts: 17
Joined: Tue Jun 15, 2010 12:59 pm

Re: /etc/zce.rc doesn't exist! - Message

Post by jogisarge » Tue Dec 07, 2010 10:55 am

hi erich,

my user has the special authority *allobj.
i have seen another problem.
if i restart the Environment -> go zendsvr/zsmenu -> option 9
on the screen is an error message

Code: Select all

File /tmp/http.log can not be created.
has that someting to do with my other problem ?
The folder /tmp exists.

greets

erich_hieden
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: /etc/zce.rc doesn't exist! - Message

Post by erich_hieden » Tue Dec 07, 2010 11:06 am

I suppose you have checked all Prereqs as mentioned at http://files.zend.com/help/Zend-Server- ... server.htm?

Otherwise I'm at a loss atm beside reinstalling ZendServer.

Regards

jogisarge
Posts: 17
Joined: Tue Jun 15, 2010 12:59 pm

Re: /etc/zce.rc doesn't exist! - Message

Post by jogisarge » Tue Dec 07, 2010 11:49 am

i have checked all Prereqs before and the ptfs are also installed.

aseiden
Posts: 875
Joined: Thu Apr 09, 2009 5:45 pm

Re: /etc/zce.rc doesn't exist! - Message

Post by aseiden » Tue Dec 07, 2010 9:52 pm

This is the /etc folder that's directly off the root, right? There may be a second copy in /usr/local/zendsvr, but I think the important one here is off the root.

Alan

aseiden
Posts: 875
Joined: Thu Apr 09, 2009 5:45 pm

Re: /etc/zce.rc doesn't exist! - Message

Post by aseiden » Wed Sep 21, 2011 7:44 pm

/etc/zce.rc is a symbolic link to /usr/local/zendsvr/etc/zce.rc.

Therefore, you must set permissions on the /usr/local/zendsvr/etc folder as well.

Post Reply