![]() Note: It is expected that you understand the basics of how to configure an Apache server before moving on to the rest of this post. Unfortunately the documentation for XAMPP-VM is a little lacking for beginners, so in this post I intend to fill in the gaps of knowledge. The newer version of XAMPP for macOS is called XAMPP-VM. The XAMPP project is a great tool to use for developing websites as it is cross-platform (Windows and Linux packages are available for it too) and allows you to build your project before you move on to other more advanced ways of serving your content (like using other macOS tools, or even configuring a Docker-based setup). Bundled inside it is Apache (a web server), MariaDB (an open source MySQL-compliant database server), PHP (a server-side programming language), and Perl (a programming language that many people love). XAMPP is a suite of tools delivered to you as a single package that you download and install on your computer. ![]() You could just open the Terminal.app and type php index.php which would run your file through the built-in php interpreter, but let’s say you want to view it in your web browser how do you do that? Well, this is where XAMPP comes in. So to create a local web server, all you need to do is configure Apache and install MySQL.If you’re someone just getting started with web development and you’re leveling up your learning to include PHP and other server-side languages, and you have an Apple Mac product of some kind running macOS 10.15, it’s very likely that you’ve ran into a wall trying to get your first index.php file to run. In Additional, Apache and PHP come preinstalled with macOS. Most UNIX software installs easily on macOS. But they forego the learning experience and, as most developers report, can become difficult to manage. I am aware of the web server software available for macOS, notably MAMP, as well as package managers like brew. If you have installed Apache, PHP, and MySQL for Mac OS Mojave, read my post on Updating Apache, PHP, and MySQL for macOS Catalina. Note: This post is for new installations. I recommend following my latest tutorial on installing Apache, MySQL, and PHP on macOS using Docker. While the following tutorial works for macOS Catalina, it has limitations. I finally switched to using Docker for local development on macOS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |