![]() ![]() Stop the Apache service: sudo systemctl disable -now apache2.Running Ansible for IT automation? Configure PHP-FPM and NGINX on your remote systems quickly with our Ansible roles. The steps below cover how to install PHP-FastCGI Process Manager (PHP-FPM) alongside the NGINX reverse proxy server. There are 2 choices for the alternative php (providing /usr/bin/php). Type the selection number on the left that corresponds to your preferred PHP version.Specify the default PHP version, if you installed more than one PHP version: sudo update-alternatives -config php.Install any needed packages, again replacing “7.4” and “package” with the package name: sudo apt install php7.4-package.You can use the following command to search for any other important PHP modules, replacing “7” and “package” with your search query: sudo apt-cache search php7.* | grep package.(For PHP 8.0) Restart Apache: sudo systemctl restart apache2.PHP 8.0: sudo apt install php8.0 libapache2-mod-php8.0 Press Enter to confirm adding the PPA to your system. Add the PHP Personal Package Archive (PPA) by Ondrej: sudo add-apt-repository ppa:ondrej/php.Ensure the following repo is installed: sudo apt -y install software-properties-common.If prompted, press Y, then Enter to confirm the installation. Update your repos again: sudo apt update.Add their repo for PHP on Debian: echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt//sury-php.list.Add the GPG key: sudo wget -O /etc/apt//php.gpg.Install the required dependencies first: sudo apt -y install lsb-release apt-transport-https ca-certificates.Run the following command to install PHP on Apache.Install any needed packages, again replacing “package” with the actual package name: sudo dnf install php-package.You can use the following command to search for any other important PHP modules, replacing “package” with your search query: sudo dnf search php-package.To enable PHP 8, for example: sudo dnf module enable php:remi-8.0 -y View available PHP streams: sudo dnf module list php.Install the Remi repo for PHP versions:.Enable the Extra Packages for Enterprise Linux (EPEL) repository. ![]() SSH into your Linux server, then read on to learn: And many lesser known ones available in Softaculous Instant Installer.Many of the most popular content management systems (CMSs) depend on an up-to-date PHP version on your PHP hosting server: It’s also part of the LEMP Stack which replaces Apache with NGINX. For some, it is important to know how to install PHP as part of the LAMP Stack along with the Linux operating system family, Apache web server, and MySQL database management system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |