I have never done something like this, so you can call me completly unexperinced at this topic. Call me a MySQL/PHP/MariaDB-Noob if you want
But i did try do reproduce your problem and set up a VM for it. I followed the steps from the mentioned wiki and was able to setup everything (as far as my limited understanding of this topic is reaching).
- startet httpd.service
- startet mysqld.service
- Typed "localhost" into browser: It returned "It works!
- i didn't change working directory. It is still at /var/www/html/
- called "mysql_secure_installation" and did nothing change, only enter, enter, enter.....
- restart of MariaDb with "systemctl restart mysqld.service"
- connected to database with "mysql -u root -p" and closed it after i had success
- created info.php file for testing with "echo "<?php phpinfo();?>" >>/var/www/html/info.php && chmod a+r /var/www/html/info.php"
- opened "
http://localhost/info.php" in browser an many informations about php show up
- typed "http://localhost/phpmyadmin" into browser and the phpMyAdmin login page showed up
- logged in as root and created new user and database
- restartet computer and accessed phpmyadmin with new user/psswd
So, the wiki itself is correct and works as intended.