This page is primarily added for the sake of completeness. Since Dropbox is currently at version 2.1, I'm not doing anything to maintain the 2.0 package. All the same, there may be those out there who were "early adopters" of Dropbox and could use this page's resources (not to mention the discussion area!
Fedora Core ships PHP5 compiled with –without sqlite (brilliant, Fedora…drop the one PHP feature I rely on). One Dropbox adopter wrote to tell me that the php-pecl-sqlite module is not available in pre-built form for PHP5; there is a bug report filed and it looks like the Fedora folks are only supporting php-pecl-pdo-sqlite. Of course, the PDO module is aged and doesn't include support for the SQLiteDatabase class. The only other option is to build your own PHP from source and include SQLite support (which is what I do on most of my machines anyway). I pass along these PDO-based instructions from the user who alerted me, but make no claims or guarantees since I haven't tested it.
At any rate, to install the PDO, first get it from PECL and configure it:
% wget-q http://pecl.php.net/get/SQLite-1.0.3.tgz % tar -zxf SQLite-1.0.3.tgz % cd SQLite-1.0.3 % phpize % ./configure
Next, you'll have to edit the sqlite.c source file to comment-out this line
/* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; */
and change
function_entry sqlite_functions[] = {
PHP_FE(sqlite_open, arg3_force_ref)
PHP_FE(sqlite_popen, arg3_force_ref)
to
function_entry sqlite_functions[] = {
PHP_FE(sqlite_open, third_arg_force_ref)
PHP_FE(sqlite_popen, third_arg_force_ref)
Build and install (note that these instructions will put everything in default locations).
% make % make install % cp modules/sqlite.so /usr/lib/php/modules
Add a configuration file at /etc/php.d/sqlite.ini containing
; Enable sqlite extension module extension=sqlite.so
Restart your Apache server (perhaps with service restart httpd). As far as the Dropbox source is concerned, you'll find two patch files on the downloads page; apply them using
% cd NSSDropbox2/lib % patch NSSDropbox.php NSSDropbox.patch % patch NSSDropoff.php NSSDropoff.patch
Discussion