DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th October 2015
tab tab is offline
Port Guard
 
Join Date: Oct 2015
Posts: 15
Default MySQL (MariaDB) does not works with php

Hi,
I am doing some experiments with OpenBSD 5.7. My final intention is to have a small web server available from external but for this purpose I will work gradually.
The problem I am having is with Mysql and php: I am trying to install wordpress CMS but in the installation page I have this error The PHP installation does not have the MySQL extension which is required to use WordPress.
I searched for similar problems on this forum and on the web but I found partial informations such as the problem of external mysql-sock.
Can you give me some idea?
I saw that OpenBSD's httpd.conf is different from others OS' httpd.conf.
Is there a httpd.conf full example?
The example in httpd paper and in /etc/examples is very poor informations

Edit: I also tried to add bind-address: 0.0.0.0 in /etc/my.cnf and restart the mysqld, but without success.

Last edited by tab; 27th October 2015 at 04:37 PM.
Reply With Quote
  #2   (View Single Post)  
Old 27th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

PHP is a language and a tool set with many packages, for many purposes.

MySQL (or MariaDB, now) is one of several databases usable with PHP, and each has a different connector. Install the php-mysql package, as that connects PHP to MySQL or MariaDB database management systems.

Last edited by jggimi; 27th October 2015 at 05:03 PM. Reason: clarity
Reply With Quote
  #3   (View Single Post)  
Old 28th October 2015
tab tab is offline
Port Guard
 
Join Date: Oct 2015
Posts: 15
Default

Hi,
I had already installed php-mysql-5.5.22.
I still followed this tutorial even if it is old
Reply With Quote
  #4   (View Single Post)  
Old 28th October 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

When you installed php-mysql-5.5.22, the following message should have appeared on your console:
Code:
You can enable this module by creating a symbolic link from
/etc/php-5.5.sample/mysql.ini to
/etc/php-5.5/mysql.ini. As root:

    ln -sf /etc/php-5.5.sample/mysql.ini /etc/php-5.5/mysql.ini
You can recreate this message with the -M option of pkg_info(1).
Reply With Quote
Reply

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
Google swaps out MySQL, moves to MariaDB J65nko News 0 12th September 2013 09:21 PM
Google sniffs at MySQL fork MariaDB: Yum. Have an engineer J65nko News 1 9th August 2013 02:21 AM
Security MariaDB fixes zero day vulnerability in MySQL J65nko News 0 4th December 2012 11:04 PM
MariaDB 5.5.23 arrives with performance improvements J65nko News 0 13th April 2012 01:21 AM
Faster subqueries in MariaDB J65nko News 0 28th July 2011 09:40 PM


All times are GMT. The time now is 01:12 PM.


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