[Phpdhcpadmin-support] phpDHCPAdmin installnaltion problem
Manage your ISC DHCPD service
Brought to you by:
jgerfen
From: henry <hx...@ho...> - 2011-07-24 15:29:24
|
hi, expert Recently I set up a DHCP server , I want to configure the phpDHCPAdmin get the easy to management, my system info: centos: 5.5 32-bit php 5.2 mysql 5.6 I set up the all the steps follow the documents, but when I point it access in firefox there is have no any display, I created the phpDHCPAdmin databases by manually in mysql command to import, there is inc.config.php <?PHP /* * phpDHCPAdmin * Jason Gerfen [jas...@gm...] * * inc.config.php - Pre-defined global variables */ // database configuration $defined['hostname'] = "localhost"; $defined['dbhost'] = "localhost"; $defined['username'] = "root"; $defined['password'] = "talent"; $defined['dbname'] = "phpDHCPAdmin"; // support & log notification email addresses $defined['mail'] = ""; // application path information $defined['virpath'] = "/var/www/html/phpDHCPAdmin-0.9.5-beta"; // this folder needs write permissions // also used for temporary file writes and dhcpd.conf $defined['confpath'] = $defined['virpath'] . "conf/"; // path to the dhcpd.leases file this allows // lease management if permissions allow (write access) $defined['leases'] = $defined['confpath'] . "dhcpd.leases"; // title and copyright information $defined['title'] = "phpDHCPAdmin-0.9.5-beta"; $defined['description'] = "Manage the ISC DHCPD service"; // if this is removed the GPL license is out of compliance // please refer to the LICENSE file regarding GPL licensing $defined['disclaimer'] = "All rights reserved 2008 ® Jason Gerfen"; // default error and success images used for messages $defined['error'] = "templates/images/error.gif"; $defined['good'] = "templates/images/good.jpg"; $defined['error_small'] = "templates/images/error-small.gif"; // path for application templates $defined['templates'] = "templates"; // enable debugging support? $defined['debug'] = "FALSE"; // where is the dhcpd service service restart inet/inetd script? $defined['dhcpd_cmd'] = "/usr/sbin/dhcpd -cf " . $defined['confpath'] . "dhcpd.conf -lf " . $defined['leases']; $defined['dhcpd_tst'] = "/usr/sbin/dhcpd -t -cf " . $defined['confpath'] . "dhcpd.test -lf " . $defined['leases'] . " >> log"; // a few network and log parsing commands // (these are used to gather statistical info for graphing and process status) $defined['netstat'] = "/bin/netstat"; $defined['ifconfig'] = "/sbin/ifconfig"; $defined['tail'] = "/bin/tail"; $defined['ps'] = "/bin/ps"; // authentication timeout 1800 seconds = 30 minutes $defined['timeout'] = "1800"; // data used with session authentication token (do NOT modify) $defined['enckeygen'] = $defined['virpath'] . "templates/images/shared/"; // include our class files require 'inc.libraries.php'; // include our error codes require 'inc.errors.php'; ?> the apache error report that: [Mon Jul 25 07:09:19 2011] [error] [client 192.168.111.1] PHP Fatal error: Call to a member function GenerateErrorLink() on a non-object in /var/www/html/phpDHCPAdmin-0.9.5-beta/index.php on line 258 there is the index.php resource code about part of the line 257-259, I’m not familiar with PHP code, may be there is something wrong with the call function, 257 // Possible XSS attack 258 $ERROR = $err->GenerateErrorLink( "help/help.html", "#undef", $defined['error'], $errors['xss_config'], NULL, NULL ); 259 } could you please give me some suggestions? thanks -henry |