I have recently updated to Lion and enabled Web Sharing in the System Preferences but I am unable to get php working.
I added an info file to the web root directory
After upgrading the MAC OSX to 10.14.5 My Apache config file was new and all my previous settings were replaced with default settings.
I was not able to open any PHP files in my browser. I followed the above steps and it resolved the issue.
Note - In OSX 10.14.5 there is Php7.1.23
Steps I followed -
LoadModule php7_module libexec/apache2/libphp7.so
Thank you for the solution, appreciated your help friends.
Regards,
Vicky Jadhav (India - pune)