{"id":217,"date":"2018-03-22T22:56:08","date_gmt":"2018-03-22T22:56:08","guid":{"rendered":"https:\/\/www.bigwisedata.com\/?p=217"},"modified":"2024-03-11T00:27:59","modified_gmt":"2024-03-11T00:27:59","slug":"setting-up-wordpress-4-9-4-on-openbsd-6-2-part3","status":"publish","type":"post","link":"https:\/\/www.bigwisedata.com\/?p=217","title":{"rendered":"Setting up MariaDB for WordPress 4.9.4 on OpenBSD 6.2 part3"},"content":{"rendered":"<h3>The <a href=\"http:\/\/www.sheknows.com\/baby-names\/name\/maria\">Bitter<\/a> DB &#8230;<\/h3>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times;\">Welcome back to installing WordPress 4.9.4 on OpenBSD 6.2.<span class=\"Apple-converted-space\">&nbsp; <\/span>In this installment we are going to install MariaDB for WordPress to use as a data store.<span class=\"Apple-converted-space\">&nbsp; <\/span>To be successful we will need to configure our Mariadb web access user to run as a socket in our chrooted environment, and secure the database against malicious users. To that end our goals are too:<\/p>\n<ol style=\"list-style-type: decimal;\">\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">Install the MariaDB&nbsp;<span style=\"font-kerning: none; color: #000000;\">-10.0.32v1<\/span> required by WordPress<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">Configure PHP to use the MariaDB libraries<span class=\"Apple-converted-space\">&nbsp;<\/span><\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">Configure MariaDB to run correctly in a Chroot\u2019d environment that httpd uses.<\/li>\n<\/ol>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">To test our MariaDB and httpds ability to talk to it through the php socket we will need to set up our testing environment.<span class=\"Apple-converted-space\">&nbsp; <\/span><span style=\"font-kerning: none; color: #000000;\">We will be using two terminal sessions in two separate windows today:<\/span><\/p>\n<ol style=\"list-style-type: decimal;\">\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">A &#8220;VPS&#8221; in which we will be starting httpd sessions in debug mode<span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">A \u201c<span style=\"font-kerning: none;\">Maintenance\u201d widow to be used to make any changes to your configuration files etc.<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">Open a ssh connection using you Client window to your VPS as our beloved \u201dbob&#8221; and su to root.<span class=\"Apple-converted-space\">&nbsp; <\/span>We will need root privileges to make our changes.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">Now we will need to make some test files.<span class=\"Apple-converted-space\">&nbsp; <\/span>The first test file will make sure curl is functioning through the php socket by making a connection to WordPress.org.<span class=\"Apple-converted-space\">&nbsp; <\/span>In your Maintenance window using your favorite editor create<span class=\"Apple-converted-space\">&nbsp; <\/span>file in \/var\/www\/htdocs called test_curl.php.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">Vi \/var\/www\/htdocs\/test_curl.php<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">Paste the following into the file.<\/span><\/p>\n<pre class=\"lang:sh decode:true\">&lt;?php\n$_h = curl_init();\ncurl_setopt($_h, CURLOPT_HEADER, 1);\ncurl_setopt($_h, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($_h, CURLOPT_HTTPGET, 1);\n\/\/curl_setopt($_h, CURLOPT_URL,'https:\/\/jetpack.wordpress.com' );\ncurl_setopt($_h, CURLOPT_URL,'https:\/\/planet.wordpress.org' );\ncurl_setopt($_h, CURLOPT_DNS_USE_GLOBAL_CACHE, false );\ncurl_setopt($_h, CURLOPT_DNS_CACHE_TIMEOUT, 2 );\nvar_dump(curl_exec($_h));\nvar_dump(curl_getinfo($_h));\nvar_dump(curl_error($_h));&nbsp;\n?&gt;<\/pre>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">And save the file.<span class=\"Apple-converted-space\">&nbsp; <\/span>As you can see, it instantiates a curl object, loads some basic properties, executes the connection and dumps the results of the connection, the configuration details and any errors.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">The second test file we will create test the MariaDB connection through the PHP socket. <span class=\"Apple-converted-space\">&nbsp; <\/span>In your Maintenance window using your favorite editor create<span class=\"Apple-converted-space\">&nbsp; <\/span>file in \/var\/www\/htdocs called test_mysql.php.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">Vi \/var\/www\/htdocs\/test_mysql.php<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">Paste the following into the file.<\/span><\/p>\n<pre class=\"lang:sh decode:true \">&lt;?php\n$user = \u201c\u2019your mysql user\u2019\u201d;\n$pwd = \u201cyour password\u201d;\n$host = \"127.0.0.1\";\n$db = \u201cyour database name\u201c;\n$link = mysqli_connect(\"$host\", \"$user\", \"$pwd\" , \"$db\");\nif (!$link) {\n&nbsp;&nbsp; echo \"Error: Unable to connect to MySQL using user as $user and password as $pwd .\" . PHP_EOL;\n&nbsp;&nbsp; echo \"Debugging errno: \" . mysqli_connect_errno() . PHP_EOL;\n&nbsp;&nbsp; echo \"Debugging error: \" . mysqli_connect_error() . PHP_EOL;\n&nbsp;&nbsp; $time = time();\n&nbsp;&nbsp; $hash = md5(\u201cyour email\u201d&nbsp; . time() . mt_rand() );\n&nbsp;&nbsp; echo \"hash = $hash\" . PHP_EOL;\n&nbsp;&nbsp; echo \"time = $time\" . PHP_EOL;\n&nbsp;&nbsp; exit;\n}\n\necho \"Success: A proper connection to MySQL was made using user as $user and password as $pwd! The my_db database is great.\" . PHP_EOL;\necho \"Host information: \" . mysqli_get_host_info($link) . PHP_EOL;\n$time = time();\n$hash = md5( $value . time() . mt_rand() );\necho \"hash = $hash\" . PHP_EOL;\necho \"time = $time\" . PHP_EOL;\nmysqli_close($link);\n?&gt;<\/pre>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">You will need to update the \u201cyour mysql user\u201d, \u201cyour password\u201d, \u201cyour database name\u201d, and \u201cyour email\u201d with valid values once you have that information before we can test with this file.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; text-indent: 18.0px; font: 14.0px Cochin;\">Lets install the MariaDB.<span class=\"Apple-converted-space\">&nbsp; <\/span>Now that we have the PKG system setup, we just need to query our Mirror to see if they have the MariaDB we want to install.<span class=\"Apple-converted-space\">&nbsp; <\/span>But first lets refresh our memory on what we have installed from <span style=\"font: 14.0px Helvetica; font-kerning: none; color: #333333; background-color: #ffffff;\">Setting up WordPress on OpenBSD 6.2 part2<\/span><span style=\"font: 14.0px Times; font-kerning: none; color: #333333; background-color: #ffffff;\"> by using pkg_info<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #333333; background-color: #ffffff;\"><span class=\"lang:sh decode:true crayon-inline \">pkg_info<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #333333; background-color: #ffffff;\"><span style=\"font-kerning: none;\">Returns:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">colorls-6.0 <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>ls(1) that can use color to display file attributes<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">curl-7.55.1 <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>get files from FTP, Gopher, HTTP or HTTPS servers<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">femail-1.0p1<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>simple SMTP client<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">femail-chroot-1.0p2 simple SMTP client for chrooted web servers<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">gettext-0.19.8.1p1<span class=\"Apple-converted-space\">&nbsp; <\/span>GNU gettext runtime libraries and programs<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">jpeg-1.5.1p0v0<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; <\/span>SIMD-accelerated JPEG codec replacement of libjpeg<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">libiconv-1.14p3 <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>character set conversion library<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">libxml-2.9.5<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>XML parsing library<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">mariadb-client-10.0.32v1 multithreaded SQL database (client)<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">nghttp2-1.26.0<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; <\/span>library for HTTP\/2<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">php-7.0.23<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>server-side HTML-embedded scripting language<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">php-curl-7.0.23 <span class=\"Apple-converted-space\">&nbsp; &nbsp; <\/span>curl URL library extensions for php5<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">php-gd-7.0.23 <span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; <\/span>image manipulation extensions for php5<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">php-mysqli-7.0.23 <span class=\"Apple-converted-space\">&nbsp; <\/span>mysql database access extensions for php5<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">png-1.6.31<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>library for manipulating PNG images<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">quirks-2.367<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span>exceptions to pkg_add rules<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">xz-5.2.3p0<span class=\"Apple-converted-space\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>LZMA compression and decompression tools<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none; color: #333333; background-color: #ffffff;\">But what\u2019s this?<span class=\"Apple-converted-space\">&nbsp; <\/span>The MariaDB is already installed?<span class=\"Apple-converted-space\">&nbsp; <\/span>Well, not the part we need.<span class=\"Apple-converted-space\">&nbsp; <\/span>What your seeing is the <\/span><span style=\"font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures;\">mariadb-client-10.0.32v1 multithreaded SQL database (client) <\/span><span style=\"font-kerning: none; color: #333333; background-color: #ffffff;\">which was an install requirement for \u201c<\/span><span style=\"font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures;\">php-mysqli-7.0.23 <span class=\"Apple-converted-space\">&nbsp; <\/span>mysql database access extensions for php5.<\/span><span style=\"font-variant-ligatures: no-common-ligatures;\">\u201c(See pkg_info section in the Setting up WordPress on OpenBSD 6.2 Part 2 on install requirements)<span class=\"Apple-converted-space\">&nbsp; <\/span>We need the \u201cserver\u201d component for the mariadb as well. Lets check for that on the mirror:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">pkg_info -Q mariadb<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Returns:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">mariadb-client-10.0.32v1 (installed)<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">mariadb-server-10.0.32v1<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">mariadb-tests-10.0.32v1<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Lets install the matching server component<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">pkg_add mariadb-server-10.0.32v1<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">As you saw, there are a lot of components to the mariadb install.<span class=\"Apple-converted-space\">&nbsp; <\/span>You are also encouraged to read the <\/span><span style=\"font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures;\">\/<\/span><span style=\"font-variant-ligatures: no-common-ligatures;\">usr\/local\/share\/doc\/pkg-readmes\/ for the mariadb-server-10.0.32v1 install.<span class=\"Apple-converted-space\">&nbsp; <\/span>Do so.<span class=\"Apple-converted-space\">&nbsp; <\/span>One of the first things you are asked to do in the <\/span><span style=\"font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures;\">\/usr\/local\/share\/doc\/pkg-readmes\/mariadb-server-10.0.32v1 <\/span><span style=\"font-variant-ligatures: no-common-ligatures;\">is to run the \/usr\/local\/bin\/mysql_install_db in order to create the default database.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">\/usr\/local\/bin\/mysql_install_db<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #002d7a;\"><span style=\"font-variant-ligatures: no-common-ligatures; color: #000000;\">Unfortunately, \u201c<\/span><span style=\"font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #000000;\">\/usr\/local\/share\/doc\/pkg-readmes\/mariadb-server-10.0.32v1\u201d<\/span><span style=\"font-variant-ligatures: no-common-ligatures; color: #000000;\"> makes no mention of <\/span><span style=\"font: 12.0px Monaco; font-kerning: none; color: #000000;\">\/usr\/local\/bin\/mysql_secure_installation<\/span><span style=\"font-kerning: none; color: #000000;\"> which runs you through some basic security setup needed for mariadb to run on a production server.<span class=\"Apple-converted-space\">&nbsp; <\/span>Good thing the <\/span><span style=\"font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #000000;\">\/usr\/local\/bin\/mysql_install_db<\/span><span style=\"font-kerning: none; color: #000000;\"> does.<span class=\"Apple-converted-space\">&nbsp; <\/span>But before we can do that process we need to enable the mysql daemon.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">rcctl enable mysqld<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Now start the mysqld daemon<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">rcctl start mysqld<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Now execute the mysql_secure_installation<span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">\/usr\/local\/bin\/mysql_secure_installation<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">You are now presented with a series of questions:<\/span><\/p>\n<ol style=\"list-style-type: decimal;\">\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">\u201cEnter the current password for root (enter for none):\u201d Press Enter.<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">\u201cSet root password?\u201d [Y\/n]\u201d Use your password vault to generate and store a password for the mysql root login, then enter it here and hit enter.<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">\u201cRemove anonymous users? [Y\/n]\u201d<span class=\"Apple-converted-space\">&nbsp; <\/span>Enter \u201cY\u201d, we do not want anonymous users on our system.<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">\u201cDisallow root login remotely? [Y,n]\u201d Enter \u201cY\u201d, never let root have direct access to anything. Always login in with a low level user and then elevate your privileges.<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">\u201cRemove test database and access to it? [Y\/n]\u201d Enter \u201cY\u201d, test databases are for a test environment.<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\">\u201cReload privilege tables now? [Y,n]\u201d Enter \u201cY\u201d, this activates all of our changes immediately.<\/li>\n<\/ol>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">You should now be at the command prompt.<span class=\"Apple-converted-space\">&nbsp; <\/span>Lets test your \u201croot\u201d login by using the mysql client<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #1a1a1a;\"><span style=\"font-kerning: none;\">mysql -u root -p &lt;your root password&gt;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">You should have a mysql prompt if everything went as planned.<span class=\"Apple-converted-space\">&nbsp; <\/span>Now lets exit back out to the terminal by typing quit.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #1a1a1a;\"><span style=\"font-kerning: none;\">quit<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Now let tell php all about mysql by editing the \/etc\/php-7.0.ini\u2026<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline\">vi \/etc\/php-7.0.ini<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">\u2026and scroll down to the extension section, it looks a lot like this:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;;;;;;;;;;;;;;;;;;;;;;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; Dynamic Extensions ;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;;;;;;;;;;;;;;;;;;;;;;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; If you wish to have an extension loaded automatically, use the following<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; syntax:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; <span class=\"Apple-converted-space\">&nbsp; <\/span>extension=modulename.extension<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; For example, on Windows:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; <span class=\"Apple-converted-space\">&nbsp; <\/span>extension=msql.dll<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; &#8230; or under UNIX:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; <span class=\"Apple-converted-space\">&nbsp; <\/span>extension=msql.so<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; &#8230; or with a path:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; <span class=\"Apple-converted-space\">&nbsp; <\/span>extension=\/path\/to\/extension\/msql.so<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; If you only provide the name of the extension, PHP will look for it in its<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; default extension directory.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; Windows Extensions<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; Note that ODBC support is built in, so no dll is needed for it.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; Note that many DLL files are located in the extensions\/ (PHP 4) ext\/ (PHP 5+)<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; extension folders as well as the separate PECL DLL download (PHP 5+).<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">; Be sure to appropriately set the extension_dir directive.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;extension=php_bz2.dll<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;extension=php_curl.dll<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;extension=php_fileinfo.dll<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;extension=php_ftp.dll<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">;extension=php_gd2.dll<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">\u2026<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Verify the path to the mysqli.so using find.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline\">find \/ -name mysqli.so<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #000000; background-color: #ffffff;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Add the path returned by Find at the end of the extension section as in this example:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures; background-color: #ffffff;\">extension=<\/span><span style=\"font-variant-ligatures: no-common-ligatures;\">\/usr\/local\/lib\/php-7.0\/modules\/mysqli.so<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Save the file.<span class=\"Apple-converted-space\">&nbsp; <\/span>Now lets do a little testing.<span class=\"Apple-converted-space\">&nbsp; <\/span><\/span><span style=\"font-kerning: none;\">In your VPS window make sure your running as root.<span class=\"Apple-converted-space\">&nbsp; <\/span>Now lets start or httpd in debug (-d) mode with verbosity turned to medium (-vv) using our httpd_config.test (-f \/etc\/httd_config.test)<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">httpd -d -vv -f \/etc\/httpd_config.test<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-kerning: none;\">Open up your web browser and point it to http:\/\/&lt;IP address of your server&gt;. <span class=\"Apple-converted-space\">&nbsp; <\/span>You should see the out put of the phpinfo() function.<span class=\"Apple-converted-space\">&nbsp; <\/span>Notice that there is now a section called mysqli curtesy of mysqli.so.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 18.0px; text-indent: -18.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Type ctrl+c to shutdown the httpd daemon.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Lets add a database and a user to mysql for WordPress to use.<span class=\"Apple-converted-space\">&nbsp; <\/span>At you terminal command prompt login as root to mysql<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Monaco; color: #1a1a1a;\"><span class=\"lang:sh decode:true crayon-inline \">mysql -u root -p &lt;your root password&gt;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Lets create a database called wp_website1.<span class=\"Apple-converted-space\">&nbsp; <\/span>Type the following:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Monaco; color: #1a1a1a;\"><span class=\"lang:sh decode:true crayon-inline \">Create database wp_website1;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Now lets create a user that can access wp_website1 for WordPress to use.<span class=\"Apple-converted-space\">&nbsp; <\/span>First generate a pass word in your password vault and save it then use it in the following query.<span class=\"Apple-converted-space\">&nbsp; <\/span>Type the following:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Monaco; color: #1a1a1a;\"><span class=\"lang:sh decode:true crayon-inline \">Create user \u2018wp_user\u2019@\u2018127.0.0.1\u2019 identified by \u2018your_password_from_vault\u2019;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Do not use \u2018localhost\u2019, use \u2018127.0.0.1\u2019 to force mysql to use the database socket for this user.<span class=\"Apple-converted-space\">&nbsp; <\/span>The \/var\/run\/mysql\/mysql.sock is the only way for our chroot\u2019d environment to talk to mysql.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Lets grant wp_user rights to do things on wp_website1<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Monaco; color: #1a1a1a;\"><span class=\"lang:sh decode:true crayon-inline \">Grant all on wp_website1.* to \u2018wp_user\u2019@\u2018127.0.0.1\u2019;<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Now exit mysql by typing quit.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Lets edit the \/var\/www\/htdocs\/test_mysql.php file and enter in your wp_user, password, database name and email information; being mindful that the user has both double and single quotes around the name and that some meta-characters like \u201c$\u201d need to be escaped with a leading \u201c\\\u201d if they are used in the password.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Great, lets test our database connection.<span class=\"Apple-converted-space\">&nbsp; <\/span>In your VPS window start up you httpd daemon. <span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">httpd -d -vv -f \/etc\/httpd_config.test<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">In Your Maintenance window restart php and mysql<\/span><\/p>\n<pre class=\"lang:sh decode:true\">rcctl restart mysqld\nrcctl restart php70_fpm<\/pre>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-family: Times; font-size: 14px;\">Now in you web browser enter the following URL <\/span><a style=\"font-family: Times; font-size: 14px;\" href=\"http:\/\/xn--your-996a\"><span style=\"font: 14.0px Times; font-variant-ligatures: no-common-ligatures;\">http:\/\/\u201cyour<\/span><\/a><span style=\"font-family: Times; font-size: 14px;\"> IP address\u201d\/test_mysql.php.<\/span>&nbsp; <span style=\"font-family: Times; font-size: 14px;\">You should see something like the following:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 16.0px Times;\"><span style=\"font-kerning: none;\">Success: A proper connection to MySQL was made using user as &#8216;wp_user&#8217; and password as &lt;your password&gt; The my_db database is great. Host information: 127.0.0.1 via TCP\/IP hash = f133bb3bf8278ec4eb48ae1fdff56382 time = 1521508293<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 16.0px Times;\"><span style=\"font-kerning: none;\">While we are at it lets finish up the curl component.<span class=\"Apple-converted-space\">&nbsp; <\/span>Curl is installed, but since it operates in a chroot it needs a few pieces moved into \/var\/www in order to be able to grab external url\u2019s. Those pieces are the following:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">\/etc\/resolv.conf<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">\/etc\/services<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">\/etc\/ssl<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Remember we are in a chroot environment and the root for that environment is \/var\/www.<span class=\"Apple-converted-space\">&nbsp; <\/span>We need to keep the same directory relationship here so we need to add \/var\/www to each destination. We will do that using mkdir and cp:<\/span><\/p>\n<pre class=\"lang:sh decode:true\">mkdir -p \/var\/www\/etc\nmkdir -p \/var\/www\/etc\/ssl\/lib\nmkdir -p \/var\/www\/etc\/ssl\/private\ncp \/etc\/resolv.conf \/var\/www\/etc\/resolv.conf\ncp \/etc\/services \/var\/www\/etc\/services\ncp -R \/etc\/ssl \/var\/www\/etc\/<\/pre>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">Now we can test curl.<span class=\"Apple-converted-space\">&nbsp; <\/span>In your VPS window start up you httpd daemon. <span class=\"Apple-converted-space\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">httpd -d -vv -f \/etc\/httpd_config.test<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">In Your Maintenance window restart php.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px Menlo; color: #000000;\"><span class=\"lang:sh decode:true crayon-inline \">rcctl restart php70_fpm<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #000000;\"><span style=\"font-variant-ligatures: no-common-ligatures;\">Now in you web browser enter the following URL <a href=\"http:\/\/xn--your-996a\"><span style=\"font: 14.0px Times; font-variant-ligatures: no-common-ligatures;\">http:\/\/\u201cyour<\/span><\/a> IP address\u201d\/test_curl.php.<span class=\"Apple-converted-space\">&nbsp; <\/span>You should see something like the following:<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 10.0px Helvetica; color: #444444;\"><span style=\"font-kerning: none;\">string(130999) &#8220;HTTP\/1.1 200 OK Server: nginx Date: Tue, 20 Mar 2018 18:32:01 GMT Content-Type: text\/html Content-Length: 130714 Connection: keep-alive Vary: Accept-Encoding Last-Modified: Tue, 20 Mar 2018 18:30:27 GMT X-Frame-Options: SAMEORIGIN X-nc: EXPIRED ord 1 Accept-Ranges: bytes<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Times; color: #1a1a1a;\"><span style=\"font-kerning: none;\">And the web page for <a href=\"http:\/\/WordPress.org\"><span style=\"font-kerning: none; color: #1a1a1a;\">WordPress.org<\/span><\/a> should display blow that.<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px Cochin;\">Ok lets shut down our services to secure our server until next time:<\/p>\n<pre class=\"lang:sh decode:true\">ctrl+c in your VPS window to stop our debug httpd.\nrcctl stop php70_fpm\nrcctl stop mysql<\/pre>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\"><span style=\"font-family: Times;\"><span style=\"font-size: 14px;\">Not bad! <\/span><\/span><span class=\"Apple-converted-space\" style=\"font-family: Times; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal;\">&nbsp;Lets summarize our&nbsp;<\/span><span style=\"font-family: Times;\"><span style=\"font-size: 14px;\">achievements today&#8230;<\/span><\/span><\/p>\n<ol style=\"list-style-type: decimal;\">\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">We created test scripts to verify php-curl and MariaDB functionality through php and httpd<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">We installed MariaDB, and setup a user for WordPress to use with the appropriate permissions and socket access through php<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">Finished setting up the curl component for php<\/li>\n<li style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">And verified base MariaDB connectivity and curl functionality with our scripts.<\/li>\n<\/ol>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Times;\">Another good days work.<span class=\"Apple-converted-space\">&nbsp; <\/span>Stay tuned, much more to come.<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Cochin; min-height: 17.0px;\">\n","protected":false},"excerpt":{"rendered":"<p>The Bitter DB &#8230; Welcome back to installing WordPress 4.9.4 on OpenBSD 6.2.&nbsp; In this installment we are going to install MariaDB for WordPress to use as a data store.&nbsp; To be successful we will need to configure our Mariadb web access user to run as a socket in our chrooted environment, and secure the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bigwisedata.com\/?p=217\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting up MariaDB for WordPress 4.9.4 on OpenBSD 6.2 part3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2,3],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-openbsd","category-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9IcIr-3v","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217"}],"version-history":[{"count":10,"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigwisedata.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}