Changes between Version 5 and Version 6 of howto/PHP
- Timestamp:
- Jan 4, 2015, 10:45:46 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/PHP
v5 v6 48 48 = Trouble shoot = 49 49 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. 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.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. 51 51 52 52 == Verify your config file again! == … … 93 93 A sample configuration file is installed at /opt/local/www/phpmyadmin/config.sample.inc.php. 94 94 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. 95 Consult the documentation at file:///opt/local/www/phpmyadmin/doc/html/config.html 96 97 NOTE: 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 }}} 102 and then accessing ''http://<servername>/phpmyadmin-doc/'' 97 103 98 104 Finally, you need to set up the `phpMyAdmin` configuration to access MySQL. … … 104 110 }}} 105 111 106 This will create a file `config.inc.php` in the `phpMyAdmin` directory. Edit that file, and locate the lines: 112 This will create a file `config.inc.php` in the `phpMyAdmin` directory. \\ 113 Next, 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 }}} 117 It will be right at the beginning in the section labeled: "/* Authentication type */" 107 118 119 You will need to add the following two lines immediately after it. 108 120 {{{ 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') 113 123 }}} 114 124 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. 125 Where ' ' is an empty password; fill it with your MySQL root password. // 126 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. 116 127 117 128 There is also an interactive setup, see http://www.phpmyadmin.net/documentation/#setup_script and the demo at http://www.phpmyadmin.net/documentation/setup/