Lineshell.io : Stop wasting time by managing servers the old way

Hi guys, Today is a big day, and you will understand why I was so quiet during the last months! I've just released my new website I've been working on, https://www.lineshell.io which is basically a powerful SSH web platform for sysadmins and devops. Yes, I care about you guys ;) I will not describe everything here, I let you check the home page, and you will quickly understand how many time you can save using this tool in your daily job, if you manage a lot of servers. As always, I will answer every question in the comments, so don't hesitate to ask anything about the tool and I will be pleased to answer. I really hope to see you there! Cheers ! ...

The GHOST Vulnerability (and yes, this blog is still alive :))

After Heartbleed and Poodle in 2014, it's now time for the first major security vulnerability in Linux systems in 2015 : GHOST The GHOST vulnerability is a serious weakness in the Linux glibc library which allows attackers to remotely take complete control of the victim system without having any prior knowledge of system credentials. CVE-2015-0235 has been assigned to this issue. You can read more about this issue here : https://community.qualys.com/blogs/laws-of-vulnerabilities/2015/01/27/the-ghost-vulnerability You can list all packages/applications depends upon vulnerable Glibc, by running the following command on your server : lsof | grep libc | awk '{print $1}' | sort | uniq As you can see, a lot of packages are using Glibc library on Linux. If you want to check your glibc version, you can run : ldd --version Now, to patch your Ubuntu/Debian server, ...

How to install Apache SOLR 3.6 on Debian 7 or Ubuntu 12.04

I already explained how to install Apache SOLR 4 here and here, but some hosting companies keep using SOLR 3.6 (Acquia for example), so let's explain how to install this version on Debian 7 or Ubuntu 12.04. Installation Install Tomcat 6: apt-get update apt-get install tomcat6 tomcat6-admin Download SOLR 3.6 and extract it: wget http://archive.apache.org/dist/lucene/solr/3.6.0/apache-solr-3.6.0.tgz tar -vxf apache-solr-3.6.0.tgz Now, copy all needed files from the extracted archive: cd apache-solr-3.6.0 cp dist/apache-solr-3.6.0.war /var/lib/tomcat6/webapps/ mv /var/lib/tomcat6/webapps/apache-solr-3.6.0.war /var/lib/tomcat6/webapps/solr.war cp -r example/solr/ /var/lib/tomcat6/ Create solr.xml context file: vi /etc/tomcat6/Catalina/localhost/solr.xml With the content below: <Context ...

How to configure MySQL master/slave replication with MHA automatic failover

This post is the first one of a package called "complete infrastructure". Following all posts of this package, you will be able to setup, from scratch, a complete "high available" web infrastructure with : 2 load balancer servers 2 web servers (Drupal in my case) with real-time files synchronization 2 database servers sharing a VIP in a master/slave replication, with MHA automatic failover To find all posts of this package, just click the tag "complete infrastructure" at the end of the page. Overview The purpose of this installation is to have two database servers, in a master/slave replication configuration. All requests from your web servers are always forwarded to the master server, which is replicated in real-time. Most of the time, the slave server will just act as a simple backup, and will not be used by the website. ...

How to install multicore Apache SOLR 4.7 on Debian 7 or Ubuntu 12.04

As already stated in another article, Apache SOLR is a very fast and extremely powerful search engine which can easily be connected to your Drupal website (for example) using the Drupal module. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. In the previous article I explained how to install a basic Apache SOLR server, in this one we will install a multicore server with the latest SOLR 4.7 version. The installation procedure below works both on Debian 7 and Ubuntu 12.04. Installation For now, the latest version of Apache SOLR is currently 4.7, and we will install it on a Tomcat 6 web server. Install Tomcat 6: apt-get update apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user -y Download ...

How to install Memcache for Drupal

If you host a high traffic website, you probably have already wondered how to improve performances and reduce the load of your web server. To do this, you can start to optimize Apache and MySQL parameters, but at the end, you will always need powerful caching systems. In my opinion, the two important ones for a PHP website are APC (to cache PHP opcode) and Memcache (database oriented). Of course, you can also work with Redis, Varnish, and so on. This tutorial will help you to set up Memcache on a Apache/MySQL Debian 6 server, to use it with Drupal. It may work without troubles on Ubuntu server too. Method On your web server, run the following commands to install everything: apt-get update apt-get install memcached libmemcached-tools apt-get install php5-dev php-pear make apt-get install php5-memcached pecl install memcache-3.0. ...