Hi, tried to mimic your procedure. Installed the Lamp pattern + yast2-http-server. Used the latter to fire up the apache server, enabled php7, restarted apache and as a test started a Joomla install. Works as expected. Did you restart apache after enabling php7 ?
I surely restarted apache after enabling php. Today made again clean install just exactly your way, enabled php7, restarted apache, default index.html in /srv/www/htdocs is ok in browser (http://localhost/), but very simple test.php (http://localhost/test.php)
<?php phpinfo(); ?>
browser still offers me to open in Leafpad or save
Today I’ve checked /var/log/apache2/error_log, here it is:
[Fri Jun 08 09:02:38.643735 2018] [mpm_prefork:notice] [pid 4213] AH00163: Apache/2.4.33 (Linux/SUSE) configured -- resuming normal operations
[Fri Jun 08 09:02:38.644410 2018] [core:notice] [pid 4213] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Fri Jun 08 09:09:40.616008 2018] [mpm_prefork:notice] [pid 4213] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 08 09:09:40.930340 2018] [mpm_prefork:notice] [pid 4622] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
[Fri Jun 08 09:09:40.930781 2018] [core:notice] [pid 4622] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Fri Jun 08 09:43:47.341334 2018] [mpm_prefork:notice] [pid 4622] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 08 09:43:47.580255 2018] [mpm_prefork:notice] [pid 5073] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
[Fri Jun 08 09:43:47.580666 2018] [core:notice] [pid 5073] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Fri Jun 08 10:48:34.462793 2018] [mpm_prefork:notice] [pid 5073] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 08 10:49:53.623850 2018] [mpm_prefork:notice] [pid 1582] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
[Fri Jun 08 10:49:53.670665 2018] [core:notice] [pid 1582] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Fri Jun 08 11:19:54.141559 2018] [mpm_prefork:notice] [pid 1582] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 08 11:19:54.402620 2018] [mpm_prefork:notice] [pid 23965] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
[Fri Jun 08 11:19:54.402974 2018] [core:notice] [pid 23965] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Sat Jun 09 06:39:46.009765 2018] [mpm_prefork:notice] [pid 23965] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jun 09 06:39:46.250091 2018] [mpm_prefork:notice] [pid 28501] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
[Sat Jun 09 06:39:46.250561 2018] [core:notice] [pid 28501] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
Yesterday I did restart apache several times without any sense, but today after apache restart - PHP works!
I didn’t change anything today, I just left the computer switched on till the morning and made last attempt to restart apache and check the log before giving up and installing well known Leap 42.
So, if to wait one day before PHP starts to work under Leap 15 is the solution, then the problem is solved:)