Changes between Version 28 and Version 29 of howto/PHP


Ignore:
Timestamp:
Apr 12, 2023, 3:10:44 PM (13 months ago)
Author:
cyberon-org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/PHP

    v28 v29  
    128128= Step 6: Configure phpMyAdmin =
    129129
    130 Edit the phpMyAdmin configuration file at ''/opt/local/www/phpmyadmin/config.inc.php''. \\
    131 A sample configuration file is installed at /opt/local/www/phpmyadmin/config.sample.inc.php.
    132 
    133 Consult the documentation on your server at ''"/opt/local/www/phpmyadmin/doc/html/config.html"''
    134 
    135 NOTE: This option expects ''"/opt/local/www/phpmyadmin/doc/html"'' to be accessible under "<Document Root>." This can be accomplished by
    136 {{{
    137 $ cd <Document Root>
    138 $ ln -s /opt/local/www/phpmyadmin/doc/html/ phpmyadmin-doc
    139 }}}
    140 and then accessing ''http://<servername>/phpmyadmin-doc/''
    141 
    142 Finally, you need to set up the `phpMyAdmin` configuration to access MySQL.
     130As the final step let's configure and test `phpMyAdmin`  to access MySQL.
    143131
    144132First create the config.inc.php file:
     
    148136}}}
    149137
    150 This will create a file `config.inc.php` in the `phpMyAdmin` directory. \\
     138Assuming that you have /Users/username/Sites as DocumentRoot for Apache, copy and paste `phpMyAdmin` in it :
     139{{{
     140$ sudo cp -R /opt/local/www/phpmyadmin/ /Users/username/Sites/phpmyadmin
     141}}}
     142
     143In your browser open `localhost/phpmyadmin`, and you will see phpMyAdmin's inlog page. Try to login as root with the MySQL password for root.\\
     144There 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,\\
     145that phpMyAdmin can't handle. So let's change the encryption for the user root in mySQL to a lower level:
     146
     147{{{
     148$ mysql -u root -p
     149mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'here your password for root';
     150mysql> exit
     151}}}
     152
     153 
    151154Next, Edit that file, and locate the line:
    152155{{{
     
    170173
    171174To 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).
     175
     176Consult the documentation on your server at ''"/opt/local/www/phpmyadmin/doc/html/config.html"''
     177
     178NOTE: This option expects ''"/opt/local/www/phpmyadmin/doc/html"'' to be accessible under "<Document Root>." This can be accomplished by
     179{{{
     180$ cd <Document Root>
     181$ ln -s /opt/local/www/phpmyadmin/doc/html/ phpmyadmin-doc
     182}}}
     183and then accessing ''http://<servername>/phpmyadmin-doc/''
    172184
    173185