If you experience is different, please state how, and which versions you're using. I don't remember where I got that recommendation (this was years ago), but it still seems to be the most correct nowadays. zshrc: a bunch of export lines, mostly for PATH zprofile: emulate sh \ source ~/.profile \ emulate zsh (interesting) bash_profile: source ~/.profile (that's it) It may be valuable for you and others to see the result of cat on different shell config files in my ~: My Mac started with Catalina, and has had Big Sur and Monterey previous to now. Considering this article was posted in September of 2019, looks like you were on Mojave. Maybe you were using something different. As of macOS 10.6 Catalina and its successor Big Sur, Apple has made the zsh shell the default shell, previously it was the bash shell. zshrc is not where alias should go, it should go into. My MAMP Pro is version 6.8, and my macOS is Ventura 13.2.1.įrom everything I've determined (even going back to Catalina. Apple likes changing file paths all the time for no apparent reason, so some of these just aren't applicable. Remember to return to howto/PHP to complete the PHP installation.Would be nice to know which version of MAMP Pro and macOS you wrote the article for.Note that this file needs to be readable and executable. Point your browser to (or as applicable) and verify that the correct version of PHP is active and that MySQL support is active (you may want to search the page for " mysql"). In case you don't remember, your Apache " DocumentRoot" is either the default directory " /opt/local/www/apache2/html" or your own user " Sites" directory if you activated user directories as specified above. This is used to test the configuration after you have integrated it with Apache and MySQL.Ĭreate in Apache's DocumentRoot a file named phpinfo.php that contains the following line Restart Apache so that your changes take effect 'Grep' should show now the three required lines. Next repeat the cat command above but only for the missing part. Open the php.ini file in your editor and add somewhere the line 'fault_socket='. If there is one missing, for example fault_socket=/opt/local/var/run/mysql8/mysqld.sock, fault_socket=/opt/local/var/run/mysql8/mysqld.sockįor proper setup of MySQL for PHP all three lines must be present. fault_socket=/opt/local/var/run/mysql8/mysqld.sock Pdo_fault_socket=/opt/local/var/run/mysql8/mysqld.sock Hit Enter and copy and paste the next line, etc. To make things easy: Copy the first line cat php.ini | sed \ with Command V and past it in the Terminal with Command C. MAMP Pro - /Library/Application Support/appsolute/MAMP PRO/phpMyAdmin/themes/ What's new Version 1.0. Pull the directory to phpMyAdmin root / themes. Preview Dark Mode Preview General Instructions. Give Enter after the backslash and you will enter the next line. A brilliantly coded AIO (All-In-One) Theme for phpMyAdmin. If you are unfamiliar with multiline Terminal commands like the cat command above: Each line ends with a backslash. # grep default_socket tmp.ini # Check it! e "s#pdo_mysql\.default_socket.*#pdo_mysql\.default_socket=$#" > tmp.ini Ill be using the Terminal to reset the root password, but first we need to ensure that MAMPs MySQL server is not running. # defSock=$(/opt/local/bin/mysql_config -socket) Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql8/mysqld.sock) Note: either of the above two edits are only required if the lines are not present in the nf file, as the apxs command (executed above) will add those for you. MAMP is a free and open-source application designed to help users install Apache, PHP, and MySQL on their computers and set up a personal web server. LoadModule php_module modules/mod_php82.so # And again notice the difference for php82: LoadModule php7_module modules/mod_php74.so LoadModule php5_module modules/mod_php56.so Verify that in the Dynamic Shared Object (DSO) Support section the following have been added. Verify that at the end of the nf file the following lines exist so that Apache includes the mod_php "AddType" configurations Update Apache’s nf - /opt/local/etc/apache2/nf - file to enhance the "DirectoryIndex" directive to include additional "index" files. $ sudo /opt/local/bin/apxs -a -e -n php mod_php82.so $ sudo /opt/local/bin/apxs -a -e -n php7 mod_php74.so $ sudo /opt/local/bin/apxs -a -e -n php5 mod_php56.so If this is your first install, you need to enable php56-apache2handler in your web server. Modify Apache Configuration to support MySQL and PHP.PHP 5.6.* - See: howto/PHP for instructions on installation of PHP.MySQL 8.* - See: howto/MySQL for instructions on installation of MySQL.Apache 2.4.* - See: howto/Apache2 for instructions on installation of Apache2.These installation instructions are written for the following versions: Install Apache, MySQL, PHP 5.6 and phpMyAdmin on macOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |