View Single Post
  #9   (View Single Post)  
Old 31st May 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I haven't heard from you regarding the warning.

Briefly, on a local virtual "lab" machine running OpenBSD 7.1-release, I:
  1. Installed phpMyAdmin-5.1.3p0. This installed pkg_info php-8.0.18 and php-mysqli-8.0.18 as dependencies.
  2. Installed mariadb-server-10.6.7p0v1.
  3. Ran mysql_install_db(1) as root to create the initial database in /var/mysql.
  4. Created the socket's directory structure and edited /etc/my.cnf as directed by /usr/local/share/doc/pkg-readmes/mariadb-server for chrooted daemons.
  5. Enabled and started mysqld with rcctl(8).
  6. Created a user and granted it all privileges with mysql(1), flushing privileges to enable immediate use.
  7. Enabled the mysqli extension with ln(1) as directed by /usr/local/share/doc/pkg-readmes/php-8.0.
  8. Enabled and started php80_fpm with rcctl(8).
  9. Created a simple httpd.conf that directs all .php files through the php-fpm socket:
    Code:
    server "lab" {
            listen on * port 80
            location "*.php" {
                    fastcgi socket "/run/php-fpm.sock"
            }
    }
  10. Enabled and started httpd(8) with rcctl(8).
  11. I created a short `info.php` file in /var/www/htdocs that calls phpinfo(), then connected with my browser to http://lab/info.php to confirm that PHP's fpm was running correctly and the mysqli extension was available.
  12. Copied the /var/www/phpMyAdmin file structure to /var/www/htdocs.
  13. Pointed my browser to http://lab/phpMyAdmin/index.php, and logged in with the user I'd created.

Last edited by jggimi; 31st May 2022 at 02:30 AM.
Reply With Quote