Re: Can't open SQLite DB... but only when using mod_php??
| From: | Markus Wolff - NorthClick | Date: | Thu, 04 Oct 2007 08:50:12 +0000 |
| Subject: | Re: Can't open SQLite DB... but only when using mod_php?? | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44141@lists.php.net to get a copy of this message | ||
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