![]() Where is apache.ini file located? bash-3.2$ vi /usr/local/etc/php/8.1/php.I think unlink & link php versions are not enough because we are often using php with apache(httpd), so need to update nf after switch php version. Let me know if you face any issue installing PHP on your MacOS. With Zend OPcache v8.1.2, Copyright (c), by Zend TechnologiesĪnd you are all set. Zend Engine v4.1.2, Copyright (c) Zend Technologies Let’s verify PHP version details and where it’s installed. Here are some more MacOS console result: Step-3 Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). □ /usr/local/Cellar/php/8.1.2: 513 files, 80.0MBĭisable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Or, if you don't want/need a background service you can just run: The php.ini and php-fpm.ini file can be found in: LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.soįinally, check DirectoryIndex includes index.php To enable PHP in Apache add the following to nf and restart Apache: => /usr/local/Cellar/php/8.1.2/bin/pear update-channels => /usr/local/Cellar/php/8.1.2/bin/pear config-set php_bin /usr/local/opt/php/bin/php system => /usr/local/Cellar/php/8.1.2/bin/pear config-set test_dir /usr/local/share/pear/test system => /usr/local/Cellar/php/8.1.2/bin/pear config-set man_dir /usr/local/share/man system => /usr/local/Cellar/php/8.1.2/bin/pear config-set www_dir /usr/local/share/pear/htdocs system => /usr/local/Cellar/php/8.1.2/bin/pear config-set cfg_dir /usr/local/share/pear/cfg system => /usr/local/Cellar/php/8.1.2/bin/pear config-set data_dir /usr/local/share/pear/data system => /usr/local/Cellar/php/8.1.2/bin/pear config-set bin_dir /usr/local/opt/php/bin system => /usr/local/Cellar/php/8.1.2/bin/pear config-set ext_dir /usr/local/lib/php/pecl/20210902 system => /usr/local/Cellar/php/8.1.2/bin/pear config-set doc_dir /usr/local/share/pear/doc system => /usr/local/Cellar/php/8.1.2/bin/pear config-set php_dir /usr/local/share/pear system => /usr/local/Cellar/php/8.1.2/bin/pear config-set php_ini /usr/local/etc/php/8.1/php.ini system => Installing php dependency: Pouring 8,081 files, 18.5MB □ /usr/local/Cellar/ca-certificates/: 3 files, 208.5KB => Regenerating CA certificate bundle from keychain, this may take a while. => Installing php dependency: ca-certificates => Installing dependencies for php: apr, ca-certificates, argon2, aspell, m4, autoconf, brotli, libunistring, libidn2, libnghttp2, libssh2, openldap, rtmpdump, zstd, curl, libtool, unixodbc, freetds, libpng, freetype, fontconfig, jpeg, libtiff, giflib, webp, gd, gmp, icu4c, krb5, libpq, libsodium, libzip, oniguruma, pcre2, readline, sqlite and tidy-html5 Once Homebrew is successfully installed, install PHP using below command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |