WordPress

Requirements

Sudo
MySQL
Nginx
PHP
PHP-FPM

Installation

sudo pkg install wordpress

Configuration

In Nginx, add the following configuration:

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    server {
        listen       80;
        server_name  insert_your_server_name;
        root /usr/local/www/wordpress;
        index index.php index.html index.htm;
        location / {
            try_files $uri $uri/ /index.php?q=$uri&$args;
        }
        error_page  500 502 503 504  /50x.html;
        location = /50x.html {
            root /usr/local/www/nginx-dist;
        }
        location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $request_filename;
            include fastcgi_params;
        }
    }
}

Usage

Then point your browser to username.it.pointpark.edu and you should be presented with the WordPress login page.

Leave A Reply

Your email address will not be published. Required fields are marked *