Comments on Deploy WordPress on top of FAMP in FreeBSD 11.1

This guide will show how to install and configure the most popular open source CMS used on the internet, Wordpress, on top of FAMP in FreeBSD 11.x latest release. FAMP is an acronym which describes the following software bundle: FreeBSD 11.1 Unix-like operating system, Apache HTTP server, one of the most popular open-source web server on the internet, MariaDB RDBMS (relational database management system), which is a fork of MySQL database engine, and PHP programming server-side language.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: rafael

thanks a lot man

By: Thijs

Thanks allot, i made myself also a famp server on freenas 11 jail. but you are allot more clear, and the update solution is the best thing. Just had an issue with 

echo "define('FS_METHOD', 'direct');" | tee –a /usr/local/www/apache24/data/wp-config.php

I just manually added define('FS_METHOD', 'direct'); to /usr/local/www/apache24/data/wp-config.php

Thanks allot

By: Rose Peach

Thank you so much. Very helpful!

By: Rozaboilype

Great post!

By: mistermanko

Hey,

very good write-up on how to set-up wordpress for FreeBSD, I used it for installing it in a FreeNAS jail. Thank you!

I want to add some corrections or advices, as for some of the commands are not syntaxed correctly (maybe because of dev-changes or you just mis-typed it).

General advise should be, don't just copy paste all commands. Make sure the syntax is correct before pasting. It will save you some trouble.

#1

For me 

sysrc mysql_enable=”YES”

didn't work. I had to type

 

sysrc mysql_enable=YES

note the missing quotation marks.

#2

 

sysrc mysql_args="--bind-address=127.0.0.1".

Dont type the period (.) at the end of the line, because it will also be added to the rc.conf resulting in having no working connection to the DB. A sockket -4 will show no result at all.

#3

I switched php71 to php74, as it is recommended by wordpress.Note that not all pkgs are updated.At the time being, this worked for me:

pkg install php74 php74-mysqli mod_php74 php74-mbstring php74-zlib php74-curl php74-gd php74-json php74-pecl-mcrypt

#4

When editing the php.ini to add the date.timezone, don't forget to un-comment it by removing the ; at the start of the line.

#5

wget is not installed by default in FreeBSD jails.Just use: pkg install wget

You also may switch to the root directory before downloading and unpacking wordpress.

#6

This is important.

echo "define('FS_METHOD', 'direct');" | tee –a /usr/local/www/apache24/data/wp-config.php

Don't use this command! It will overwrite your whole php.ini to just this line. Wordpress is nuked after that.

Better use nano and add the line by hand at the end of the file, but before this line:

 

/* That's all, stop editing! Happy publishing. */

 

#That's it. This guide is really good and fool-proof if you just check what you are doing before you are doing it.

cheers!