Quote:
Originally Posted by mariosipad
Either I do not understand what you want, or perhaps you do not fully understand how mailing from cops works. If you do I humbly apologise. 
The easyest solution is: the settings regarding mail in the config_local.... files need to be filled out with YOUR mail server data. The users can then specify their e-mail in a pop-up when they want to mail a document to themself.
Another, hard to maintain,solution is that you gather mail server data (server name, passwords) from all your security consious users and put that data in a lot of different config_local.user[1-n].php files. A lot of work, and some/most ISP don't let you mail from outside of their network. So most e-mail would be gmail or comparable anyway. It's probably better to use just one dedicated e-mail server (gmail or comparable).
Just my 2 cents on this topic.
|
I had to go off and slowly count to about 10 million, LoL.
In a previous life with cops, I had it working using .htaccess. But that was with QApache, not the default Apache. Given 'eccentricities' with qapache, I decided to eliminate that and the additional variables it threw into the qnap web server system and stay with the basic apache, which everyone but me knows and loves...
A little off topic, but applicable to my struggle, the competitor to cops I also am using (until/if I can get cops working right) is Ubooquity. It has a .qpkg install package, takes care of the port assignment, has built-in and easy to setup user login/password control, and detailed user and access logging. In short it can be up and going with minimal techie chops. So why am I bothering with cops? Simple. Uboo is not aimed at ebooks. While it does work with the exact same calibre database files that cops does, it is aimed at comics so does not handle the ebooks nearly as well as cops, and it is slow in comparison. Hint: If Uboo, with far fewer users, can do a .qpkg, so can Cops. Hopefully that will be considered in the future.
Ok, back on topic! Back to basics!!
I have cops111 working locally (192.168.x.xxx/cops111) pulls up the proper libraries as setup in config_local.php. I stripped out all the comment lines to keep it simple:
Code:
<?php
if (!isset($config))
$config = array();
$config['calibre_directory'] = array (
"01 - Repository Information" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/01-Repository Information/",
"02 - Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/02-Fiction/",
"03 - NonFiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/03-NonFiction/",
"04 - Science Fiction eBooks" => "/share/CACHEDEV1_DATA/Backups/Calibre_Libraries/04-Science Fiction/");
$config['cops_title_default'] = "COPS 1.1.1";
$config['cops_use_url_rewriting'] = "0";
$config['default_timezone'] = "America/Phoenix";
In the /share/Web/cops111/.htaccess file, everything is default except these last lines in the file:
Code:
#<FilesMatch "\.php$">
#AuthUserFile /share/Web/cops111/.htpasswd
#AuthGroupFile /dev/null
#AuthName "COPS Security"
#AuthType Basic
#Require valid-user
#</FilesMatch>
As is, cops111 works. But when I uncomment those lines, I get "Internal Server Error Port:80.
Ok, some kind of port issue? I do have a simple vhost setup in apache. Here is the httpd-vhosts-user.conf file that the qnap apache control panel sets up when I add a virtual host:
Code:
NameVirtualHost *:8162
Listen 8162
<VirtualHost _default_:80>
DocumentRoot "/share/Web"
</VirtualHost>
<VirtualHost *:8162>
<Directory "/share/Web/cops111">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ServerName Cops111
DocumentRoot "/share/Web/cops111"
</VirtualHost>
That code is all the default code; no changes by me. The main apache.conf file also has: "AccessFileName .htaccess", and I have not modified it.
My folder/file structure is:
/share/Web = Contains the default apache index.php and several of my simple bash scripts to restart apache, start cops, etc.
/share/Web/cops111 = Contains all cops111 files including .htaccess and .htpasswd
So when I uncomment those lines in .htaccess, I get the "Internal Server Error".
Bad/missing apache setting? Bad/missing cops111 setting?