Hello, i would like to install phpipam v1.1.010 in my network. But i have problem to install phpipam.
I have configure : config.php
define('BASE', "/phpipam/");
and .htaccess
RewriteBase /phpipam/
in file configuration to apache2 i add directory :
<directory var="" www="" phpipam="">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</directory>
i have restart services and when i try to connect at http://serverIP/phpipam/ i get this error :
) { session_name($phpsessname); } session_start(); ob_start(); } # set default page if(!isset($_GET['page'])) { $_GET['page'] = "dashboard"; } # reset url for base $url = createURL (); # if not install fetch settings etc if($_GET['page']!="install" ) { # check if this is a new installation require('functions/dbInstallCheck.php'); # get all site settings $settings = getAllSettings(); # escape GET vars to prevent SQL injection $_GET = filter_user_input ($_GET, true, true); $_REQUEST = filter_user_input ($_REQUEST, true, true); } / include proper subpage / if($_GET['page']=="install") { require("site/install/index.php"); } elseif($_GET['page']=="upgrade") { require("site/upgrade/index.php"); } elseif($_GET['page']=="login") { require("site/login/index.php"); } elseif($_GET['page']=="request_ip") { require("site/login/index.php"); } else { # verify that user is logged in isUserAuthenticatedNoAjax(); # make upgrade and php build checks include('functions/dbUpgradeCheck.php'); # check if database needs upgrade include('functions/checkPhpBuild.php'); # check for support for PHP modules and database connection ?>
"; include_once('site/error.php'); print "
"; } / password reset required / elseif($user['passChange']=="Yes") { print "
"; include_once("site/tools/changePassRequired.php"); print "
"; } / dashboard / elseif(!isset($_GET['page']) || $_GET['page'] == "dashboard") { print "
"; include_once("site/dashboard/index.php"); print "
"; } / widgets / elseif(@$_GET['page']=="widgets") { print "
"; include_once("site/dashboard/widgets/".$_GET['section'].".php"); print "
"; } / side menus / else { print ""; print ""; print ""; print ""; print ""; print "
"; print "
"; if($_GET['page'] == "subnets" || $_GET['page'] == "vlan" || $_GET['page'] == "vrf" || $_GET['page'] == "folder") { include_once("site/subnets.php"); } else if ($_GET['page'] == "tools") { include_once("site/tools/toolsMenu.php"); } else if ($_GET['page'] == "administration") { include_once("site/admin/adminMenu.php"); } print "
"; print "
Then, i have try to add database phpipam with manual method :
mysql -root -p -e "create database phpipam;"
mysql -root -p phpipam < /var/www/phpipam/db/SCHEMA.sql
mysql -root -p -e "grant ALL on phpipam.* to phpipam@localhost identified by 'phpipamadmin';"
But nothing...
Please i need help ! I have this since then 2 days !
Thank's you for helping
Anonymous
Yes !
I have find issue ! It's because the package 'libapache2-mod-php5' was not present on my device !