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 195.201.160.13: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

  • 1 month 3 weeks ago
    [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

    Same with Drush 13 + PHP 8.3

  • 1 month 3 weeks ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    Initializing...

    Error : Failed to install the required package 'RPM' by using APT. Please install it manually. 

    Exit


    Solution:

  • 1 month 3 weeks ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:

  • 1 month 3 weeks ago
    No route found for the specified format html. Supported formats: csv, json. (Drupal Routing)

    I have a view with a path like /my-content-export to export entivies as JSON or CSV.

  • 2 months ago
    InvalidArgumentException: The controller for URI "/admin/flush" is not callable.

    admin_toolbar 3.5.2 is the reason. Patch coming ...

  • 2 weeks 6 days ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

    Drupal 10.4:

  • 2 months 4 weeks ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr

    Tools & Settings >> Security Policy :

     Allow only secure FTPS connections 

  • 4 months 1 week ago
    MariaDB Server Performance Optimieren

     

    /usr/sbin/mariadbd --help --verbose | grep "query.*size"
  • 4 months 1 week ago
    MariaDB Server Performance Optimieren

    Commandline:

    systemctl restart mariadb
  • 4 months 1 week ago
    MariaDB Server Performance Optimieren

    After my changes in /etc/mysql/db-performance.cnf