Closed Irv007 closed 6 years ago
You should start with installing the relevant extensions for your system/PHP-version.
So try to install php7.1-GD, php7.1-sqlite, php7.1-intl
apt-get install php7.1-GD php7.1-sqlite php7.1-intl
Then restart php (or just reboot) ant try cops again.
Damn. This solved the Problem with all that PHP-stuff. Thank you.
Now, I have to check, why the following message appears:
Check if Calibre database file exists and is readable File /home/ubuntu/disk1/Calbib1/metadata.db not found, Please check
The file is there, everybody can read it. I don't know yet, why COPS can't read it:
ubuntu@ip-172-31-19-142:~$ ls -lrt /home/ubuntu/disk1/Calbib1/metadata.db
-rwxrwxr-- 1 ubuntu ubuntu 64000000 Jan 1 18:43 /home/ubuntu/disk1/Calbib1/metadata.db
1 - I use apache, so if it's a NGINX "problem" (don't expect it to) I will have trouble to help.
2 - in my config_local.php file the lines:
/*
* URL to access the COPS page
*/
$config['cops_full_url'] = '<mydomain>.eu:55555';
are more like:
/*
* URL to access the COPS page
*/
$config['cops_full_url'] = 'http://<LAN-IP>';
I assume you are behind a router that can convert your WAN address to a LAN-address. Perhaps first try it without the address:55555. Your router can do the conversion from port:55555 to port:80.
Also, if you are in Germany(? books in German and .eu address) why use a USA time zone? I'm told it sometimes can cause a problem.
3- if this does not help then just for the sake of testing put your calibre database inside the cops directory structure and give 777 atrributes to the directory where the ebooks are in.
then in config_local.php:
$config['calibre_directory'] = './Calbib1/';
Storing your Calibre directory inside /home will be more difficult. Try to move you Calibre directory to /var/www/Calbib1 and update it's group / access rights :
chown -R :www-data /var/www/Calbib1
chown g+r /var/www/Calbib1
Assuming Ubuntu use www-data like Debian, never used Ubuntu in my life.
@seblucas
In my opinion Ubuntu is just like Debian with a newer kernel and packages, more eye candy for the desktop and some newly introduced bugs. ;-)
Sorry for the off topic
@marioscube
Now with Stretch, packages are more or less the same ..... but I agree that won't last long ;)
I moved the directory with the E-Books and the metadata-files (Calbib1) into /var/www/cops.
Now it works.
Thank you!
It work's: (1) install PHP correctly and (2) move E-Books-directory to the /var/www/cops-directory.
I'm not sure to fully understand you, I proposed to move your calibre directory besides your cops installation directory (/var/www/cops / /var/www/Calbib1) not inside (/var/www/cops / /var/www/cops/Calbib1)
As stated here, if you put your Calibre database inside the cops directory then it's not safe anymore.
Of course if your COPS installation is only available on LAN with trusted computers then you can forget my comment ;).
Thank your for this good hint. At the moment, it just a test, to get the whole thing running. Now, as it is running, next step is, to do all the things the right way.
Thank you!
Hello,
On my Unbuntu 16.04, I installed calibre, nginx, PHP and COPS to use calibre with COPS.
If I call http://mydomain.eu:55555, i would like to get my calibre-infos.
But I get errors:
I have tried to install several versions of PHP. Maybe there is a mess.
At the moment, i would prefer to get the whole thing running with PHP version 7.1.
with best regards, Irv
my system
my files (~/disk1/Calbib1)
ubuntu@ip-172-31-19-142:~/disk1/Calbib1$ ls -ld meta* -rwxrwxr-- 1 ubuntu ubuntu 64000000 Jan 1 18:43 metadata.db -rwxrwxr-- 1 ubuntu ubuntu 12948 Dec 31 09:18 metadata_db_prefs_backup.json
ubuntu@ip-172-31-19-142:~/disk1/Calbib1$ ls -ld Westall//* -rwxrwx--- 1 ubuntu ubuntu 557019 Dec 27 13:43 Westall, Robert/Funf Faden tief (5754)/cover.jpg -rwxrwx--- 1 ubuntu ubuntu 801446 Dec 27 13:43 Westall, Robert/Funf Faden tief (5754)/Funf Faden tief - Westall, Robert.epub -rwxrwx--- 1 ubuntu ubuntu 5414 Dec 27 13:43 Westall, Robert/Funf Faden tief (5754)/metadata.opf
ubuntu@ip-172-31-19-142:/etc/nginx/sites-available$ ls -ld * -rw-r--r-- 1 root root 587 Jan 4 06:01 cops -rw-r--r-- 1 root root 2080 Jan 4 05:47 default
ubuntu@ip-172-31-19-142:/etc/nginx/sites-enabled$ ls -ld * lrwxrwxrwx 1 root root 31 Jan 4 05:58 cops -> /etc/nginx/sites-available/cops
my nginx-file with name cops in /etc/nginx/sites-available
my config_local.php in /var/www/cops
status nginx.service
status PHP
netstat
/var/log/nginx/error.log
Screenshot of Error messages: