Changes

From SME Server
Jump to navigationJump to search
687 bytes added ,  21:18, 12 March 2017
Line 28: Line 28:  
  signal-event post-upgrade
 
  signal-event post-upgrade
 
  signal-event reboot
 
  signal-event reboot
 +
 +
== Usage ==
 +
 +
PHP application aware of sockets are few, most of them will try to connect to a port, you will have to find a way to define the one you want to use for your particular app. Some let you put it in a variable, some will just need you to add it after the hostname or ip (localhost:3309), some will just assume 3306 and just ignore anything else.
 +
 +
Possible host strings (localhost can be replaced with 127.0.0.1 if needed):
 +
 +
* localhost:/var/lib/mysql/mysql57.sock
 +
* localhost;unix_socket=/var/lib/mysql/mysql57.sock
 +
* localhost:3309
 +
 +
For Wordpress adjust the DB_HOST value in the wp-config.php file accordingly.
 +
 +
define( 'DB_HOST', 'localhost:/var/lib/mysql/mysql57.sock' );
    
== command line ==
 
== command line ==
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu