Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 4:27 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Sep 21, 2006 1:56 am 
Offline
Newbie

Joined: Thu Sep 21, 2006 1:52 am
Posts: 14
Hey all.

I'm currently attempting to make it through the initial setup of Open-AudIT by way of setup.php. I'm running everything off of Apache 2.2 on a Windows XP box and the latest version of MySQL.

The problem: After inputting my initial setup options such as MySQL username and password, the location of the MySQL server and whether I want to use usernames on login and such, I get the following:

Setting up a new instance of Open Audit.

--------------------------------------------------------------------------------

Writing Config file. Success.
Connecting to localhost as root.


And it stays like that forever. No error codes, nothing. I will note, however, that the success png file does not load.

Essentially, I'm stuck like this. Any suggestions?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 21, 2006 3:56 am 
If I recall correctly, success.png doesn't actually exist. Maybe some day :) However, you will need to import the open_audit.sql file from the scripts directory, as it will create the database structure. Let us know if you need help with that.


Top
  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 21, 2006 4:15 am 
Offline
Newbie

Joined: Thu Sep 21, 2006 1:52 am
Posts: 14
Prior to opening this thread, I had already populated the database through use of the SQL script included with the package. However, I also repopulated the database in case there was an error.

I still receive the hang as originally mentioned.

In terms of the image, I should have specified that I was actually referring to the 'button_ok' PNG. The page calls for button_ok whereas the one in the images directory is button_success.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 21, 2006 8:11 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Are you using the SVN version or the original (and by now somethat out of date) from Sourceforge.

If you can download the SVN version, it will probably work OK.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 21, 2006 10:34 pm 
Offline
Newbie

Joined: Mon Mar 07, 2005 11:01 pm
Posts: 14
The button_ok/button_success problem is a known issue

The only time I've seen it hang like this is when I've supplied invalid username/password, however I did get an error message.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 21, 2006 11:13 pm 
Offline
Newbie

Joined: Thu Sep 21, 2006 1:52 am
Posts: 14
I'm using the version available through [url=http://www.open-audit.org/phpbb2/viewtopic.php?t=1048]this link[/url] through the forums. 060726, I believe.

Perhaps I should also note that when I attempt to browse to index.php, I get a blank page and the page errors give me the following information:

Line: 115
Char: 3
Error: Object expected
Code: 0
URL: http://localhost/

And...

Line 92
Char 5
Error: 'document.getElementById(...)' is null or not an object.
Code: 0
URL: http://localhost/

Thanks again.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 11, 2006 7:21 am 
Offline
Newbie

Joined: Tue Jan 18, 2005 1:58 pm
Posts: 4
Did you ever figure out what the issue was with this?

I'm having the same exact problem.

I'm running on 2003 Server PHP5/MySql5 with the latest version from SVN. I've imported the data into Mysql and initially edited include_config.php by hand. I received the getelementbyid is null error, so I thought I'd try the setup.php. Now I get stuck at connecting to localhost as root (I've tried many other usernames with permissions and different combos of IP and hostnames).

Any ideas would be appreciated.


Top
 Profile  
Reply with quote  
 Post subject: Try this
PostPosted: Wed Oct 11, 2006 6:08 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Backup your existing data using MySQL administrator or PHPMyAdmin.
Drop the OA database.
Clear out the OA folder on the web server
Copy the latest SVN version to the web server
Go straight to the setup page
Create a new instance of databse etc.
Optionally audit something (the local machine for example) to this database
Prove this all works
Restore the old database.

Let me know the point where you run in to trouble.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 12:55 am 
Offline
Newbie

Joined: Thu Sep 21, 2006 1:52 am
Posts: 14
I followed your directions explicitly and ran into the same problem at the same place.

Directly following the creation of the MySQL Database Schema and the creation of the appropriate users with the needed permissions, I clicked "Submit" so it could set up the database.

Just as before, I get the following:

----
Setting up a new instance of Open Audit

