Category: Debian

Php5 sessions in /var/lib/php5

Ubuntu handles php5 sessions with a cronjob defined in /etc/cron.d/php5, running every 30 minutes Command ( root): && && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser …

Ubuntu resize-shrink pdf from command line

Install ghostscript, for Ubuntu/Debian: sudo apt-get install ghostscript Resize your pdf  with the command: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf Replace the file names output.pdf and input.pdf with your file names. These …

Mail server in Ubuntu or Debian

This tutorial will discuss how to set up a working mail server in Ubuntu or Debian. As we know, the two major protocols used in a mail server are SMTP and POP/IMAP. In this tutorial, …

Sphinx As MySQL Storage Engine (SphinxSE)

Sphinx As MySQL Storage Engine (SphinxSE) Author: Nedim Hadzimahmutovic SphinX is a great full-text search engine for MySQL. Installing the Sphinx daemon was straightforward as you can compile it from the source or use a …