WordPress

Modified: 05 Jan 2021 04:46 UTC

The Joyent WordPress image is a SmartOS base64 image preconfigured with WordPress, a blogging platform application and CMS programmed in PHP.

You can find more information about WordPress at their website.



Overview

WordPress and its dependencies come pre-isntalled via the 'wordpress' user running under the Nginx HTTP server SMF service svc:/pkgsrc/nginx:default and Percona Server database svc:/pkgsrc/percona:default.

Directory layout

The directory and file layout is as follows:

Directory/File Description
/opt/local/bin,sbin Holds server binaries
/home/wordpress/wordpress The WordPress installation directory
/var/mysql The data directory for Percona Server (MySQL)
/opt/local/etc/my.cnf The local configuration file for Persona Server (MySQL)
/opt/local/etc/nginx/nginx.conf The main configuration file for Nginx
/opt/local/etc/nginx/virtualhosts/x.x.x.x.conf The virtualhost configuration file for Nginx
/opt/local/etc/php-fpm.conf The configuration file for PHP-FPM
/opt/local/etc/php.ini The configuration file for PHP

Services layout

The SMF service layout is as follows:

SMF Service Description
svc:/pkgsrc/nginx:default Nginx HTTP service
svc:/pkgsrc/percona:default Percona Server (MySQL) service
svc:/pkgsrc/php-fpm:default PHP-FPM service
svc:/pkgsrc/quickbackup-percona:default Quickbackup Percona service

Starting WordPress

By default the nginx service is disabled for security. After provisioning you will need to login as admin or root and enable the service:

    # ssh admin@<PUBLIC-IP>
    # svcadm enable pkgsrc/nginx

Then you can connect to http:// and create your WordPress Blog.

You should receive an e-mail after filling out this information. You may need to check your spam folder.

WordPress configuration

Application

