Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Sep 15, 2015

Local SMTP server for Testing and Development on Windows

Use Papercut.

Download the application and run it. It will set up an SMTP server when it's running. Configure your application to use 'localhost' (or the machine where the server is running) as the SMTP server. If you need to use a non-default port number, you can configure it in Options.

As per the CodePlex webpage:
Papercut is a simplified SMTP server designed to only receive messages (not to send them on) with a GUI on top of it allowing you to see the messages it receives. It doesn't enforce any restrictions on addresses, it just takes the message and allows you see it. It is only active while it is running, and if you want it in the background, just minimize it to the system tray. When it receives a new message, a balloon message will show up to let you know.

May 28, 2015

Changing phpMyAdmin root password

To change the root password in phpMyAdmin follow these steps:


  1. Log in to the database directly using command:
    mysql -h <your_hostname> -u root
  2. Run the following SQL command:
    UPDATE mysql.user SET Password=PASSWORD('Your new Password') WHERE User='root';
  3. Open the following file:
    <XAMPP_INSTALLATION_FODLER>\phpMyAdmin\config.inc.php
  4. Change the following values:
    $cfg['Servers'][$i]['auth_type'] = 'config';
    to
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    and
    $cfg['Servers'][$i]['password'] = '';
    to
    $cfg['Servers'][$i]['password'] = 'new_password';

Oct 9, 2014

Installing multiple SOLR Instances in Tomcat on Same Server

  1. Make sure Java is installed on the machine.
  2. Install Apache Tomcat on port 8983 (or any other port) (Installed at location: D:\Apache)
  3. Open URL: http://localhost:8983 to check if installation is working
  4. Download any version of SOLR (in my case it 3.6.2 file apache-solr-3.6.2.zip)
  5. Stop Tomcat
  6. Unzip the SOLR and goto apache-solr-3.6.2\dist
  7. Copy the war file (apache-solr-3.6.2.war) to D:\Apache\webapps twice
  8. Rename the war files to solr.war and  solr-preview.war respectively
  9. Create a SOLR home folder (in my case at location D:\Apache\solr  and D:\Apache\solr-preview)
  10. Started and stopped Tomcat.
  11. Goto D:\Apache\webapps\solr\META-INF
  12. Create a context.xml file with content:
    <Context docBase="D:\Apache\webapps\solr.war" debug="0" crossContext="true">
      <Environment name="solr/home" type="java.lang.String" value="D:\Apache\solr" override="true" /> 
    </Context>
  13. Goto D:\Apache\webapps\solr-preview\META-INF
  14. Create a context.xml file with content:
    <Context docBase="D:\Apache\webapps\solr-preview.war" debug="0" crossContext="true">
      <Environment name="solr/home" type="java.lang.String" value="D:\Apache\solr-preview" override="true" /> 
    </Context>
  15. Copy all files from apache-solr-3.6.2\example\solr to both SOLR home folders D:\Apache\solr  and D:\Apache\solr-preview)
  16. Start Tomcat Service
  17. The solr instances will be available on the URL: http://localhost:8983/solr and http://localhost:8983/solr-preview
  18. To test the settings create a SOLR node in any of the SOLR instances. E.g. in Solr-preview. The new instance will be available only on Solr-preview instance