Open-AudIT

What's on your network?
It is currently Sun Jan 21, 2018 10:09 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Apr 17, 2015 7:47 pm 
Offline
Newbie

Joined: Thu Apr 09, 2015 4:30 pm
Posts: 25
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


Last edited by swilkey on Sun May 10, 2015 2:12 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 18, 2015 9:32 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1933
Location: Brisbane, Australia
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 = '';

_________________
Support and Development hours available from Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 18, 2015 12:39 pm 
Offline
Newbie

Joined: Thu Apr 09, 2015 4:30 pm
Posts: 25
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 20, 2015 10:17 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1933
Location: Brisbane, Australia
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.

_________________
Support and Development hours available from Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 24, 2015 6:30 pm 
Offline
Newbie

Joined: Thu Apr 09, 2015 4:30 pm
Posts: 25
<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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group