Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
As Always… Nice Tutorial Mitchell… :) But I was trying to understand one thing… In Step 2 What have you actually installed MariaDB v5.5 or v10.0 or is it mysql v5.6…??? Your description talks about mariadb… but “pkg install” command is pulling in mysql…
Thanks this really did help I have bin wanting to do this but I was not shore on how about geting into it. Thanks keep posting!!!
Dear Mitchell,
There is a broken link in the step one. In the “how to use pkg here”, the hyperlink points to :
https://www.digitalocean.com/community/tutorials/how-to-use-pkg-on-freebsd-10
but the correct link is:
https://www.digitalocean.com/community/tutorials/how-to-manage-packages-on-freebsd-10-1-with-pkg
Cheers,
Pimenta
Thanks for the howto
I’m running FreeBSD-RELEASE-10.1 on i386
To make php work I found I had to switch on mod_mime_magic in httpd.conf, which was commented out in the default installation ie
LoadModule mime_magic_module libexec/apache24/mod_mime_magic.so
and add these lines to the file /usr/local/etc/apache24/mime.types
application/x-httpd-php php application/x-httpd-php-source phps
Thanks for the great tutorial. Everything flowed smoothly.
For the PHP integration into Apache I would recommend to use a seperate approach with a dedicate configuration file. At the end of the HTTP configuration any file located in the directory /usr/local/etc/apache24/Includes/ is automatically sourced. This helps to keep the HTTP configuration clean and it is much easier to upgrade to a new Apache version.
E.g. a file _ /usr/local/etc/apache24/Includes/php.conf_ with your recommendations looks like:
<IfModule php5_module>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# Override the default behaviour
#
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
#
# Special treatment of PHP files
#
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>
This comment has been deleted
I followed all the instructions above(supposedly)and Apache works,MySQL works,but,when I type :http://website/info.php,it just shows the contents.It seems the php is not being processed?