Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 05-11-2017, 12:29 PM   #1516
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Strange.

So http://<your-lan-ip>/cops/checkconfig.php does not work?

Any errors?

With the downloaded zip file you mean the zip file from my link and not the zip from the cops codepage on github? There is a difference.

Can you try the steps under "install from source" out of the readme file?
mariosipad is offline   Reply With Quote
Old 05-11-2017, 12:52 PM   #1517
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
Strange.

So http://<your-lan-ip>/cops/checkconfig.php does not work?

Any errors?

With the downloaded zip file you mean the zip file from my link and not the zip from the cops codepage on github? There is a difference.

Can you try the steps under "install from source" out of the readme file?
Ok. I will in a little while, when I get home. Thank you.
inthemood is offline   Reply With Quote
Advert
Old 05-11-2017, 04:27 PM   #1518
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
I installed the cops-master zip. The result is better. http://<your-lan-ip>/cops/checkconfig.php (or /index.php) gives me the following answer:
Warning: require_once(/Applications/Abyss Web Server/htdocs/cops/vendor/autoload.php): failed to open stream: No such file or directory in /Applications/Abyss Web Server/htdocs/cops/config.php on line 9

Fatal error: require_once(): Failed opening required '/Applications/Abyss Web Server/htdocs/cops/vendor/autoload.php' (include_path='.:/Applications/PHP5/lib/php') in /Applications/Abyss Web Server/htdocs/cops/config.php on line 9


I looked at config.php, but I don't know how to correct that error.
Thank you
inthemood is offline   Reply With Quote
Old 05-11-2017, 06:01 PM   #1519
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
In your new cops installation does the file ./cops/vendor/autoload.php exist or not?

Edit: I was able to verify your error by deliberately downloading the zip with (only) source code and not doing (in a terminal, in your case directed to /Applications/Abyss Web Server/htdocs/cops) :
Code:
wget https://getcomposer.org/composer.phar
php composer.phar global require "fxp/composer-asset-plugin:~1.1"
php composer.phar install --no-dev --optimize-autoloader
You should copy these lines one at a time into the terminal [then <enter>] then do your usual things and it should work.


You can also download this zip https://github.com/seblucas/cops/rel...cops-1.1.1.zip and then unzip it into a ./cops directory. This should work.

If not let me know and I will try to help you.

Last edited by mariosipad; 05-11-2017 at 06:32 PM.
mariosipad is offline   Reply With Quote
Old 05-11-2017, 07:14 PM   #1520
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post


You can also download this zip https://github.com/seblucas/cops/rel...cops-1.1.1.zip and then unzip it into a ./cops directory. This should work.

If not let me know and I will try to help you.
Thank you very much. This worked. I don't understand why though, because I think that's what I did to start with. It remains mysterious to me, but I'm glad it now works. Thank you again.

The terminal method didn't work. I was getting this in the terminal :
Peters-Mac-mini:~ peter$ wget https://getcomposer.org/composer.phar
-bash: wget: command not found
Peters-Mac-mini:~ peter$ php composer.phar global require "fxp/composer-asset-plugin:~1.1"
Could not open input file: composer.phar
Peters-Mac-mini:~ peter$ php composer.phar install --no-dev --optimize-autoloader
Could not open input file: composer.phar
Peters-Mac-mini:~ peter$
inthemood is offline   Reply With Quote
Advert
Old 05-12-2017, 07:28 AM   #1521
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
I forgot that OSX does not know "wget".

For OSX users:
Code:
curl -O https://getcomposer.org/composer.phar
php composer.phar global require "fxp/composer-asset-plugin:~1.1"
php composer.phar install --no-dev --optimize-autoloader
mariosipad is offline   Reply With Quote
Old 05-12-2017, 08:32 AM   #1522
inthemood
Zealot
inthemood began at the beginning.
 
Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
Quote:
Originally Posted by mariosipad View Post
I forgot that OSX does not know "wget".

For OSX users:
Code:
curl -O https://getcomposer.org/composer.phar
php composer.phar global require "fxp/composer-asset-plugin:~1.1"
php composer.phar install --no-dev --optimize-autoloader
Thank you.
inthemood is offline   Reply With Quote
Old 05-17-2017, 05:20 PM   #1523
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Well, here I am again...

QNAP TS-251 NAS, x64, 8GB Ram

Previously I was running ok with the qpkg version of COPS 1.0.0RC3. This was installed in my ./Web folder.

I wanted to try the latest COPS 1.1.1, so downloaded the zip.

