To set up COPS (
Calibre
OPDS (and HTML)
PHP
Server) check
this website.
Also see
this forum.
As stated on the frist website I mentioned, to instal COPS you need:
* A web server with PHP support (Nginx, Apache, Cherokee, Lighttpd, IIS).
* PHP 5.3 / 5.4 with GD image processing & SQLite3 support.
* The path to a Calibre library (metadata.db, format, & cover files).
COPS also runs on Synology NAS devices and other small NASses as long as they have, or you can install a webserver with PHP on it.