Problem: blank web page when I go to the main index.php for this. I can browse
to setup/index.php without an issue.
I have extracted everything to /var/www/phpDHCPAdmin/ and try
http://<serverIP>/phpDHCPAdmin and http://<serverIP>/phpDHCPAdmin/index.php
and receive nothing.
I ran the database set up and received no errors. Below is my inc.config.php.
I have also added:
error_reporting(E_ERROR);
ini_set('display_errors',1);
to this file, but still receive a blank white page with no errors, even after
flushing the browser cache. I have tried IE, Firefox, and Chrome as browsers
as well with the same results. Any assistance would be appreciated.
/*
phpDHCPAdmin
Jason Gerfen
inc.config.php - Pre-defined global variables
*/
// database configuration
$defined = "192.168.0.254";
$defined = "localhost";
$defined = "someUser";
$defined = "somePassword";
$defined = "phpDHCPAdmin";
// support & log notification email addresses
$defined = "";
// application path information
$defined = "/var/www";
// this folder needs write permissions
// also used for temporary file writes and dhcpd.conf
$defined = $defined . "conf/";
// path to the dhcpd.leases file this allows
// lease management if permissions allow (write access)
$defined = $defined . "dhcpd.leases";
// title and copyright information
$defined = "DHCP Admin";
$defined = "Manage DHCP";
// if this is removed the GPL license is out of compliance
// please refer to the LICENSE file regarding GPL licensing
$defined = "All rights reserved 2008 ® Jason Gerfen";
// default error and success images used for messages
$defined = "templates/images/error.gif";
$defined = "templates/images/good.jpg";
$defined = "templates/images/error-small.gif";
// path for application templates
$defined = "templates";
// enable debugging support?
$defined = "FALSE";
// where is the dhcpd service service restart inet/inetd script?
Did you run the setup script and copy the output into the inc.config.php file?
If so I have experienced in one instance where this creates a problem with
whitespace and errors out. You may want to try a couple of things...
Manually edit the inc.config.php script with your server settings
Look at the output of the web server logs... it should indicate something as an error
Since you added the error reporting and ini_set options with no output you may need to configure the php.ini settings or restart the apache server for those settings to take effect.
the $defined should be set to the full path to your phpDHCPAdmin installation (/var/www/htdocs/phpDHCPAdmin/)
Let me know if you get any responses with those
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK. Thanks. /var/www/phpDHCPAdmin in my inc.config.php should have been
/var/www/phpDHCPAdmin/
One little / at the end killed the whole thing. Now I am getting what I should
expect. It is always the simple, most obvious things that bite you when you
are working on something like this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Running environment:
Ubuntu Server 10.04 x64 2.6.32-21-server
PHP version: 5.3.2
MySQL version: 5.1.41-3ubuntu12.3
Apache version: 2.2.14
Problem: blank web page when I go to the main index.php for this. I can browse
to setup/index.php without an issue.
I have extracted everything to /var/www/phpDHCPAdmin/ and try
http://<serverIP>/phpDHCPAdmin and http://<serverIP>/phpDHCPAdmin/index.php
and receive nothing.
I ran the database set up and received no errors. Below is my inc.config.php.
I have also added:
error_reporting(E_ERROR);
ini_set('display_errors',1);
to this file, but still receive a blank white page with no errors, even after
/*flushing the browser cache. I have tried IE, Firefox, and Chrome as browsers
as well with the same results. Any assistance would be appreciated.
*/
// database configuration
$defined = "192.168.0.254";
$defined = "localhost";
$defined = "someUser";
$defined = "somePassword";
$defined = "phpDHCPAdmin";
// support & log notification email addresses
$defined = "";
// application path information
$defined = "/var/www";
// this folder needs write permissions
// also used for temporary file writes and dhcpd.conf
$defined = $defined . "conf/";
// path to the dhcpd.leases file this allows
// lease management if permissions allow (write access)
$defined = $defined . "dhcpd.leases";
// title and copyright information
$defined = "DHCP Admin";
$defined = "Manage DHCP";
// if this is removed the GPL license is out of compliance
// please refer to the LICENSE file regarding GPL licensing
$defined = "All rights reserved 2008 ® Jason Gerfen";
// default error and success images used for messages
$defined = "templates/images/error.gif";
$defined = "templates/images/good.jpg";
$defined = "templates/images/error-small.gif";
// path for application templates
$defined = "templates";
// enable debugging support?
$defined = "FALSE";
// where is the dhcpd service service restart inet/inetd script?
$defined = "/usr/sbin/dhcpd -cf " . $defined . "dhcpd.conf -lf " . $defined;
$defined = "/usr/sbin/dhcpd -t -cf " . $defined . "dhcpd.test -lf " . $defined
. " >> log";
// a few network and log parsing commands
// (these are used to gather statistical info for graphing and process status)
$defined = "/bin/netstat";
$defined = "/sbin/ifconfig";
$defined = "/bin/tail";
$defined = "/bin/ps";
// authentication timeout 1800 seconds = 30 minutes
$defined = "1800";
// data used with session authentication token (do NOT modify)
$defined = $defined . "templates/images/shared/";
// include our class files
require 'inc.libraries.php';
// include our error codes
require 'inc.errors.php';
?>
Did you run the setup script and copy the output into the inc.config.php file?
If so I have experienced in one instance where this creates a problem with
whitespace and errors out. You may want to try a couple of things...
Let me know if you get any responses with those
OK. Thanks. /var/www/phpDHCPAdmin in my inc.config.php should have been
/var/www/phpDHCPAdmin/
One little / at the end killed the whole thing. Now I am getting what I should
expect. It is always the simple, most obvious things that bite you when you
are working on something like this.
Next hiccup - when trying to manage users I see this as an error
{$LIBERROR}{$CONFIGERRORS}
Output from the web server logs:
File does not exist: /var/www/templates, referer: http://192.168.0.254/phpDHC
PAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: user in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 62, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: pass in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 62, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: user in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 68, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: pass in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 68, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: user in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 72, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: pass in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 72, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: user in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 75, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined index: pass in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 75, referer: http://192.
168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined variable: JS in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 509, referer: http://192
.168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined variable: usersoline in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 521, referer: http://192
.168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined variable: data in
/var/www/phpDHCPAdmin/scripts/classes/class.skins.php on line 20, referer: ht
tp://192.168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
PHP Notice: Undefined variable: skin_err in
/var/www/phpDHCPAdmin/admin.manage.users.php on line 530, referer: http://192
.168.0.254/phpDHCPAdmin/admin.manage.users.php?skin=
File does not exist: /var/www/templates, referer: http://192.168.0.254/phpDHC
PAdmin/admin.manage.users.php?skin=
Let me uppend that, it is when I try to navigate to any page within the web
interface. The offending piece of code that the error logs indicate is:
if( $auth->AuthUser( $_POST, $_POST, $_SESSION ) === -1 ) {
While I am not a programmer, I think its plain enough that this is dealing
with the authentication mechanism.
All right, I worked my way through that one. Cleared browser cache and fixed.
Sorry about that one.
Great! I am glad it was somewhat easy... This project is still considered
'beta' because I know there is still quite a bit I can do to make it easier.