![]() LoadModule php7_module libexec/apache2/libphp7.so ![]() So we’ll also add it to our config: sudo tee -a /etc/apache2/other/ $USER nf << EOF ![]() LoadModule rewrite_module libexec/apache2/mod_rewrite.so It seems that mod_rewrite no longer gets loaded by default, so we’ll also add that to our config: sudo tee -a /etc/apache2/other/ $USER nf << EOF Include /private/etc/apache2/extra/nfĪfter that, configure vhosts as necessary in /etc/apache2/extra/nf (don’t forget to remove the examples in there). ![]() If you want to use vhosts, you’ll also have to make sure that the vhosts config gets loaded: sudo tee -a /etc/apache2/other/ $USER nf << EOF Include /private/etc/apache2/users/*.conf Now we have to make sure that our user config above actually gets loaded: sudo tee -a /etc/apache2/other/ $USER nf << EOF Options Indexes MultiViews FollowSymLinks Then add a configuration for your user: sudo tee /etc/apache2/users/ $nf ![]() Apacheįirst, you have to create a web root in your user account: mkdir ~/Sites Future versions of macOS will not include PHP. Apple added the following deprecation warning: PHP is included in macOS for compatibility with legacy software. Apple macOS 11.0 ships with both a relatively recent version of Apache (2.4.x), as well as PHP (7.3.x), so you’ll just have to install MySQL and go through a few steps to get everything up and running.īig Sur will likely be the last version of macOS that ships with PHP. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |