Apache Solr install & activate on Debian 12 (Secure Admin with Basic Auth on Port 8983)

Download Solr: 

wget https://dlcdn.apache.org/solr/solr/9.7.0/solr-9.7.0.tgz

https://solr.apache.org/downloads.html.

Install Solr:

tar xzf solr-9.7.0.tgz solr-9.7.0/bin/install_solr_service.sh --strip-components=2
sudo bash ./install_solr_service.sh solr-9.7.0.tgz

 

Add/uncomment (File: /etc/default/solr.in.sh):

SOLR_JETTY_HOST="0.0.0.0"

0.0.0.0  to allow Solr to accept connections on all network interfaces.

 

Configure /var/solr/data/security.json :

{
 "authentication":{
   "blockUnknown":true,
   "class":"solr.BasicAuthPlugin",
   "credentials":{
     "solr":"PassWordHashComesHere",
     "mysecondsolruser":"PassWordHashComesHere"},
   "realm":"My Solr users",
   "forwardCredentials":false,
   "":{"v":0}},
 "authorization":{
   "class":"solr.RuleBasedAuthorizationPlugin",
   "permissions":[{
       "name":"security-edit",
       "role":"admin"}],
   "user-role":{"solr":"admin"}
}
}

 

Restart Solr:

service solr restart 
service solr status

Change Apache Solr Password (default, admin-user 'solr'):

curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"solr":"MyNewPassword123"}}'

Comments

I get this error, when I visit https://solr.example.com:8983 :

 

Secure Connection Failed
An error occurred during a connection to 1.2.3.4:8983. SSL received a record that exceeded the maximum permissible length.
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
   The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
   Please contact the website owners to inform them of this problem.

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare

  • 2 days 19 hours ago
    How to Renew Let’s Encrypt SSL Certificate on Plesk via Ubuntu Shell

    Let’s Encrypt will only accept a wildcard via DNS challenge. 

    If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success. 

  • 1 week 2 days ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 1 week 4 days ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 2 weeks 4 days ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 1 month ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 4 weeks 1 day ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 4 weeks 1 day ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 4 weeks 1 day ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 4 weeks 1 day ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 2 months 2 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem: