Re: Can't open SQLite DB... but only when using mod_php??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, den 04.10.2007, 10:53 +1000 schrieb Chris:
> > mmh wonder what could possibly be wrong when even trying 777? :-)
> 
> Some hosts check for and disable access to files that have wide-open 
> permissions - usually when php is running as a cgi but I've seen it when 
> using mod_php too.

Hi Chris,

I've tried on a number of machines that have been setup either by me or
an admin I know. So I can say with some confidence that this is not the
case here :-)

> If you try something other than 777 what happens? (644 just to see if 
> you can open it, then work on writing to it).

As one would expect, this yields a different exception because the
webserver can't open the database for write access anymore:

PDOException: SQLSTATE[HY000]: General error: 14 unable to open database
file in /home/mwolff/webs/markus/cms/test.php on line 6

> Can you see the file from this script?
> 
> $file = dirname(__FILE__) . '/frontend.db';
> echo is_file($file) . '<br?>';

Yep.

CU
 Markus

-- 
Mit freundlichen Grüßen
Markus Wolff
Development

NorthClick GmbH

Gasstr. 10 - 22761 Hamburg
Tel.: 040 8 22 44 999 - Fax: 040 8 22 44 998
Internet: http://www.northclick.de/

Geschäftsführer: F. Detzner | M. Henze | C. Springub
Amtsgericht Hamburg, HRB 94459

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux