Changes between Version 5 and Version 6 of howto/PHP


Ignore:
Timestamp:
Jan 4, 2015, 10:45:46 PM (9 years ago)
Author:
magill@…
Comment:

upd

Legend:

Unmodified
Added
Removed
Modified
  • howto/PHP

    v5 v6  
    4848= Trouble shoot =
    4949If 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.
    50 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.
     50Typically,  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.
    5151
    5252==  Verify your config file again! ==
     
    9393A sample configuration file is installed at /opt/local/www/phpmyadmin/config.sample.inc.php.
    9494
    95 Consult the documentation at file:///opt/local/www/phpmyadmin/doc/html/config.html \\
    96 Note that this file will not be accessible to your browser until it is linked in to your Document root.
     95Consult the documentation at file:///opt/local/www/phpmyadmin/doc/html/config.html
     96
     97NOTE: This option expects ''"/opt/local/www/phpmyadmin/doc/html/"'' to be accessible under "<Document Root>." This can be accomplished by
     98{{{
     99$ cd <Document Root>
     100$ ln -s /opt/local/www/phpmyadmin/doc/html/ phpmyadmin-doc
     101}}}
     102and then accessing ''http://<servername>/phpmyadmin-doc/''
    97103
    98104Finally, you need to set up the `phpMyAdmin` configuration to access MySQL.
     
    104110}}}
    105111
    106 This will create a file `config.inc.php` in the `phpMyAdmin` directory. Edit that file, and locate the lines:
     112This will create a file `config.inc.php` in the `phpMyAdmin` directory. \\
     113Next, Edit that file, and locate the line:
     114{{{
     115$cfg['Servers'][$i]['auth_type']   = 'config';    // Authentication method (config, http or cookie based)? - default is Cookie.
     116}}}
     117It will be right at the beginning in the section labeled: "/* Authentication type */"
    107118
     119You will need to add the following two lines immediately after it.
    108120{{{
    109 $cfg['Servers'][$i]['auth_type']      = 'config';    // Authentication method (config, http or cookie based)? - default is Cookie.
    110 $cfg['Servers'][$i]['user']              = 'root';      // MySQL user
    111 $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
    112                                                     // with 'config' auth_type)
     121$cfg['Servers'][$i]['user']        = 'root';      // MySQL user
     122$cfg['Servers'][$i]['password']    = '';          // MySQL password (only needed with auth_type = 'config')
    113123}}}
    114124
    115 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.
     125Where ' ' is an empty password; fill it with your MySQL root password. //
     126If 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.
    116127
    117128There is also an interactive setup, see http://www.phpmyadmin.net/documentation/#setup_script and the demo at http://www.phpmyadmin.net/documentation/setup/