Writing Config file. Success.
Connection to localhost as root.

----

And that's it. Does not move afterwards.[/img]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 1:33 am 
Offline
Moderator

Joined: Sat Mar 04, 2006 2:44 am
Posts: 193
Here are some hopefully simple instructions on how to setup the open-audit server manually:

From command prompt run
> mysql -u root -p

OPTIONAL STEP THAT DELETES YOUR CURRENT OPENAUDIT DATABASE
sql> drop database openaudit;

Create open audit database
sql> create database openaudit;

Create user called openaudit with password 'password' (change these!)
sql> grant all on openaudit.* to 'openaudit'@'localhost' identified by 'password'

Exit sql
sql> exit

Now create the open audit tables
>mysql -u openaudit -p openaudit < path-to-openaudit/scripts/open-audit.sql

Now edit your php config file
>notepad path-to-openaudit/include_config.php

You will need to update the mysql username, mysql password

You should not need to run setup.php now as you've done it all manually.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 1:56 am 
Offline
Newbie

Joined: Thu Sep 21, 2006 1:52 am
Posts: 14
Alrighty. So I've gone through the manual setup process. The database is established, the config file is set, but I am once again back to the point where I receive the two errors I mentioned above.

Blank page, IE reports the following errors (as above):

1: 'document.getElementById(...)' is null or not an object.
2: Object expected.

This is the same problem that the user "axsom1" is getting, as he posted above.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 3:20 am 
Offline
Moderator

Joined: Sat Mar 04, 2006 2:44 am
Posts: 193
Hmm, strange. I've just installing the latest copy of Open Audit (from svn) on a clean virtual machine running a new installation of XAMPP. I configured Open-Audit using the instructions above and everything seemed to work correctly. I didn't get the object errors.

Please could you do the following:
1. Open Internet Exploder
2. Navigate to http://openauditserver/index.php
3. Click View -> Source (in Internet Explorer)

Mail me the source so I can try and see where the problem lies.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 4:35 am 
Offline
Contributor

Joined: Fri Jul 14, 2006 1:16 am
Posts: 151
Location: Iowa
Have you tried Firefox? Maybe it's a problem with your browser?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 5:25 am 
Offline
Newbie

Joined: Thu Sep 21, 2006 1:52 am
Posts: 14
Connecting via Firefox also generates a blank page and nothing more.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Oct 12, 2006 1:59 pm 
Offline
Newbie

Joined: Tue Jan 18, 2005 1:58 pm
Posts: 4
[quote]
Hmm, strange. I've just installing the latest copy of Open Audit (from svn) on a clean virtual machine running a new installation of XAMPP. I configured Open-Audit using the instructions above and everything seemed to work correctly. I didn't get the object errors.

Please could you do the following:
1. Open Internet Exploder
2. Navigate to http://openauditserver/index.php
3. Click View -> Source (in Internet Explorer)

Mail me the source so I can try and see where the problem lies.


Here is what my source looks like:

[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Open-AudIT</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" type="text/css" href="default.css" />

<script type="text/javascript">

/*<![CDATA[*/

function IEHoverPseudo() {

var navItems = document.getElementById("primary-nav").getElementsByTagName("li");

for (var i=0; i<navItems.length; i++) {

if(navItems[i].className == "menuparent") {

navItems[i].onmouseover=function() { this.className += " over"; }

navItems[i].onmouseout=function() { this.className = "menuparent"; }

}

}

}



window.onload = IEHoverPseudo;



/*]]>*/

</script>



<script type="text/javascript">

<!--

function switchUl(id){

if(document.getElementById){

a=document.getElementById(id);

a.style.display=(a.style.display!="none")?"none":"block";

}

}

// -->

</script>



</head>

<body>

[/code]

It would appear that the server stops processing at line 98 of include.php which is why getelementbyid is null for me. Why does it not process? Thats the million dollar question for me. I know its something simple too, just can't seem to spot it.

Hope this helps.

Thanks,
John

Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Group