[Solved] ZipArchive extension: disabled/not installed on Ubuntu

If you have come across the following error: ZipArchive extension:&nbsp;<strong>disabled/not installed</strong> This just means that you are missing the php-zip module. How to fix the ZipArchive extension problem Run the following command: sudo apt-get install -y php-zip Now restart Apache2, and you’re good! service apache2 restart

March 26, 2022 · 1 min · 46 words · Andrew

How to start Java Jar as Service on Linux

If you have a Java Jar file, you can run it as a service under Linux/Ubuntu. sudo ln -s /var/www/japi-0.0.1-SNAPSHOT.jar /etc/init.d/japi Now you can use the default init.d verbs [start,stop,restart,status]. Additionally, init.d also gives the following. Usage for your new init.d service Usage: /etc/init.d/japi {start|stop|force-stop|restart|force-reload|status|run} Start Java Service sudo /etc/init.d/japi start Stop Java Service sudo /etc/init.d/japi stop Restart Java Service sudo /etc/init.d/japi restart Status Information sudo /etc/init.d/japi status

January 12, 2022 · 1 min · 68 words · Andrew

How to Install Cuda driver for Nvidia on Ubuntu

If you have just upgraded Ubuntu on your AWS g4dn instance and need to install/reinstall Cuda drivers for your Nvidia chipset, then you can run the following: Install Cuda drivers for Nvidia on Ubuntu wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" sudo apt-get update sudo apt-get -y install cuda How to get the versions for your own setup Or follow the wizard here to generate the correct version numbers for your specific environment/platform:...

January 4, 2022 · 1 min · 113 words · Andrew

How to List all Running Services on Ubuntu

If you need to view a list of all the services that are either running or stopped (or both) on an Ubuntu server, then you can use the following command: service --status-all This will print out a list of services that may look something like this: # service --status-all [ - ] acpid [ + ] apache-htcacheclean [ + ] apache2 [ + ] apparmor [ + ] apport [ + ] atd [ - ] console-setup....

January 3, 2022 · 2 min · 270 words · Andrew

How to Upgrade an Ubuntu Server

Upgrading an Ubuntu Server is quite easy, just follow the below commands: Option 1: Tldr; (just run the below!) sudo apt-get update && sudo apt-get upgrade sudo apt dist-upgrade sudo do-release-upgrade reboot Option 2: Follow the steps to Upgrade Ubuntu Server 1: Update the packages: Start by making sure that you have all the packages and dependencies ready locally before we upgrade sudo apt-get update && sudo apt-get upgrade 2: Update the dependencies for the distribution: sudo apt dist-upgrade...

January 1, 2022 · 1 min · 95 words · Andrew