[MacPorts] howto/PHP modified

MacPorts Wiki noreply at macports.org
Thu Apr 13 14:29:48 UTC 2023


Page "howto/PHP" was changed by cyberon-org
Diff URL: <https://trac.macports.org/wiki/howto/PHP?action=diff&version=31>
Revision 31
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PHP
=========================================================================
--- howto/PHP (version: 30)
+++ howto/PHP (version: 31)
@@ -127,7 +127,7 @@
 
 = Step 6: Configure phpMyAdmin =
 
-As the final step let's configure and test `phpMyAdmin`  to access MySQL.
+Step 4 was the installation of phpMyAdmin. Next let's  configure and test if `phpMyAdmin`  can access MySQL.
 
 First create the config.inc.php file:
 {{{
@@ -141,10 +141,10 @@
 }}}
 
 
-To check your phpMyAdmin installation, point your browser to http://localhost/phpmyadmin and verify that phpMyAdmin loads and you see it's login page.
+To check your phpMyAdmin installation, point your browser to `http://localhost/phpmyadmin` and verify that phpMyAdmin loads and you get it's login page.
 Try to login as root with the MySQL password for root.\\
-There is a fair chance you can't login and will see two pink colored squares with cryptic error codes in it. The reason for it is that mySQL uses strong encryption,\\
-that phpMyAdmin can't handle. So let's change the encryption for the user root in mySQL to a lower level:
+There is a fair chance you can't login and will see two pink colored boxes with cryptic error codes in it. The reason for it is, that mySQL uses strong encryption,\\
+that phpMyAdmin can't handle. So let's change the encryption for the user root in mySQL to a weaker level:
 
 {{{
 $ mysql -u root -p
@@ -152,42 +152,29 @@
 mysql> exit
 }}}
 
-Now accessing databases in MySQL with phpMyAdmin should work. So installing a CMS like Drupal or WordPress should be a piece of cake.
-First step is to create a new user in mysql and his database. Download for example WordPress and copy it's files in your DocumentRoot.
-When installing it, you will see that macOS prevents WordPress from creating a config file in the DocumentRoot. Create that file manually and copy the contents provided by WordPress in it.
-Within a minute your Wordpress website is up and running. **Excellent job done !! ** \\
-
- 
-If you want to consult the phpMyAdmin manual, we should copy it into your DocumenRoot :
+Now accessing databases in MySQL with phpMyAdmin should work. Installing a CMS like Drupal, Joomla or WordPress should be a piece of cake.
+First step is to create in mysql a new user and the new user's database. Next download for example WordPress and copy it's files into your DocumentRoot.
+When installing WP, you will see that macOS prevents WP from creating the file wp-config.php in your DocumentRoot. Create that file manually and copy in it the contents provided by WP.
+Continue the installation, and in less than a minute your Wordpress website is up and running. **Excellent job done !! ** \\
+ \\
+
+There is no need to edit the config.inc.php file, so feel free to skip the following lines and goto Step 7:\\
+However if you are a curious person, check the following: locate in this config file the line:
+{{{
+$cfg['Servers'][$i]['auth_type']   = 'cookie';    // Authentication method (config, http or cookie based)? - default is Cookie.
+}}}
+It will be right at the beginning in the section labeled: "/* Authentication type */"
+
+Instead of the default value 'cookie', you might consider changing it to 'config' or 'http'.
+Details on the three different options can be found in the chapter 'using-authentication-modes' in the phpmyadmin manual.  \\
+
+If you want to consult the phpMyAdmin manual, copy it into your DocumenRoot :
 {{{
 $ cp -R /opt/local/www/phpmyadmin/doc/html /Users/username/Sites/phpmyadmin-doc
 }}}
-
-Just open localhost/phpmyadmin-doc in your browser et voilà! There it is.
-
-There is no need to edit the config.inc.php file, so feel free to skip the following:\\
-
-However if you are curious, check the following: locate the line:
-{{{
-$cfg['Servers'][$i]['auth_type']   = 'cookie';    // Authentication method (config, http or cookie based)? - default is Cookie.
-}}}
-It will be right at the beginning in the section labeled: "/* Authentication type */"
-
-Change the value from 'cookie' to 'config'.
-
-You will need to add the following two lines immediately after it.
-{{{
-$cfg['Servers'][$i]['user']        = 'root';      // MySQL user
-$cfg['Servers'][$i]['password']    = '';          // MySQL password (only needed with auth_type = 'config')
-}}}
-
-Where ' ' is an empty password; fill it with your MySQL root password. \\
-'''NOTE:''' You should change the 'auth_type' from 'config' to 'cookie' or 'httpd' so that you do not need to  provide the password you selected for the MySQL root user in the 'password' option.
-(I.e. leaving it in plain text in this config file.) \\
-However, as this is to simply get you "up-and-running," details for configuring those two authorization options are not given here.
-Details on "Using Authentication Modes" can be found at "''https://docs.phpmyadmin.net/en/latest/setup.html#using-authentication-modes''."
-
-= Step 6: Install pmadb = #pmadb
+Open localhost/phpmyadmin-doc in your browser et voilà! There it is.
+
+= Step 7: Install pmadb = #pmadb
 Some consider the installation of pmadb "optional." \\
 However, phpMyAdmin will flag the fact that it is missing and therefore certain features are not functional, with the message:
 {{{
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/PHP>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'howto/PHP' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list