Skip to main content

Posts

Showing posts from February, 2014

How to install Graylog v0.20.0

There are three major dependencies of graylog: java, mongodb and elasticsearch. Either install openjdk-7-jdk or oracle java-7 (In this guide, oracle-java is installed.): echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt-get update apt-get install oracle-java7-installer Then, install elasticsearch: wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.10.deb sudo dpkg -i elasticsearch-0.90.10.deb

How to prevent directory listing in Apache Server

When you type a path in the browser to reach your website, if your files are listed on the screen; you should avoid this behavior. It is obviously very insecure. Disabling directory listing in apache is very easy. You just need to know where to edit. Go to file " /etc/apache2/sites-enabled/000-default ". Open it with your favorite text editor as root user. Go to /var/www directory block. You will see following lines: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> In the line which starts with ' Options ', realize ' Indexes ' keywords. It causes directory listing. Remove it. Then, save and quit the file. Restart apache server ( sudo service apache2 restart ). And that's it.

How to handle 'SunCertPathBuilderException: unable to find valid certification path to requested target'

I have set up Atlassian Jira and set e-mail address for it. When I tried to sent test e-mail, I have faced with an error : SunCertPathBuilderException: unable to find valid certification path to requested target . After some search on Internet, I have found the following solution: To retrieve an SSL certificate from remote server, use InstallCert.java . After compiling the file, run the command: java InstallCert mta.xxx.gov.tr:465 . The run will fetch ssl certificate from specified port on the host: