BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 06.08.2005 17:27

kocour_easy
newbie...
Registered: 06.08.2005
Posts: 1

Error in install.php with sqlite+apache2+php5+Win32

Hi,
i tested %subj% installation and i have error message "Unable to create new database .\C:\...." and i must comment this :
--- sqlite.php    2005-08-06 17:19:42.046875000 +0200
+++ sqlite.php~    2005-01-28 22:16:44.000000000 +0100
@@ -45,7 +45,7 @@
    function DBLayer($db_host, $db_username, $db_password, $db_name, $db_prefix, $p_connect)
    {
        // Prepend $db_name with the path to the forum root directory
+        //$db_name = PUN_ROOT.$db_name;
-        $db_name = PUN_ROOT.$db_name;

        $this->prefix = $db_prefix;
   

Bye

Offline

 

#2 06.08.2005 21:24

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: Error in install.php with sqlite+apache2+php5+Win32

is it PHP 5.0 or PHP 5.1? 5.1 is not tested yet..


--= BLOG:CMS developer =--

Offline

 

#3 02.12.2005 12:33

halojoy
newbie...
Registered: 18.10.2005
Posts: 1

Re: Error in install.php with sqlite+apache2+php5+Win32

kocour_easy wrote:

Hi,
"Unable to create new database .\C:\...." and i must comment this :

+        //$db_name = PUN_ROOT.$db_name;
-        $db_name = PUN_ROOT.$db_name;

        $this->prefix = $db_prefix;

you have found the code where this error take place.
In installation you can not use real filepath
C:\some\path\
because punBB adds the path to punBB root folder ( where is forum index.php )
in front of added link

so you can submit
./data/punbb_sqlite.db
and sqlite file will be created in subfolder /data/ to punBB root


But I got punBB to put sqlite file outside 'htdocs' (server document root folder)
by submitting
../../../data/punbb_sqlite.db
as the sqlite data file name


The alternative here, that might work, is to change the code you have in beginning of pubBB sqlite dblayer class:

Try remove or comment out that line:
// $db_name = PUN_ROOT.$db_name;
and for the database name you submit the FULL real path
c:/www/xxx/punbb_sqlite.db

Last edited by halojoy (02.12.2005 12:38)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist