DaDaBIK
This forum is devoted to the discussion about the software DaDaBIK database front-end
the PHP Database application generator for MySQL, PostgreSQL and SQLite; also available for Wordpress.

Welcome! Log In Create A New Profile

Advanced

Run what ?

Posted by Dadabique 
Run what ?
October 28, 2011 10:28PM
Hi there

in the Dadabik install doc I see :

Run the file http://your_host/your_dir/install.php to install DaDaBIK

what do you mean by "running" this php file, it's not an exe ?

how do I run it please ?

regards
JP
Re: Run what ?
October 29, 2011 05:43AM
It means open (browse too) install.php on the server you intend to install Dadabik on. The Dadabik files should in the directory you uploaded them to. The php file will run the setup to install Dadabik.

JP
-----------------------------------------------------------------------------------------------
Dadabik 4.2, Apache 2.2.22, PHP 5.3.13, MySQL 5.5.24, Windows 7
http://dadabik.kicks-ass.net
Re: Run what ?
October 29, 2011 09:53PM
thanks JP, err "browse to on the server", you mean not in window explorer as I have done before ? but how do I browe "on the server" ?
Re: Run what ?
October 29, 2011 10:54PM
DaDaBIK is installed via web browser PHP Script and you need to enter (go to) the URL where the install.php file is located on your server.

If you uploaded all the files to your server into a directory called "mydadabik" and your website URL is "http://www.mysite.com";, then you would go to (or browse to) http://www.mysite.com/mydadabik/install.php.

If this still does not help, then post here the details of what you've done so far, where the files are located and someone can help you with putting the URL for the install together.

_______________________________
..:: Debbie |\.-./| DaDaBIK Support ::..
Re: Run what ?
October 29, 2011 11:20PM
Hi Debbie

thanks for answering

I have installed Wampserver 2

I then have copied (decompressed) the Dadabik files in D:\Program Files\wamp\www\

I see the install.php there

but what I don't understand is how to "run" it ?

when I click on it, Chrome just open it as a text file !
Re: Run what ?
October 30, 2011 01:17AM
So you are running DaDaBIK on your local machine?
I would assume then, that the URL for your local webserver is http://localhost.
With that assumption, you would put in the address bar of your browser, http://localhost/PATHTODADABIK/install.php.
Once you press enter, the PHP will be executed by the webserver.
You "run" or "execute" PHP through the WEB BROWSER - not by clicking on the file in an explorer window.

_______________________________
..:: Debbie |\.-./| DaDaBIK Support ::..
Re: Run what ?
October 30, 2011 04:27AM
by the way, I don't understand how writing the path to this install.php in the address bar would give a different result than right clicking the file and asking "run with Chrome" which I have done before ????

So I think the installation of your system is not really straightforward eye rolling smiley
Re: Run what ?
October 30, 2011 04:42AM
(sent this message before but I dont see it here)

I have tried : http://localhost/D:/Program%20Files/wamp/www/install.php

and I get : Forbidden

You don't have permission to access /D:/Program Files/wamp/www/install.php on this server.

if I run : localhost only in the address bar, I get :

( ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in D:\Program Files\wamp\www\include\adodb5\drivers\adodb-mysql.inc.php on line 365
Call Stack
# Time Memory Function Location
1 0.0057 885384 {main}( ) ..\index.php:0
2 0.0410 4486568 include( 'D:\Program Files\wamp\www\include\common_start.php' ) ..\index.php:43
3 0.0418 4529272 connect_db( ) ..\common_start.php:86
4 0.0446 4859328 ADOConnection->Connect( ) ..\db_functions_adodb.php:39
5 0.0446 4859448 ADODB_mysql->_connect( ) ..\adodb.inc.php:525
6 0.0447 4859480 mysql_connect ( ) ..\adodb-mysql.inc.php:365
[06] Error: during database connection.
Re: Run what ?
October 30, 2011 05:03AM
Dadabique Wrote:
-------------------------------------------------------
> by the way, I don't understand how writing the
> path to this install.php in the address bar would
> give a different result than right clicking the
> file and asking "run with Chrome" which I have
> done before ????
>
> So I think the installation of your system is not
> really straightforward eye rolling smiley

The installation IS straightforward - all basic PHP stuff.

A PHP file must be run from INSIDE a BROWSER VIA WEB SERVER - eg: a URL. Part of the installation instructions document that you UPLOAD the DADABIK files TO YOUR WEB SERVER. When attempting to run the file inside the browser, the following two addresses are interpreted completely different:

http://localhost/dadabik_directory/install.php - is a URL and will be interpreted and parsed by the PHP installed on the webserver
D:\Program Files\wamp\www\dadabik_directory\install.php - is a LOCAL file reference. It will not be parsed by the PHP installed on the webserver because the browser sees it as a LOCAL file. Therefore will only display the text.

As for your second post .....

I have tried : http://localhost/D:/Program%20Files/wamp/www/install.php

and I get : Forbidden


The URL you entered is not a valid URL pointing to the file. IF install.php is in the d:\program files\wamp\www directory, then the URL entered should be http://localhost/install.php - a proper URL.

The error message regarding MySQL would indicate to me there is a problem with the password for user 'root' as a connection to MySQL was not successful.

Have you set up a webserver with PHP and MySQL before? Do you regularly work with PHP and MySQL?

_______________________________
..:: Debbie |\.-./| DaDaBIK Support ::..
Re: Run what ?
October 30, 2011 05:28AM
thanks for the : http://localhost/install.php (maybe this example should be given in the tutorial)

but I still get

( ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in D:\Program Files\wamp\www\include\adodb5\drivers\adodb-mysql.inc.php on line 365
Call Stack
# Time Memory Function Location
1 0.0011 421048 {main}( ) ..\install.php:0
2 0.0315 3328904 include( 'D:\Program Files\wamp\www\include\common_start.php' ) ..\install.php:36
3 0.0323 3371608 connect_db( ) ..\common_start.php:86
4 0.0371 3701632 ADOConnection->Connect( ) ..\db_functions_adodb.php:39
5 0.0371 3701752 ADODB_mysql->_connect( ) ..\adodb.inc.php:525
6 0.0371 3701784 mysql_connect ( ) ..\adodb-mysql.inc.php:365
[06] Error: during database connection.

so probably something is not running properly in my server ? I dont see why I need a database connection just to install dadabik ? (later yes but at this stage ??)

I have set the thing with no password, hum, maybe my passw is "root" also but when do I enter it ?? that is the question ???
Re: Run what ?
October 30, 2011 05:48AM
Dadabique Wrote:
-------------------------------------------------------
> thanks for the : http://localhost/install.php
> (maybe this example should be given in the
> tutorial)

You reference practically the exact same line in the first post of this thread:
in the Dadabik install doc I see :

Run the file http://your_host/your_dir/install.php to install DaDaBIK


Where, in your case, the "your_host" part refers to "localhost" and "your_dir" refers to the specific directory where the DaDaBIK files are located.


>
> but I still get
>
> ( ! ) Warning: mysql_connect() : Access denied for
> user 'root'@'localhost' (using password: YES) in
> D:\Program
> Files\wamp\www\include\adodb5\drivers\adodb-mysql.
> inc.php on line 365
> Call Stack
> # Time Memory Function Location
> 1 0.0011 421048 {main}( ) ..\install.php:0
> 2 0.0315 3328904 include( 'D:\Program
> Files\wamp\www\include\common_start.php'
> ) ..\install.php:36
> 3 0.0323 3371608 connect_db(
> ) ..\common_start.php:86
> 4 0.0371 3701632 ADOConnection->Connect(
> ) ..\db_functions_adodb.php:39
> 5 0.0371 3701752 ADODB_mysql->_connect(
> ) ..\adodb.inc.php:525
> 6 0.0371 3701784 mysql_connect (
> ) ..\adodb-mysql.inc.php:365
> [06] Error: during database connection.
>
> so probably something is not running properly in
> my server ? I dont see why I need a database
> connection just to install dadabik ? (later yes
> but at this stage ??)

The install part of DaDaBIK installs the backend DATABASE TABLES which are required in order to use DaDaBIK. You not only need a database connection but also a database with at minimum one table in it. This is in the documentation listed in the requirements section.
>
> I have set the thing with no password, hum, maybe
> my passw is "root" also but when do I enter it ??
> that is the question ???

Visit the MySQL site for information on how to get MySQL set up and working. Or, if you installed your webserver as a bundle, visit the site you downloaded from for support.

_______________________________
..:: Debbie |\.-./| DaDaBIK Support ::..
Re: Run what ?
October 30, 2011 06:20AM
I have set a database with tables, phpmyadmin was working fine

but maybe phpmyadmin doesn't need the server to work like our install does ?

well, ok, I will see the doc of wampserver to understand why the server is not working as desired and what is this error message

by the way, do you think dadabik is the appropriate tool to build a bank simulation the same kind of you see here ? :

http://www.moneymatterstome.co.uk/1-What-money-is-and-money-exchange/Sub1/BANKING-OnlineBankingSimulator.htm

cheers
Re: Run what ?
October 30, 2011 06:25AM
sorry, I just happened to try lauchning the program Webgrind in the collective menu of Wampserver

a browser window opens and Webgrind is running (I dont know how to use it), with the command : http://localhost/webgrind/ !

so do you see why my locahost is working for webgrind and not for accessing our install ? does it help ?
Re: Run what ?
October 30, 2011 06:36AM
Sorry I bothered you Debbie

my server works now

what was wrong is that I had renamed in .old two php files that were there... index and testmysqul

the install should work now

answer me if you can, about programming a bank sim

regards
Re: Run what ?
October 30, 2011 04:27PM
Online banking simulator ... I have no idea. You'd have to play around with the program and see if it will suit your needs. DaDaBIK has been implemented for many, many different things.

Any issues with "localhost" I cannot speak to as localhost refers to your local machine. In my case localhost is my own webserver I've set up on my own machine here - it is not accessible to the outside world. Sorry.

_______________________________
..:: Debbie |\.-./| DaDaBIK Support ::..
Re: Run what ?
October 30, 2011 08:51PM
Hi there, thanks for your opinion about building a BS

I got my server working yesterday

then I run the Dadabik install

and after that I got immediatly a : [08] Error : during query execution

not very encouraging !
Re: Run what ?
November 04, 2011 10:38PM
turn on the debug options in config.php to see more detail on the error message. If you don't know how to fix after seeing more detail, then post back.

_______________________________
..:: Debbie |\.-./| DaDaBIK Support ::..
Re: Run what ?
November 04, 2011 10:43PM
Hi there

OK, I'll try that, hope it will give me more info on the actual problem

cheers

DDBK
Sorry, only registered users may post in this forum.

Click here to login