I recently migrated my WordPress site from Vultr to my own server and as part of that migration, I decided to give NginX a go as my web server. However on launch, my New Relic monitoring kept complaining about a high error rate even though the server itself was performing normally. When I decided to take a look at the logs I saw the following:

Or Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given
Continue reading WordPress warning “Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given” with PHP 7.0.9 →
Lately I’ve been finding myself installing WordPress sites for numerous reasons. WordPress is a shocking versatile web site framework built on PHP if you just want to publish content extremely quickly. There’s typically a plug-in for any function that you’re looking for. In order to run WordPress on Ubuntu, you’ll need to do the following things:
Setup PHP
- Install PHP
Setup the database server
For instructions of how to manage MySQL, check out my MySQL cheatsheet
- Install MySQL
- Install the MySQL module for PHP on the web server
sudo apt-get install libapache2-mod-php5
- Create a new user
- Create a new database
- Give the user access to the database
Set up the Web Server component
- Install Apache
- Download the latest version of WordPress anduncompress it
sudo wget http://wordpress.org/latest.tar.gz
tar -xvf latest.tar.gz
- Move your site to a new directory and give your Apache user access to that directory
sudo mkdir /
sudo cp -r wordpress //
sudo chown -R www-data:www-data //
- Create an Apache configuration file for your site
sudo nano /etc/apache2/sites-available/.conf
- Paste the following into yourconfig file and save it
<VirtualHost *>
DocumentRoot "//wordpress"
ServerName
<directory "="" <directory="" name="" wordpress"="">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
- Enable the configuration
sudo a2ensite .conf
- Enable the appropriate Apache mods
Enable rewrite for pretty permalinks
sudo a2enmod rewrite
- Reload Apache
sudo service apache2 reload
Assuming you’ve already set up your DNS settings to point to the right server, you should be able to get started with setting up the site. When you go to http://, you should be able to start setting up the site.
These instructions work on the following configurations:
- Ubuntu 14.04 and Apache 2.4
Opinions about People, Process and Technology