Marc

Here is output


[root@PFTES ~]# cd /usr/local/pf/bin
[root@PFTES bin]# ls
flip.pl  pfcmd  pfcmd_vlan
[root@PFTES bin]# pfcmd
-bash: pfcmd: command not found
[root@PFTES ~]# cd /etc/init.d
[[root@PFTES ~]# cd /etc/init.d
[root@PFTES init.d]# service packetfence start
Starting PacketFence...Checking configuration sanity...
Uncaught exception from user code:
        unable to connect to database: Can't connect to local MySQL
server throu                                           gh socket
'/var/lib/mysql/mysql.sock' (2) at /usr/local/pf/lib/pf/person.pm line
52
 at /usr/local/pf/lib/pf/db.pm line 104
        pf::db::db_connect() called at /usr/local/pf/lib/pf/db.pm line
127
        pf::db::get_db_handle() called at /usr/local/pf/lib/pf/person.pm
line 52
        pf::person::person_db_prepare() called at
/usr/local/pf/lib/pf/db.pm lin
e 224
        pf::db::db_query_execute('person', 'HASH(0xac0ba3c)',
'person_exist_sql'                                             , 1)
called at /usr/local/pf/lib/pf/person.pm line 79
        pf::person::person_exist(1) called at
/usr/local/pf/lib/pf/pfcmd/checkup
.pm line 332
        pf::pfcmd::checkup::database() called at
/usr/local/pf/lib/pf/pfcmd/chec
kup.pm line 93
        pf::pfcmd::checkup::sanity_check('named', 'dhcpd', 'httpd',
'snmptrapd',                                              'pfdetect',
'pfsetvlan', 'pfdhcplistener', 'pfmon', 'snort', ...) called at /us
r/local/pf/bin/pfcmd line 1339
        main::checkup('named', 'dhcpd', 'httpd', 'snmptrapd',
'pfdetect', 'pfset                                             vlan',
'pfdhcplistener', 'pfmon', 'snort', ...) called at
/usr/local/pf/bin/pfcm                                             d
line 1255
        main::service() called at /usr/local/pf/bin/pfcmd line 195
        main::__ANON__() called at /usr/local/pf/bin/pfcmd line 211

Other notes: 
It did give the following message before but I went well after reboot. I
verified the SELunix the status which I disabled it by editing
/etc/seliux/config

[root@PFTES ~]# service packetfence status
Uncaught exception from user code:
SELinux is in enforcing mode. This is currently not supported in
PacketFence at /usr/lib/perl5/vendor_perl/5.8.8/Log/Log4perl/Logger.pm
line 884
 at /usr/local/pf/bin/pfcmd line 106

[root@PFTES ~]# more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

Thank you


Daniel Li



------------------------------

Message: 3
Date: Fri, 01 Apr 2011 15:39:50 -0400
From: Marc-Andr? Jutras <[email protected]>
Subject: Re: [Packetfence-users] Unable to access Web Admin after
        inital setup on CentOS 5.5
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Daniel,

pfcmd is located under /usr/local/pf/bin  ( cannot be called directly 
from anywhere unless you add the /usr/local/pf/bin in your path )

and there's no pid in your status... please, try /etc/init.d/packetfence

start     -

service packetfence status should normally report some pid, in your 
case, all of them = 0 !

  Still not working after this ?, take the packetfence.log file and send

it to me... ( located in /usr/local/pf/logs/ )

M-A


Attachment: packetfence.log
Description: packetfence.log

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to