How to Install PHP on OpenSUSE 15.2/15.1

https://w‮al.ww‬utturi.com
How to Install PHP on OpenSUSE 15.2/15.1

To install PHP, a popular open-source scripting language, on OpenSUSE 15.2 or 15.1, follow these steps:

  1. Update the package manager's package list:
sudo zypper refresh
  1. Install PHP by running the following command:
sudo zypper install php7

This will install PHP and any dependencies required.

  1. To verify that the installation was successful, run the following command:
php -v

This will display the version of PHP that was installed.

  1. Optionally, you can install additional PHP modules by running the following command:
sudo zypper install php7-<module>

Replace <module> with the name of the module you want to install.

That's it! PHP is now installed on your OpenSUSE 15.2 or 15.1 system. You can use it to run PHP scripts and build web applications.

Created Time:2017-10-16 14:38:44  Author:lautturi