![]() > export PATH=/usr/local/mysql/bin:$PATH You need to ensure PHP and MySQL can communicate with one another. you can update your path to include /usr/local/mysql/bin. > cd /etc/apache2 > cp nf > sudo vi nf Uncomment the following line (remove #) > LoadModule php5_module libexec/apache2/libphp5.so Test php by run apache > sudo apachectl restart Install MySQLĭownload and install the latest MySQL generally available release DMG for Mac OS X. > sudo apachectl start Verify It works! by accessing Enable PHP for Apache I use Apache 2.4.18, PHP 5.5.36, and MySQL Community Server 5.7.15 Enable Apache on Mac OS X ![]() I have problem about MAMP PRO (I don’t have money for buy software). As such, the macOS Catalina upgrade should not have changed your MySQL configuration.Installing Apache, PHP, and MySQL on Mac OS X El Capitan It is something you downloaded when following the original post. MySQL is not pre-installed with Mac OS X. Once I determine a work around, I will post an update. This is a popular extension used by many packages. Note: It appears Catalina does not include the PHP Zip extension. To determine the right path to add your custom PHP INI, run the following command: php -i | grep additional This will prevent Mac OS X upgrades from overwriting your PHP configuration in the future. Instead, you should overwrite PHP configurations in a custom PHP INI file. I would encourage you not to change the PHP INI file directly. You can see which PHP core files exist by running ls /etc/php.ini*. Note: Your original file may note be named something else. You can compare the two files by running the following command: diff /etc/ /etc/ If you added any extensions to PHP you will need to recompile them.Īlso, if you changed the core PHP INI file it will have been overwritten when upgrading to macOS Catalina. macOS Catalina comes with PHP 7.3 pre-installed. This PHP version has reached its end of life. Mac OS X Mojave came with PHP version 7.1 pre-installed. Restart Apache: apachectl restart Updating PHP However, if you changed them, you should compare the files before running the commands. Note: These files were not changed between versions. This will help avoid confusion in the future. LoadModule rewrite_module libexec/apache2/mod_rewrite.soįinally, I cleaned up some of the backups that were created during the macOS Catalina upgrade. LoadModule expires_module libexec/apache2/mod_expires.so For example, I uncommented the following lines: LoadModule deflate_module libexec/apache2/mod_deflate.so In addition, uncomment or add any lines you noticed from the diff above that may be needed. Uncomment the following line (remove #): LoadModule php7_module libexec/apache2/libphp7.so Feel free to use a different editor if you are not familiar with vi. sudo cp /etc/apache/nf /etc/apache/ĭiff /etc/apache/ /etc/apache/nf First, create a backup and compare the two configuration files for differences. As such, you should take the time to update Catalina's Apache configuration. However, I encourage you to stay up-to-date. However, since both Mojave and Catalina run Apache 2.4, you could simply backup the configuration file from Catalina and overwrite it with your Mojave version. There were a few differences in the configuration files. As noted above, your Apache configuration file is overwritten me when you upgrade to macOS Catalina. ![]() Mac OS X Mojave and macOS Catalina both come with Apache pre-installed. This post will look at the differences in Apache, PHP, and MySQL between Mac OS X Mojave and macOS Catalina. Most of the time, configuring your system after updating Mac OS X is simply a matter of comparing the new and old configurations. For Catalina the original versions may have a suffix of mojave or be copied to a backup folder on the Desktop. However, before doing so it will make backups. When Mac OS X upgrades it overwrites previous configuration files. If you did not follow the original post, you should follow installing Apache, PHP, and MySQL on macOS Catalina. Note: This post assumes you followed installing Apache, PHP, and MySQL on Mac OS X Mojave and have since upgraded to macOS Catalina.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |