Closed LibreriaDigitalAmalibaka closed 10 years ago
;) now i have this problem:
in database: class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Sqlite',
'persistent' => false,
'host' => 'www.fuerzacaribes.org.ve',
'database' => 'calibre/metadata.db',
);
public $test = array(
'datasource' => 'Database/Sqlite',
'persistent' => false,
'host' => 'www.fuerzacaribes.org.ve',
'database' => 'www.fuerzacaribes.org.ve/test.db',
'prefix' => '',
);
}
CalibrePHP was designed with the intention of connecting to a local (same machine as web server) database. With that being stated your $default database config should be something like.
public $default = array(
'datasource' => 'Database/Sqlite',
'persistent' => false,
'host' => 'localhost',
'database' => 'calibre/metadata.db',
);
I typically use a full path to the database e.g. /home/username/calibre/metadata.db
.
It will still work with something like you have with calibre/metadata.db
, but that means that your entire calibre library would need to be placed in the webroot i.e. calibrephp/app/webroot/calibre
with the database being at calibrephp/app/webroot/calibre/metadata.db
.
Either way the folder will need be able to be readable by your apache server. It may also need to be writable, http://www.php.net/manual/en/ref.pdo-sqlite.php#57356.
You also don't need to have the $test
database config setup if you don't want to. It's there for once unit test are created.
thank you very much I will do the test and reporting the result
I try: public $default = array( 'datasource' => 'Database/Sqlite', 'persistent' => false, 'host' => 'localhost', 'database' => 'app/webroot/calibre/metadata.db',
........... and
public $default = array( 'datasource' => 'Database/Sqlite', 'persistent' => false, 'host' => 'localhost', 'database' => 'openam/app/webroot/calibre/metadata.db',
................and
public $default = array( 'datasource' => 'Database/Sqlite', 'persistent' => false, 'host' => 'www.fuerzacaribes.org.ve', 'database' => 'app/webroot/calibre/metadata.db',
(but the same error)
we want with this application developed by you, use it as a digital library (free and open) for students and thought of using a hosting for the project work (Calibrephp) online.
(Excuse my english)
host should be 'localhost'. The database path either needs to be an absolute path starting with '/' e.g. /home/username/calibre_library/metadata.db
or relative to the webroot folder.
Where is your calibre database stored?
Calibre was not developed by me. I just developed CalibrePHP which serves the database generated by Calibre over the web. You can use CalibrePHP however you want.
database: / app / webroot / caliber / metadata.db
That would mean your config should be: 'host' => 'localhost', 'database' => 'caliber/metadata.db'
Is that a typo? calibre or caliber?
sorry is calibre /app/webroot/calibre/metadata.db
public $default = array( 'datasource' => 'Database/Sqlite', 'persistent' => false, 'host' => 'localhost', 'database' => '/app/webroot/calibre/metadata.db', );
Is that really at the root of your file system? Shouldn't it be something like /var/www/calibrephp/app/webroot/calibre/metadata.db
host= www.fuerzacaribes.org.ve
public $default = array( 'datasource' => 'Database/Sqlite', 'persistent' => false, 'host' => 'localhost', 'database' => '/httpdocs/openam/app/webroot/calibre/metadata.db',
Do you have PHP Sqlite 3 support enabled on the server?
'database' => '/var/www/vhosts/fuerzacaribes.org.ve/openam/app/webroot/calibre/metadata.db',
Additional .ini files parsed /etc/php5/cgi/conf.d/00-ioncube-loader-5.3.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/memcache.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/pdo_sqlite.ini, /etc/php5/cgi/conf.d/sqlite.ini, /etc/php5/cgi/conf.d/sqlite3.ini, /etc/php5/cgi/conf.d/suhosin.ini, /etc/php5/cgi/conf.d/xsl.ini, /etc/php5/cgi/conf.d/zend_extensions_psa.ini
Is the library directory (calibre) readable and executable by apache? chmod 555 -R calibre
yes
Sorry I'm not sure what to tell you then.
class DATABASE_CONFIG { ready (www.fuerzacaribes.org.ve/openam/index.php) public $default = array( 'datasource' => 'Database/Sqlite', 'persistent' => false, 'host' => 'localhost', 'database' => '/var/www/vhosts/fuerzacaribes.org.ve/httpdocs/openam/app/webroot/calibre/metadata.db',
now:
It looks like you're having issues with the script that resizes the images. This is related to issue #1. I guess I'll be reopening it. I was thinking of changing the script to use the GD library instead of ImageMagick.
Hi from Venezuela:
1) tengo este error: Parse error: syntax error, unexpected T_FUNCTION in C:\AppServ\www\calibrephp\app\Plugin\DebugKit\Controller\Component\ToolbarComponent.php on line 182
al cargar http://localhost/calibrephp/
(calibrephp es carpeta de webserver)
2) Los libros no se cargan en la pagina index tengo error para mostrar. tu puedes actualizar los pasos de instalacion?
3) error
CORE\Cake\Controller\ComponentCollection.php line 53 → ComponentCollection->load(string, array) CORE\Cake\Controller\Controller.php line 635 → ComponentCollection->init(BooksController) CORE\Cake\Routing\Dispatcher.php line 183 → Controller->constructClasses() CORE\Cake\Routing\Dispatcher.php line 162 → Dispatcher->_invoke(BooksController, CakeRequest, CakeResponse) APP\webroot\index.php line 109 → Dispatcher->dispatch(CakeRequest, CakeResponse) ROOT\index.php line 43 → require(string)
gracias por el apoyo