The WordPress application is installed under user 'wordpress' at /home/wordpress. If you need to make any configuration changes you can ssh in as the 'wordpress' user (with wordpress_pw metadata or the password provided for the 'wordpress' user via http://my.joyent.com and edit /home/wordpress/wordpress/wp-config.php.

PHP requests are served through PHP-FPM svc:/pkgsrc/php-fpm:default and it's configuration is at /opt/local/etc/php-fpm.conf.

Database

WordPress is configured to use Percona Server (MySQL) for it's database, which is the typical default configuration for WordPress. Percona Server (MySQL) comes automatically tuned according to your VM size.

Backing up WordPress with Quickbackup Percona

To backup the wordPress database all that's needed is a run of Quickbackup-percona. Quickbackup-percona is a backup service powered by Percona Xtrabackup.

    # quickbackup-percona backup

Backups are stored at /var/backups/percona.

To configure Quickbackup on a schedule see Joyent Quickbackup for Percona MySQL.

Email

WordPress e-mail is being delivered through postfix locally (svc:/pkgsrc/postfix:default). Any configurations needed can be made to /opt/local/etc/postfix/main.cf.

MetaDataKeys

With the Wordpress image are metadata keys that can be pre-defined during provision to provide additional customization to the instance.

Metadata Key Description
mysql_server_id MySQL server id to set
mysql_password MySQL root password to set

Version 15.x.x

15.1.2

Name wordpress
Description A SmartOS 64-bit image pre-configured and optimized as a Wordpress blogging platform (4.7) powered by PHP (5.5.25), Nginx (1.7.10), and Perco
na Server (5.6.22).
UUID a4580bc8-d41d-11e6-ba8a-bbf3c04efdac
Based on base-64 15.1.1
Pkgsrc PKG_PATH=http://pkgsrc.joyent.com/packages/SmartOS/2015Q1/x86_64/All
What's New In This Image
Software Included In This Image

Software installed as pkgsrc packages:

bzip2-1.0.6nb1
curl-7.42.0
db4-4.8.30
dtracetools-0.7
gcc47-libs-4.7.4nb1
gtar-base-1.28nb1
htop-1.0.1
nginx-1.7.10
nodejs-0.12.7
openssl-1.0.2a
percona-client-5.6.22
percona-server-5.6.22
percona56-xtrabackup-2.2.8
perl-5.20.2
php-5.5.25
php55-bcmath-5.5.26
php55-bz2-5.5.26
php55-calendar-5.5.26
php55-curl-5.5.26
php55-dom-5.5.26
php55-fpm-5.5.26
php55-gd-5.5.26
php55-gettext-5.5.26
php55-gmp-5.5.26
php55-iconv-5.5.26
php55-imap-5.5.26
php55-json-5.5.26
php55-mbstring-5.5.26
php55-mcrypt-5.5.26
php55-memcache-2.2.7
php55-memcached-2.2.0
php55-mysql-5.5.26
php55-mysqli-5.5.26
php55-pdo-5.5.26
php55-pdo_mysql-5.5.26
php55-pdo_sqlite-5.5.26
php55-pear-1.9.5nb3
php55-posix-5.5.26
php55-soap-5.5.26
php55-xmlrpc-5.5.26
php55-xsl-5.5.26
php55-zendopcache-7.0.4
php55-zip-5.5.26
php55-zlib-5.5.26
pkgin-0.8.0
postfix-2.11.4
python27-2.7.9nb1
quickbackup-percona-3.5nb20140212
smtools-20150312
sqlite3-3.8.10
sudo-1.7.10p9
wget-1.16.3
zoneinit-1.6.8

Software installed as npm packages:

json@9.0.4
manta@4.1.1
smartdc@8.1.0

15.1.1

Name wordpress
Description A SmartOS 64-bit image pre-configured and optimized as a Wordpress blogging platform (4.1.1) powered by PHP (5.5.25), Nginx (1.7.10), and Percona Server (5.6.22).
UUID 70f1b13e-0f85-11e5-a009-4f90f9a0b7bd
Based on base-64 15.1.1
Pkgsrc 2015Q1
What's New In This Image
Software Included In This Image

Software installed as pkgsrc packages:

bzip2-1.0.6nb1
curl-7.42.0
db4-4.8.30
dtracetools-0.7
gcc47-libs-4.7.4nb1
gtar-base-1.28nb1
htop-1.0.1
nginx-1.7.10
nodejs-0.12.4
openssl-1.0.2a
percona-client-5.6.22
percona-server-5.6.22
percona56-xtrabackup-2.2.8
perl-5.20.2
php-5.5.25
php55-bcmath-5.5.25
php55-bz2-5.5.25
php55-calendar-5.5.25
php55-curl-5.5.25
php55-dom-5.5.25
php55-fpm-5.5.25
php55-gd-5.5.25
php55-gettext-5.5.25
php55-gmp-5.5.25
php55-iconv-5.5.25
php55-imap-5.5.25
php55-json-5.5.25
php55-mbstring-5.5.25
php55-mcrypt-5.5.25
php55-memcache-2.2.7
php55-memcached-2.2.0
php55-mysql-5.5.25
php55-mysqli-5.5.25
php55-pdo-5.5.25
php55-pdo_mysql-5.5.25
php55-pdo_sqlite-5.5.25
php55-pear-1.9.5nb3
php55-posix-5.5.25
php55-soap-5.5.25
php55-xmlrpc-5.5.25
php55-xsl-5.5.25
php55-zendopcache-7.0.4
php55-zip-5.5.25
php55-zlib-5.5.25
pkgin-0.8.0
postfix-2.11.4
python27-2.7.9nb1
quickbackup-percona-3.5nb20140212
smtools-20150312
sqlite3-3.8.10
sudo-1.7.10p9
wget-1.16.3
zoneinit-1.6.8

Software installed as npm packages:

json@9.0.3
manta@1.5.1
smartdc@7.3.1

Version 14.x.x

14.4.0

Name wordpress
Description A SmartOS 64-bit image pre-configured and optimized as a Wordpress blogging platform (4.1.1) powered by PHP (5.5.22), Nginx (1.7.4), and Percona Server (5.6.22).
UUID 07ba3f54-d733-11e4-a489-8bc09af23a0e
Based on base-64-lts 14.4.0
Pkgsrc 2014Q4
What's new in this image
Software included in this image

Software installed as pkgsrc packages:

bzip2-1.0.6nb1
curl-7.39.0nb1
db4-4.8.30
dtracetools-0.7
gcc47-libs-4.7.3nb7
gtar-base-1.28
htop-1.0.1
nginx-1.7.4
nodejs-0.12.1
openssl-1.0.1k
percona-client-5.6.22
percona-server-5.6.22
percona56-xtrabackup-2.2.8
perl-5.20.1
php-5.5.22
php55-bcmath-5.5.22
php55-bz2-5.5.22
php55-calendar-5.5.22
php55-curl-5.5.22nb1
php55-dom-5.5.22nb1
php55-fpm-5.5.22
php55-gd-5.5.22nb1
php55-gettext-5.5.22
php55-gmp-5.5.22
php55-iconv-5.5.22
php55-imap-5.5.22nb1
php55-json-5.5.22
php55-mbstring-5.5.22
php55-mcrypt-5.5.22
php55-memcache-2.2.7
php55-memcached-2.2.0
php55-mysql-5.5.22
php55-mysqli-5.5.22
php55-pdo-5.5.22
php55-pdo_mysql-5.5.22
php55-pdo_sqlite-5.5.22nb2
php55-pear-1.9.5nb2
php55-posix-5.5.22
php55-soap-5.5.22
php55-xmlrpc-5.5.22nb1
php55-xsl-5.5.22nb1
php55-zendoptimizerplus-7.0.0
php55-zip-5.5.22
php55-zlib-5.5.22nb1
pkgin-0.7.0
postfix-2.11.3
python27-2.7.9
quickbackup-percona-3.5nb20140212
smtools-20150312
sqlite3-3.8.7.4
sudo-1.7.10p9
wget-1.16.1
zoneinit-1.6.8

Software installed as npm packages:

json@9.0.3
manta@1.5.1
smartdc@7.3.1

14.3.0

Name wordpress
Description A SmartOS 64-bit image pre-configured and optimized as a WordPress blogging platform (4.0.1) powered by PHP (5.5.18), Nginx (1.7.4), and Percona Server (5.6.21).
UUID 788dfb50-846b-11e4-802e-bb9df856acab5
Based on base64 14.3.0
pkgsrc 2014Q3
What's new in this image
Software included in this image

Software installed as pkgsrc packages:

    bzip2-1.0.6nb1
    curl-7.38.0
    db4-4.8.30
    gcc47-libs-4.7.3nb7
    gtar-base-1.28
    nginx-1.7.4
    nodejs-0.10.33
    openssl-1.0.1j
    perl-5.20.0nb2
    php-5.5.18
    php55-bcmath-5.5.18
    php55-bz2-5.5.18
    php55-calendar-5.5.18
    php55-curl-5.5.18nb1
    php55-dom-5.5.18nb1
    php55-fpm-5.5.18
    php55-gd-5.5.18nb1
    php55-gettext-5.5.18
    php55-gmp-5.5.18
    php55-iconv-5.5.18
    php55-imap-5.5.18nb1
    php55-json-5.5.18
    php55-mbstring-5.5.18
    php55-mcrypt-5.5.18
    php55-memcache-2.2.7
    php55-memcached-2.2.0
    php55-mysql-5.5.18
    php55-mysqli-5.5.18
    php55-pdo-5.5.18
    php55-pdo_mysql-5.5.18
    php55-pdo_sqlite-5.5.18nb1
    php55-pear-1.9.5nb1
    php55-posix-5.5.18
    php55-soap-5.5.18
    php55-xmlrpc-5.5.18nb1
    php55-xsl-5.5.18nb1
    php55-zendoptimizerplus-7.0.0
    php55-zip-5.5.18
    php55-zlib-5.5.18nb1
    pkgin-0.6.4nb7
    postfix-2.11.1nb1
    python27-2.7.8nb1
    quickbackup-percona-3.5nb20140212
    smtools-20141209
    sqlite3-3.8.6
    sudo-1.7.10p8
    wget-1.16
    zoneinit-1.6.8

Software installed as npm packages

    manta@1.4.6
    smartdc@7.3.0

14.2.1

Name wordpress
Description A SmartOS 64-bit image pre-configured and optimized as a WordPress blogging platform (4.0) powered by PHP (5.5.16), Nginx (1.6.0), and Percona Server (5.6.19).
UUID dfb86570-6109-11e4-9d18-7ba8c2cee608
Based on base64 14.3.0
pkgsrc 2014Q2
What's new in this image
Software included in this image

Software installed as pkgsrc packages:

    bzip2-1.0.6nb1
    curl-7.37.0nb1
    db4-4.8.30
    gcc47-libs-4.7.3nb4
    gtar-base-1.27.1nb1
    nginx-1.6.0
    nodejs-0.10.33
    openssl-1.0.1h
    perl-5.20.0nb2
    php-5.5.16
    php55-bcmath-5.5.16
    php55-bz2-5.5.16
    php55-calendar-5.5.16
    php55-curl-5.5.16nb1
    php55-dom-5.5.16nb1
    php55-fpm-5.5.16
    php55-gd-5.5.16nb1
    php55-gettext-5.5.16
    php55-gmp-5.5.16
    php55-iconv-5.5.16
    php55-imap-5.5.16nb1
    php55-json-5.5.16
    php55-mbstring-5.5.16
    php55-mcrypt-5.5.16
    php55-memcache-2.2.7
    php55-memcached-2.2.0
    php55-mysql-5.5.16
    php55-mysqli-5.5.16
    php55-pdo-5.5.16
    php55-pdo_mysql-5.5.16
    php55-pdo_sqlite-5.5.16nb1
    php55-pear-1.9.4nb4
    php55-posix-5.5.16
    php55-soap-5.5.16
    php55-xmlrpc-5.5.16
    php55-xsl-5.5.16nb1
    php55-zendoptimizerplus-7.0.0
    php55-zip-5.5.16
    php55-zlib-5.5.16nb1
    pkgin-0.6.4nb7
    postfix-2.11.1nb1
    python27-2.7.7nb2
    quickbackup-percona-3.5nb20140212
    smtools-20140905
    sqlite3-3.8.5
    sudo-1.7.10p8
    wget-1.15nb2
    zoneinit-1.6.8

Software installed as npm packages

    manta@1.4.5
    smartdc@7.3.0

14.2.0

Name wordpress
Description A SmartOS 64-bit image pre-configured and optimized as a WordPress blogging platform (4.0) powered by PHP (5.5.16), Nginx (1.6.0), and Percona Server (5.6.19).
UUID 85b03d82-587b-11e4-9ffa-9fe28a7b9c8b
Based on base64 14.2.0
pkgsrc 2014Q2
What's new in this image
Software included in this image

Software installed as pkgsrc packages:

    bzip2-1.0.6nb1
    curl-7.37.0nb1
    db4-4.8.30
    gcc47-libs-4.7.3nb4
    gtar-base-1.27.1nb1
    nginx-1.6.0
    nodejs-0.10.32
    openssl-1.0.1h
    perl-5.20.0nb2
    php-5.5.16
    php55-bcmath-5.5.16
    php55-bz2-5.5.16
    php55-calendar-5.5.16
    php55-curl-5.5.16nb1
    php55-dom-5.5.16nb1
    php55-fpm-5.5.16
    php55-gd-5.5.16nb1
    php55-gettext-5.5.16
    php55-gmp-5.5.16
    php55-iconv-5.5.16
    php55-imap-5.5.16nb1
    php55-json-5.5.16
    php55-mbstring-5.5.16
    php55-mcrypt-5.5.16
    php55-memcache-2.2.7
    php55-memcached-2.2.0
    php55-mysql-5.5.16
    php55-mysqli-5.5.16
    php55-pdo-5.5.16
    php55-pdo_mysql-5.5.16
    php55-pdo_sqlite-5.5.16nb1
    php55-pear-1.9.4nb4
    php55-posix-5.5.16
    php55-soap-5.5.16
    php55-xmlrpc-5.5.16
    php55-xsl-5.5.16nb1
    php55-zendoptimizerplus-7.0.0
    php55-zip-5.5.16
    php55-zlib-5.5.16nb1
    pkgin-0.6.4nb7
    postfix-2.11.1nb1
    python27-2.7.7nb2
    quickbackup-percona-3.5nb20140212
    smtools-20140905
    sqlite3-3.8.5
    sudo-1.7.10p8
    wget-1.15nb2
    zoneinit-1.6.8

Software installed as npm packages

    jsontool@7.0.2
    manta@1.4.5
    smartdc@7.3.0