gaqfun.blogg.se

Mac os x apache config
Mac os x apache config





mac os x apache config
  1. Mac os x apache config how to#
  2. Mac os x apache config mac#

Sudo cp /private/etc/ /private/etc/php.ini To customize your PHP environment, if a php.ini file doesn’t already exist at /private/etc/php.ini, copy the default template to create a main php.ini file: MacOS’ PHP uses a default php.ini file based on /private/etc/. Verify PHP by accessing Customizing PHP settings (php.ini) 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

Mac os x apache config how to#

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?

Mac os x apache config mac#

In order to follow this guide, you should have a Mac computer with the Catalina OS installed.







Mac os x apache config