Posts

Showing posts from February, 2018

Solr commands reference

Install Solr8.1 ========== 1. Start the solr cd solr-8.5.1 bin/solr start 2. Enable basic authentication plugin (standalone mode) cd server/solr vim security.json {    "authentication":{       "blockUnknown":true,       "class":"solr.BasicAuthPlugin",       "credentials":{          "solr":"vxxGVpJ0SiWA3LgtLCX8U+b3kGnFjS4CsT27Zz3g+MQ= iRFoY1CY1uFO6PgkugiN30eapYJ5SKFiHhBuy8O4rg0="       },       "realm":"My Solr users",       "forwardCredentials":false,       "":{          "v":0       }    },    "authorization":{       "class":"solr.RuleBasedAuthorizationPlugin",       "permissions":[          {             "name":"security-edit",             "role":"admin"       ...

Symfony3.4 and Drupal console commands reference

php bin/console list php bin/console generate:controller Symfony console: What we are going to do? 1. Install symfony at http://127.0.0.1:8001 2. Create a controller at  http://127.0.0.1:8001/products 3.  Create a controller at  http://127.0.0.1:8001/product Installing symfony: 1. apache-doc-root> composer create-project symfony/framework-standard-edition autotrader2 2. autotrader2> php bin/console server:run It should show like  [OK] Server listening on http://127.0.0.1:8001  3. Run in browser http://127.0.0.1:8001 It should say Welcome to Symfony 3.4.4 Create a controller at  http://127.0.0.1:8001/products Generate bundle: 1. autotrader2> php bin/console generate:bundle Note: a) Give bundle name as ProductBundle b) If following error occurs Checking that the bundle is autoloaded FAILED then add  "ProductBundle\\": "src/ProductBundle" in composer.json . So it should look like this "psr-4": { ...