On 05/06/2017 12:40 PM, Richard Owlett wrote: <...>
> I decided to start from scratch in an organized manner. > This time it will be a PURE Debian install using Debian oriented > documentation. Preferably *current* and authoritative. > > I have a brand new partition with Debian Stretch (IE testing). > I have used Synaptic to install apache2, mysql, php. > > Apache2 apparently works as pointing browser to http://localhost/ > displays the correct page. It effectively reminded me that I had not > installed the apache2-doc package. I did so. > > I know of no way to test mysql and/or php at this point. To test mysql, run the mysql monitor. Open a terminal window and type the following: mysql -u username -p When you installed MySql it should have created the user "root" and had you create a password for user root. So in the above command, substitute "root" for "username" (don't use the quote marks). If MySQL is running, it will ask you for root's password. Then it will give you something like the following: ----------------------------------------------------------------------------------------------------------------- rsteff@Enu-1:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 67 Server version: 5.5.55-0ubuntu0.14.04.1 (Ubuntu) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> quit Bye rsteff@Enu-1:~$ ----------------------------------------------------------------------------------------------------------------- Assuming you get into the MySQL monitor, the way to get out is the command quit. (See a few lines above.) To test php put the following into a file named index.php, <html> <body> <?php phpinfo(); ?> </body> </html> and then put it in the same folder as your current index.html, which is where "It works" comes from. And here we have another example of the saying, "Standards are great because there's so many to choose from." You may have to search for that folder. On my Ubuntu 14 system, it's in /var/www/html, but other distributions put it in different places. Another possibility is /usr/local/apache/htdocs. Your milage will vary. Once you've found it you might have to do some fiddling with permissions to be allowed to add files there and do other administrative stuff. So anyway, put index.php in that folder. You might have to rename index.html to something else, like not-index.html. Now point your browser to http://localhost/ and you should see a very long page with several tables of php related information. The top of the page should have something like: PHP Version 5.5.9-1ubuntu4.21 Yours should have a different version, since you're using pure Debian. This one is from Ubuntu 14.04. > I then installed the phpmyadmin package. An installer script started. It > asked what database program was being used. I marked the box for mysql. > It asked for "MySQL application password for phpmyadmin". I made one. > It then asked for "password for database's administrative user". I made > one. It *FAILED* displaying a box of potential causes - none of which > made sense. When you installed MySQL, did it ask you to create an administrator's password? That's the one you should use here and is the same one used in the example above on how to get into the mysql monitor. In my case the administrator is root. > <...> > I'm clueless. > What should I be searching for? Many of us have also been there. I hope the above clues help. -- Regards, Dick Steffens _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
