Menu

problems with install

Ben Cone
2010-06-28
2012-08-29
  • Ben Cone

    Ben Cone - 2010-06-28

    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.

    /*

    • 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?

    $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';

    ?>

     
  • jas

    jas - 2010-06-28

    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...

    1. Manually edit the inc.config.php script with your server settings
    2. Look at the output of the web server logs... it should indicate something as an error
    3. 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.
    4. 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

     
  • Ben Cone

    Ben Cone - 2010-06-28

    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.

     
  • Ben Cone

    Ben Cone - 2010-06-28

    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.

     
  • Ben Cone

    Ben Cone - 2010-06-28

    All right, I worked my way through that one. Cleared browser cache and fixed.
    Sorry about that one.

     
  • jas

    jas - 2010-06-29

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.