[MacPorts] howto/PHP modified

MacPorts Wiki noreply at macports.org
Wed Apr 12 17:35:09 UTC 2023


Page "howto/PHP" was changed by cyberon-org
Diff URL: <https://trac.macports.org/wiki/howto/PHP?action=diff&version=30>
Revision 30
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PHP
=========================================================================
--- howto/PHP (version: 29)
+++ howto/PHP (version: 30)
@@ -140,7 +140,9 @@
 $ sudo cp -R /opt/local/www/phpmyadmin/ /Users/username/Sites/phpmyadmin
 }}}
 
-In your browser open `localhost/phpmyadmin`, and you will see phpMyAdmin's inlog page. Try to login as root with the MySQL password for root.\\
+
+To check your phpMyAdmin installation, point your browser to http://localhost/phpmyadmin and verify that phpMyAdmin loads and you see 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:
 
@@ -150,8 +152,22 @@
 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 !! ** \\
+
  
-Next, Edit that file, and locate the line:
+If you want to consult the phpMyAdmin manual, we should 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.
 }}}
@@ -170,18 +186,6 @@
 (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''."
-
-To check your phpMyAdmin installation, point your browser to http://localhost/phpmyadmin and verify that phpMyAdmin loads and can access your database (by providing a username and password, depending on the authentication method you selected).
-
-Consult the documentation on your server at ''"/opt/local/www/phpmyadmin/doc/html/config.html"''
-
-NOTE: This option expects ''"/opt/local/www/phpmyadmin/doc/html"'' to be accessible under "<Document Root>." This can be accomplished by
-{{{
-$ cd <Document Root>
-$ ln -s /opt/local/www/phpmyadmin/doc/html/ phpmyadmin-doc
-}}}
-and then accessing ''http://<servername>/phpmyadmin-doc/''
-
 
 = Step 6: Install pmadb = #pmadb
 Some consider the installation of pmadb "optional." \\
-------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