Find the .deb package that contains a specific file on Ubuntu or Debian Linux

Sometimes you need to know to which debian or ubuntu package a specific file belongs, e.g. because you deleted a system file and want to reinstall it. There is a handy utility called apt-file which searches for a filename in all debian packages. Installation apt-get install apt-file Usage example search for the file /etc/sysctl.conf apt-file ... Read more

Solve error message: PHP Startup: Unable to load dynamic library

If you get the following error message in Ubuntu when you use PHP based shell scripts: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/' - /usr/lib/php5/20060613+lfs/ cannot open shared object file: No such file or directory in Unknown on line 0 Then edit the file /etc/php5/cli/php.ini: vi /etc/php5/cli/php.ini and remove the lines: [htscanner] ... Read more