Saved my current working /share/Web/COPS working folder to a backup location, then deleted everything in the COPS folder. Note uppercase COPS is how it installed using the qpkg.

On my main PC, I unzipped the new version and did a SSH connection and copied it into the original COPS folder on the NAS.

Then I copied over the working config_local.php file.

But cannot get anything to run. If I put in http://192.168.x.xxx/COPS/checkconfig.php, I get the old "Internal Server Error Port 80"

I can't get past this. Any ideas?

Thanks!

Monty
MontyJ is offline   Reply With Quote
Old 05-18-2017, 04:28 AM   #1524
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
SSH into your QNAP and go to ./web

Then (and print the outcome here):
ls -l COPS
cd COPS
ls -l checkconfig.php

In other words check the permissions of the copied cops files.
mariosipad is offline   Reply With Quote
Old 05-18-2017, 10:22 AM   #1525
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
SSH into your QNAP and go to ./web

Then (and print the outcome here):
ls -l COPS
cd COPS
ls -l checkconfig.php

In other words check the permissions of the copied cops files.
Here are the results:
Code:
[/share/Web] # ls -l COPS
lrwxrwxrwx    1 admin    administ        37 May 18 06:46 COPS -> /share/CACHEDEV1_DATA/.qpkg/COPS/COPS/
[/share/Web] # cd COPS
[/share/Web/COPS] # ls -l checkconfig.php
-rw-r--r--    1 admin    administ      8670 Dec  7  2014 checkconfig.php
[/share/Web/COPS] #
I did a chmod +x checkconfig.php, and tried again, same results.
MontyJ is offline   Reply With Quote
Old 05-18-2017, 12:34 PM   #1526
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
I assume http://192.168.x.xxx from a browser still works?

Then COPS should as well. (As far as I can see from a distance and without a QNAP to try myself.)

If you delete (or temporarily move) the new installation of COPS and put back the old one, does COPS still work?
mariosipad is offline   Reply With Quote
Old 05-18-2017, 01:23 PM   #1527
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
I assume http://192.168.x.xxx from a browser still works?

Then COPS should as well. (As far as I can see from a distance and without a QNAP to try myself.)

If you delete (or temporarily move) the new installation of COPS and put back the old one, does COPS still work?
Thanks Mario,

If I put in that IP address, with no port or anything, it simply pulls up the login page of the QNAP Nas and reverts to:
Code:
http://192.168.x.xxx:8080/cgi-bin/
If I put in:
Code:
http://192.168.x.xxx/COPS/
It works. But, that bypasses apache, I think... I am trying to use port 88 for COPS, so it looks like my virtual host setup is messed up

If I use:
Code:
http://192.168.5.129:88
it appears mapped to port 8080 and that just brings up QNAP login again.

I hate apache...

I tried QApache before, but that is no better as far as basic setup, other than port 88 is setup by default and did work.
MontyJ is offline   Reply With Quote
Old 05-18-2017, 01:49 PM   #1528
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Why do you want to use port 88 instead of the "standard/regular" port 80?

To use port 88 you should indead look at the virtual hosts config.

It's my impression that it is not Apache but it is the QNAP (like the Synology) implementation that makes it all needlessly complicated.

But cops works, that is the main thing!
mariosipad is offline   Reply With Quote
Old 05-18-2017, 02:19 PM   #1529
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
Why do you want to use port 88 instead of the "standard/regular" port 80?

To use port 88 you should indead look at the virtual hosts config.

It's my impression that it is not Apache but it is the QNAP (like the Synology) implementation that makes it all needlessly complicated.

But cops works, that is the main thing!
Perhaps I am making it needlessly complicated, but I have more than one 'website' to host. Don't I need different ports for those if I want remote access?

I remember using the Calibre server, and with multiple libraries I had to use multiple servers, each on a different port, like 8162, 8163, etc.

I do have Ubooquity on port 2202, going through Pagekite, of course, so assumed I had to set COPS up on its own port.

No?
MontyJ is offline   Reply With Quote
Old 05-18-2017, 03:18 PM   #1530
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Any website on every webserver (like apache or nginx) is usually "set-up" on the standard port 80.

It is possibe, through Virtual hosts, to setup different websites (like cops) on different ports. But it is certainly not needed.
mariosipad is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre OPDS server with windows apps? nickdma Related Tools 10 03-03-2024 02:53 PM
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 5 12-24-2015 10:16 PM
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Calibre Command Line usage with PHP artoros Related Tools 13 07-01-2010 09:57 AM


All times are GMT -4. The time now is 08:20 AM.


MobileRead.com is a privately owned, operated and funded community.