DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 28th May 2022
gordon.f gordon.f is offline
Fdisk Soldier
 
Join Date: Oct 2021
Location: Europe
Posts: 60
Default How to configure phpMyAdmin for httpd?

Good day,

TL,DR: Are my folders and httpd.conf file configured correctly?

I'm trying to build a website with a database. So I use httpd, PHP, and mariadb. I also would like to use phpMyAdmin. I downloaded phpMyAdmin with the code below
Code:
pkg_add phpMyAdmin
It located inside /var/www/phpmyadmin. I copied that folder to /var/www/htdocs/my_website.

Code:
ls /var/www/htdocs/my_website/
index.php phpmyadmin
So here is my configuration at /etc/httpd.conf

Code:
#[ MACROS ]
ext_ip = "127.0.0.1"

# [ SERVERS ]
server "default" {
    listen on $ext_ip port 80
    root "htdocs/my_website"
    directory index "index.php"

    location "/*.php*" { fastcgi socket "/run/php-fpm.sock" }
}

# [ TYPES ]
types {
    include "/usr/share/misc/mime.types"
after starting httpd, and the database, I entered this into the address bar:
"http://localhost/phpMyAdmin/index". But result was like this:
Quote:
phpMyAdmin - Error

The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.
I couldn't find any information about httpd and phpMyAdmin on Google. So could you please guide me in order to use them correctly? Thanks in advance.
Reply With Quote
 

Tags
httpd, php, phpmyadmin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating the "vi /etc/httpd.conf", httpd -n, rcctl restart httpd" treadmill J65nko Guides 0 18th May 2021 12:58 AM
How to configure nagios-web on OpenBSD 5.8 httpd? kleefaj OpenBSD Packages and Ports 0 11th April 2016 04:58 PM
phpMyAdmin problems werwer OpenBSD General 5 16th July 2010 10:53 AM
phpMyAdmin Unaccessable Nk2Network OpenBSD Packages and Ports 2 20th April 2009 09:13 PM
phpMyAdmin Unaccessable plexter OpenBSD Packages and Ports 3 16th December 2008 10:32 PM


All times are GMT. The time now is 07:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick