Join the 5 Minute Guide community to share your own tutorials and participate in forum conversations!
In this tutorial I show you how to install php7 for opensuse leap 42.1 in terminal. This method should also work with other installs of opensuse but may not work for all versions. The commands are listed below.
su – #grants root privileges for entire session
zypper update #updates zypper installer
zypper in php7 php7-mysql #installs php7
a2enmod php7 #enables php7 module in apache2
cd /srv/www/htdocs #gets you to your websites home directory
mv index.html index.php #changes index.html to index.php
gedit index.php #edits index.php
systemctl restart apache2 #restarts apache2
I hope this tutorial was helpful and if you have any questions leave them in the comment area below.