You can run the calibre server from the command line. See
http://calibre-ebook.com/user_manual...re-server.html and
http://calibre-ebook.com/user_manual...n-linux-server. You can also set up the server to be behind another web server (reverse proxy). See
http://calibre-ebook.com/user_manual/server.html
There are alternate approaches that might work better in some situations, especially when the server isn't completely under your control. One is calibre2opds. Another that some use is dropbox. Another is my php server (
https://www.mobileread.com/forums/sho...d.php?t=104188)