Changes between Version 29 and Version 30 of howto/PHP


Ignore:
Timestamp:
Apr 12, 2023, 5:35:09 PM (13 months ago)
Author:
cyberon-org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/PHP

    v29 v30  
    141141}}}
    142142
    143 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.\\
     143
     144To check your phpMyAdmin installation, point your browser to http://localhost/phpmyadmin and verify that phpMyAdmin loads and you see it's login page.
     145Try to login as root with the MySQL password for root.\\
    144146There 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,\\
    145147that phpMyAdmin can't handle. So let's change the encryption for the user root in mySQL to a lower level:
     
    151153}}}
    152154
     155Now accessing databases in MySQL with phpMyAdmin should work. So installing a CMS like Drupal or WordPress should be a piece of cake.
     156First step is to create a new user in mysql and his database. Download for example WordPress and copy it's files in your DocumentRoot.
     157When 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.
     158Within a minute your Wordpress website is up and running. **Excellent job done !! ** \\
     159
    153160 
    154 Next, Edit that file, and locate the line:
     161If you want to consult the phpMyAdmin manual, we should copy it into your DocumenRoot :
     162{{{
     163$ cp -R /opt/local/www/phpmyadmin/doc/html /Users/username/Sites/phpmyadmin-doc
     164}}}
     165
     166Just open localhost/phpmyadmin-doc in your browser et voilà! There it is.
     167
     168There is no need to edit the config.inc.php file, so feel free to skip the following:\\
     169
     170However if you are curious, check the following: locate the line:
    155171{{{
    156172$cfg['Servers'][$i]['auth_type']   = 'cookie';    // Authentication method (config, http or cookie based)? - default is Cookie.
     
    171187However, as this is to simply get you "up-and-running," details for configuring those two authorization options are not given here.
    172188Details on "Using Authentication Modes" can be found at "''https://docs.phpmyadmin.net/en/latest/setup.html#using-authentication-modes''."
    173 
    174 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).
    175 
    176 Consult the documentation on your server at ''"/opt/local/www/phpmyadmin/doc/html/config.html"''
    177 
    178 NOTE: 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 }}}
    183 and then accessing ''http://<servername>/phpmyadmin-doc/''
    184 
    185189
    186190= Step 6: Install pmadb = #pmadb