Re: [Phpdhcpadmin-support] Phpdhcpadmin-support post from hx0007@hotmail.com requires approval
Manage your ISC DHCPD service
Brought to you by:
jgerfen
From: Jason G. <jas...@gm...> - 2011-07-24 22:34:39
|
The problem is in the global configuration. Change $defined['hostname']='localhost'; To either a valid domain server name or an ip address which hosts the phpDHCPAdmin application. Then simply point your browser to the same URL such as http://www.domain.com/phpDHCPAdmin/ or http://192.168.1.1/phpDHCPAdmin. This seems to be a problem for quite a few people but is well documented in the wiki and other mailing list posts. The next revision will address this as well. 2011/7/24 <php...@li...>: > As list administrator, your authorization is requested for the > following mailing list posting: > > List: Php...@li... > From: hx...@ho... > Subject: phpDHCPAdmin installnaltion problem > Reason: Post by non-member to a members-only list > > At your convenience, visit: > > https://lists.sourceforge.net/lists/admindb/phpdhcpadmin-support > > to approve or deny the request. > > > ---------- Forwarded message ---------- > From: "henry" <hx...@ho...> > To: <php...@li...> > Date: Sun, 24 Jul 2011 23:29:16 +0800 > Subject: phpDHCPAdmin installnaltion problem > 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 > > > ---------- Forwarded message ---------- > From: php...@li... > To: > Date: > Subject: confirm 1d73270992876ef674bf928e14e1d16444cceb23 > If you reply to this message, keeping the Subject: header intact, > Mailman will discard the held message. Do this if the message is > spam. If you reply to this message and include an Approved: header > with the list password in it, the message will be approved for posting > to the list. The Approved: header can also appear in the first line > of the body of the reply. > -- Jason Gerfen jas...@gm... http://www.github.com/jas- http://phpdhcpadmin.sourceforge.net |