I am running OS X 10.12.6 on a Mac mini as a server that includes a WordPress site in addition to several web apps that utilize PHP, but version 5.6 is the one installed. I have been doing development on my laptop where I used home-brew to install php 7.3. My web apps run correctly on my laptop. The do not run correctly on the Mac mini. The WordPress application also tells me I should upgrade to PHP 7.3. I did use brew to install php 7.3 and from the command line php -v shows 7.3. Referencing phpinfo.php from the browser shows it is running php 5.6. I've reviewed all the notes I can find about how the Server app configures apache but cannot find how to upgrade the php version that the Server app can control and run.
I have located the configuration for apache on the server at: /Library/Server/web/config/apache2/httpd_server_app.conf. I tried copying the libphp7.so file from my laptop to the server and replaced the loading of the libphp5.so with libphp7.so. However, this failed as the system could not locate a crypto library referenced in the libphp7.so file. It does show however, that the changes I made in the httpd_server_app.conf were being read when I stopped and restarted the Web Server using the Web Sites panel in the Server app. Funny thing, however, is that my change of the server admin in that file was not reflected in the phpinfo.php display when I reverted to php5.6 and restarted.
What is the procedure I should use to upgrade the php server version on the Mac mini? I need to continue using the Server app but need it to use the same version of php as is available from the command line.