![]() ![]() In order to verify this, we run the command below to find out our Apache configuration.Ĭreate the phpinfo() page in your DocumentRoot:Įcho '' > /Users/WebServer/Documents/info.php The default DocumentRoot for macOS Catalina is /Library/WebServer/Documents. You can verify PHP is enabled by creating a phpinfo() page in your DocumentRoot. LoadModule php7_module libexec/apache2/libphp7.so ![]() Open the Terminal app and switch to the root user so you can run the commands in this post without any permission issues:įirst, let’s make a backup of the default Apache configuration In this tutorial, I will show you how to setup/install Apache, PHP, and MySQL on macOS Catalina. I was using for several years MAMP, Fywheel, as well as package managers like brew, and all work pretty well, but why not using the preinstalled Apache and PHP that is shipped in almost all macOS? In order to follow this guide, you should have a Mac computer with the Catalina OS installed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |