![]() Once the installer is downloaded, run the following command to install Composer globally: php composer-setup.php -install-dir=/usr/local/bin -filename=composer First, use the wget command to download the Composer installer: wget -O composer-setup.php Install PHP ComposerĬomposer provides an installer to install Composer on your system. Once all the packages are installed, you can proceed to install PHP Composer. You can install them by running the following command: apt-get install wget php-cli php-zip unzip -y Install PHP and Additional Dependenciesīefore installing Composer, you will need to install PHP and other required dependencies on your server. ![]() Once all the packages are updated, restart your system to apply the changes. Next, run the following commands to upgrade all installed packages on your VPS: apt-get update -y A Ubuntu 20.04 VPS with root access enabled or a user with sudo privileges.įirst, you will need to log in to your Ubuntu 20.04 VPS via SSH as the root user: ssh _ADDRESS -p PORT_NUMBER.In this post, we will show you how to install and use PHP Composer on Ubuntu 20.04. It is used in all modern PHP-based applications including, Laravel, Drupal, Magento, and more. It allows you to specify the library that you will need for your project. It installs all required packages that are compatible with the PHP project. Composer is a dependency manager tool for PHP especially designed to install and update project dependencies.
0 Comments
Leave a Reply. |