Open-AudIT
http://www.open-audit.org/phpBB3/

[partly solved] Undefined variable: phpini
http://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6434
Page 1 of 1

Author:  swilkey [ Fri Apr 17, 2015 7:47 pm ]
Post subject:  [partly solved] Undefined variable: phpini

Hi I'm using the latest version of open-audit, however the problem I am asking about here was present in the previous version I was running also.

When I go to help-support I am shown the following error:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: phpini
Filename: controllers/main.php
Line Number: 1553

I've searched this forum and the opmantek website but there doesn't seem to be any answer or explanation about it. Does anyone know how to get rid of this error?

Thanks,
Stephen

Author:  Mark [ Sat Apr 18, 2015 9:32 am ]
Post subject:  Re: [help] Undefined variable: phpini

Am guessing you're running a Linux distro.
Can you tell me which one?

To get rid of the error, insert this at line 1220.
$phpini = '';

Author:  swilkey [ Sat Apr 18, 2015 12:39 pm ]
Post subject:  Re: [help] Undefined variable: phpini

Hi Mark,

running Amazon AWS Linux. Thanks for the tip to remove this error.

Two related comments:
prereq_nmap_perms - It appears that nmap has not had its SUID set. This can be fixed by "chmod u+s n" (sans quotes).

application_log_permission - The permissions on your open-audit log file are not set correctly. This can be fixed by "chmod 664 /usr/local/open-audit/other/log_system.log" (sans quotes).

These are also on the help-support page. Even if you do exactly what it tells you to do they continue to say the same thing.

Oh, and I also spotted a chmod (or was it chgrp) error just before the database step in the installer during the upgrade. It didn't have enough parameters.

Regards,
Stephen

Author:  Mark [ Mon Apr 20, 2015 10:17 am ]
Post subject:  Re: [help] Undefined variable: phpini

Looks like all of this is likely related to running on AWS.
If it's possible, can you copy this code to the server, run it and post the output?
Code:
<?php
echo "<pre>\n";
echo 'S: ' . php_uname('s') . "\n";
echo 'A: ' . php_uname('a') . "\n";
?>


Our installer only caters to the officially supported distributions. We test for RedHat/CentOS, Debian and Ubuntu. Do you have any of the files: /etc/issue, /etc/redhat-release, /etc/os-release and if so, can you post their contents please. Or can you run the command 'lsb_release -a' and post it's output (that command may or may not be present).

Mark.

Author:  swilkey [ Fri Apr 24, 2015 6:30 pm ]
Post subject:  Re: [help] Undefined variable: phpini

<pre>
S: Linux
A: Linux ip-10-137-9-118 3.14.27-25.47.amzn1.x86_64 #1 SMP Wed Dec 17 18:36:15 UTC 2014 x86_64

cat /etc/issue
Amazon Linux AMI release 2015.03
Kernel \r on an \m

no /etc/redhat-release found

cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2015.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2015.03"
PRETTY_NAME="Amazon Linux AMI 2015.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2015.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

lsb_release -a
-bash: lsb_release: command not found


I hope this all helps. Let me know if you need anything else.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/