Ubuntu find Dependencies for a package

To find dependencies for a package, run apt-cache depends PACKAGE_NAME Example root@ubuntu-s-4vcpu-8gb-nyc1-01:~# apt-cache depends php7.2 php7.2 |Depends: libapache2-mod-php7.2 |Depends: php7.2-fpm Depends: php7.2-cgi Depends: php7.2-common root@ubuntu-s-4vcpu-8gb-nyc1-01:~# In above example, when you install php7.2, it install “libapache2-mod-php7.2”, that will install Apache web server. I had a server with ngtinx, when i install php7.2 package, apache get installed. … Read more

gpg: failed to start the dirmngr

When i add a key with apt-key command, i get error root@ip-172-31-47-128:~# apt-key adv –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E Executing: /tmp/apt-key-gpghome.0BP6Ro2t54/gpg.1.sh –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.0BP6Ro2t54/S.dirmngr’ failed: No such file or directory gpg: keyserver receive failed: No dirmngr root@ip-172-31-47-128:~# To … Read more

Debian

Debian is a powerful, stable, and versatile open-source operating system used by millions of servers and desktops worldwide. Known for its reliability, security features, and large repository of free software packages, Debian serves as the foundation for many popular Linux distributions.Debian is the core foundation for many popular Linux distributions, with Ubuntu being the most … Read more

Install Monit on Ubuntu

Monit can be used to monitor services, restart them if required. To install monit, run apt -y install monit To start monit, run systemctl start monit Monitor Apache vi /etc/monit/conf-available/apache2-custom Add check process apache with pidfile /var/run/apache2/apache2.pid group www-data start program = “/etc/init.d/apache2 start” stop program = “/etc/init.d/apache2 stop” if failed host localhost port 80 … Read more

Install ionCube on Debian 9

ioncube php module

Download latest version of ionCube loader from cd /usr/local/src wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvf ioncube_loaders_lin_x86-64.tar.gz cd ioncube/ Check PHP version with php -v On Debian 9, default will be PHP 7.0, so you need to use file ioncube_loader_lin_7.0.so Find PHP extension_dir, this is where you need to put PHP extensions. root@ip-172-31-44-173:/usr/local/src/ioncube# php -i | grep extension_dir … Read more

Install GeoIP PHP Module in Ubuntu

To install GeoIP php module in Ubuntu, run apt install php-geoip To enable module, run phpenmod geoip You can see the PHP module with command php -m root@ip-172-31-26-233:~# php -m | grep geoip geoip root@ip-172-31-26-233:~# Also it will be listed in phpinfo page. geoip

Install pureftpd on Ubuntu

To install pure-ftpd on Ubuntu, run apt install pure-ftpd -y Create a system user useradd -d /var/www -s /bin/bash USERNAME chown -R USERNAME:USERNAME /var/www passwd USERNAME Enable Unix Authentication To allow system user to login using FTP, edit file vi /etc/pure-ftpd/pure-ftpd.conf Uncomment the line UnixAuthentication yes Or echo ‘yes’ > /etc/pure-ftpd/conf/UnixAuthentication On Ubuntu, after default … Read more

dpkg

To force delete a package, run List all Installed packages List all files in a package To find which package provides a file To get a list of packages upgraded/installed today Apt