Thank you all very much for the source build set.
As further reference I would like to add the following, for the unprepared ones (like I was):
- building this package requires having also the alpine source package at the same directory level as php/
- having X series of packages installed is a build requirement (depends on libXpm)
@volkerdi:
mod_php.conf.example needs to be updated to 7:
Code:
-LoadModule php5_module lib/httpd/modules/libphp5.so
+LoadModule php7_module lib/httpd/modules/libphp7.so
@ALL:
After compiling and building the package, when you install it, if upgrading from previous version,
/etc/httpd/mod_php.conf retains the previous version configuration, and the corresponding file from the new package remains as ".example".
doinst.sh is responsible for this part, probably based on similar intended logic such as .new files.
You need to replace
mod_php.conf with the contents of the newly installed
mod_php.conf.example
Furthermore, on a running system, you need
to completely stop apache, then, after a few seconds, start it again.
A simple
/etc/rc.d/rc.httpd restart is not enough when modules have changed, because it apparently does not do a complete stop.
Assuming there are no major changes between php-7.1.x versions, one can simply drop in the newer source archive and run the build script again.
While suing custom built php, if you are also using slackpkg to update your system, then you must add
php to
/etc/slackpkg/blacklist.
Hope all these will come in handy to other sysadmins and also when slackware-14.2 support will transition from 5.6 to 7.x after 5.6 support ends.
Again, thank you very much.