[MacPorts] howto/PHP modified

MacPorts noreply at macports.org
Sun Jan 4 14:45:47 PST 2015


Page "howto/PHP" was changed by magill at mac.com
Diff URL: <https://trac.macports.org/wiki/howto/PHP?action=diff&version=6>
Revision 6
Comment: upd
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PHP
=========================================================================
--- howto/PHP (version: 5)
+++ howto/PHP (version: 6)
@@ -47,7 +47,7 @@
 
 = Trouble shoot =
 If by some reason the server still doesn't interpret PHP files (i.e. your web client tries to download them) it means the PHP configurations, as described at [[howto/MAMP#job1]], are not taking effect.
-Typically,  the file ''"Include conf/extra/mod_php56.conf"'' is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
+Typically,  the file ''"Include conf/extra/mod_php56.conf"'' - is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
 
 ==  Verify your config file again! ==
 Verify any changes you have made to the config file: /opt/local/apache2/conf/httpd.conf - The most common problem is that the files in the "extra" directory are not "readable"
@@ -92,8 +92,14 @@
 Edit the phpMyAdmin configuration file at ''/opt/local/www/phpmyadmin/config.inc.php''. \\
 A sample configuration file is installed at /opt/local/www/phpmyadmin/config.sample.inc.php.
 
-Consult the documentation at file:///opt/local/www/phpmyadmin/doc/html/config.html \\
-Note that this file will not be accessible to your browser until it is linked in to your Document root.
+Consult the documentation at file:///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/''
 
 Finally, you need to set up the `phpMyAdmin` configuration to access MySQL.
 
@@ -103,16 +109,21 @@
 $ sudo cp config.sample.inc.php config.inc.php
 }}}
 
-This will create a file `config.inc.php` in the `phpMyAdmin` directory. Edit that file, and locate the lines:
+This will create a file `config.inc.php` in the `phpMyAdmin` directory. \\
+Next, Edit that file, and locate the line:
+{{{
+$cfg['Servers'][$i]['auth_type']   = 'config';    // Authentication method (config, http or cookie based)? - default is Cookie.
+}}}
+It will be right at the beginning in the section labeled: "/* Authentication type */"
 
+You will need to add the following two lines immediately after it.
 {{{
-$cfg['Servers'][$i]['auth_type']      = 'config';    // Authentication method (config, http or cookie based)? - default is Cookie.
-$cfg['Servers'][$i]['user']              = 'root';      // MySQL user
-$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
-                                                    // with 'config' auth_type)
+$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. You can either change the 'auth_type' from 'config' to 'cookie' or 'httpd', or alternatively provide the password you selected for the root user in the 'password' option.
+Where ' ' is an empty password; fill it with your MySQL root password. //
+If you change the 'auth_type' from 'config' to 'cookie' or 'httpd' you do not need to  provide the password you selected for the MySQL root user in the 'password' option. However details for configuring those two authorization options are not given here.
 
 There is also an interactive setup, see http://www.phpmyadmin.net/documentation/#setup_script and the demo at http://www.phpmyadmin.net/documentation/setup/
 
-------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 OS X

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 .


More information about the macports-changes mailing list