Thread: Apache to Httpd
View Single Post
  #3   (View Single Post)  
Old 7th September 2015
Funkygoby Funkygoby is offline
Fdisk Soldier
 
Join Date: Aug 2015
Posts: 57
Default

True. I set up an Openbsd with httpd+mariadb+php5.
Httpd was fast to configure.

The only surprise i got was that i couldn't connect to mysql through php.
The problem was that the mysql socket was outside the httpd chroot and php-mysqli was looking for that socket (because i used 'localhost' as host).
I changed 'localhost' to 127.0.0.1 in order to use the network instead of the socket.

I spent some times figuring this out. Although this problem was answered on #misc and some other forum, i though i would add it here too.
Reply With Quote