Profile

Cover photo
Alister Cameron
Works at Cameron Creative Pty Ltd
Attends Tabor College Victoria
Lives in Melbourne, AU
619 followers|20,152 views
AboutPostsPhotosYouTube

Stream

Alister Cameron

commented on a video on YouTube.
Shared publicly  - 
 
i hope you liked my video
2
Add a comment...

Alister Cameron

Memcached server  - 
 
I got another weird one... 

Memcached can't tell the difference between the standard and the "mobile" version of my client's WordPress blog, which is using the Jetpack plugin's mobile version thingy.

I've not Googled it yet, but there must be a way to work that puppy out. What it means is that if a person uses a mobile, and that's the page that Memcached caches, that's the version everyone else sees until it expires!

Right now my client's homepage is looking decidedly CRAP on a desktop!!!

A
1
Centmin Mod Nginx Auto Installer Project's profile photo
 
Depends on how memcached is used and with what scripts as how Wordpress tells memcached to cache is how it will, memcached knows nothing other to than run it's server. So it depends on Wordpress/wordpress plugin's configuration of how it uses memcached. So you need to look at your wordpress plugin's configuration

Are you using WPFFPC plugin for memcached ? Could be related to wpffpc.conf setting for $memcached_key which might need changing

location @memcached{
default_type text/html;
set $memcached_key data-$scheme://$host$request_uri;
set $memcached_request 1;
Add a comment...
 
Got me a problem. I'm running a pretty beefy DigitalOcean droplet - 4Gb RAM but my server is still hitting 100% (!) CPU load - constantly and consistently.

Now 98% of the CPU load is PHP-FPM and the nginx user.

I'm running Centminmod with Memcached/PHP-FPM/ngx_pagespeed/etc.

I'm looking for URGENT help to resolve this. It is orders of magnitude out of all proportion to the traffic it's getting.

Now, I've looked at WordPress plugins - coz there's only one site pulling any kind of traffic, and I don't believe the few plugins running explain it.

It's full on and I desperately need to diagnose and fix.

Any suggestions? Any debugging step-by-step??

Thanks!

A
1
Alister Cameron's profile photoDavid Castellani's profile photoCentmin Mod Nginx Auto Installer Project's profile photo
11 comments
 
If you disable APC, then yes no object caching and no php opcode caching. As to amount of memory really depends on what you install/plugins and how you have wordpress setup. For instance for me default vBulletin 4 install would need minimum of 96MB for APC per vB4 install instance. But APC does help alot of php performance so if you app needs more APC memory, better to upgrade memory :)
Add a comment...

Alister Cameron

Discussion  - 
 
Hi folks.

A general question for discussion that would help me a lot...

I'm guessing they don't exist, but I have been looking for some bash scripts (or similar) that would enable me to automate WordPress provisioning on Centmin. At the moment it's not hard, but it's time-intensive, and repetitious.

I know very little about shell scripts and, while I'm sure I could work it out, it would be awesome to be able to fill out a form, hit "go" and it would leverate wp-cli and the shell to auto-deploy my specific preferred WordPress setup (including default plugins and options).

I think going as far as a hosting control panel is too much for my needs, and unnecessary code to be running on the box. I just want the minimum to be able to rapidly deploy client sites. No email needed. Maybe SFTP accounts per client would be nice.

Is this something that is hard, or would a talented script monkey be able to do this easily??

Other thoughts?

Many thanks

Alister
alistercameron.com
1
Alister Cameron's profile photoCentmin Mod Nginx Auto Installer Project's profile photo
2 comments
 
No idea if kloxo works with centmin mod. I suspect it doesn't so wouldn't recommend it. As to wordpress can be tricky if you want to account for all possible scenarios of deployment of wordpress especially if it's to an existing site which has been setup and has other already configured and in use scripts which have their own nginx rewrite rules already in place in the domain's Nginx conf file.

Can be done, but time consuming to code and write up if you're testing for every possible deployment scenario. I know I don't have much free time as busy with client work (server/hardware optimisation consulting work) :)
Add a comment...

Alister Cameron

Discussion  - 
 
I've followed the WordPress+FFPC+memcached instructions but my WordPress permalinks include index.php in the URL:

domain.com/index.php/2013/08/22/hello-world/

Because I'm using memcached I've changed a line in the VHOST conf file to this, as instructed:

try_files $uri $uri/@memcached;

But where, then, do I tell Nginx that WordPress still needs that rewrite?

Is the answer to copy across some of what's here with the @rewrites variable:

https://github.com/petermolnar/wp-ffpc/blob/master/wp-ffpc-nginx-sample.conf

??
1
Razib Hasan's profile photoCentmin Mod Nginx Auto Installer Project's profile photoAlister Cameron's profile photo
5 comments
 
Thanks everyone. Removed it from WordPress settings and it worked. That was weird, but so simple in the end!
Add a comment...

Alister Cameron

Shared publicly  - 
 
The gentlemen from Maroondah Towing greet the Google Street View car as it drives by...
1
Peter Stokes's profile photoAlister Cameron's profile photo
2 comments
 
Hey mate. To be honest, while it was a bit rude, I found it equally funny. I don't think I'm encouraging it; at least the people who follow me here are smart enough folk not to think I'm doing that, or to go and do something similar because I've linked to this.
Add a comment...
Have him in circles
619 people
Bille Baty's profile photo
Erric Beasley's profile photo
Ben Angel's profile photo
Kristoffer Ganzon's profile photo
Ross Dawson's profile photo
Iranna Kalyani's profile photo
Christina Jones's profile photo
Dario Cipek's profile photo
Ray & Julie Siebring's profile photo

Alister Cameron

commented on a video on YouTube.
Shared publicly  - 
 
It was actually a 1000x1000x1000 Rubik's cube solve not 100x100x100.
1
Add a comment...
 
Wondering... what are the chances of having CentminMod integrated into Vagrant? I've been reading about VVV (see link) and it seems a really smart way to manage deployment/s.

Thoughts?

https://github.com/10up/varying-vagrant-vagrants
varying-vagrant-vagrants - Varying Vagrant Vagrants is an evolving Vagrant configuration focused on WordPress development.
1
Centmin Mod Nginx Auto Installer Project's profile photo
 
Currently sick with the flu, so haven't been around much :o As to VVV, honestly for software that I haven't had any personal experience with, the chances are much slimmer - afterall anything I add to Centmin Mod has to be properly tested by me before release. This would involve me fully understanding the software incorporated.

Chances are higher if you or folks wanting such software added, actually do outline how the software is used, how you intend to you use it and how you normally go about installing it and using (manually). 

Remember, I only work on Centmin Mod in my free time (usually ends up being once a week on Sunday these days).
Add a comment...

Alister Cameron

Discussion  - 
 
Weird. WordPress is asking for FTP details to install a plugin. Any idea why the standard plugin install process would be blocked??

I've unblocked all the disabled functions in PHP.INI, as I said yesterday, so not clear what would be stopping a cURL or file_get_contents from executing...??

A
1
Centmin Mod Nginx Auto Installer Project's profile photo
 
You probbably missed the steps to chown files and directory for user/group nginx ?

i.e. 

chown nginx:nginx /home/nginx/domains/yourdomain.com/public/wp
chown -R nginx:nginx /home/nginx/domains/yourdomain.com/public/wp

step 7 at http://centminmod.com/nginx_configure_wordpress_ffpc_plugin.html
Add a comment...

Alister Cameron

Nginx + Wordpress  - 
 
The installation of Wordpress is a little tricky (I think) with the caching and pagespeed in the latest beta. Is it possible to have an example vhost conf file done for the more typical scenario where WP is installed into a domain's root??

I currently am stuck where I can't get permalinks to work in WordPress for a domain that's installed into the root...

Thanks!!
1
Alister Cameron's profile photoBeny Hirmansyah's profile photoCentmin Mod Nginx Auto Installer Project's profile photo
22 comments
 
+Alister Cameron reason why i have 2 includes within location / root is if you have other web apps instead i.e domain.com/vbulletin off web root, there may be conflicts if those 2 includes are outside location /, but if only web app is wordpress on vhost then having 2 includes above location / root should be fine.
Add a comment...

Alister Cameron

CentminMod Installation  - 
 
George and others,

I've installed the latest beta on a t1.micro instance on AWS EC2. Was a very slow compile, but it got there!

All's been going well with setup but I can't get php to speak to MariaDB. phpMyAdmin can't connect (although there's no elegant message telling me so), and nor can WordPress, where the setup screen informs me it can't connect to MySQL.

My Linux (let alone CentOs) sysadmin skills are very lacking, and so I'm at a bit of a loss to know how to systematically troubleshoot this one. I don't think it has anything to do with the way an Amazon instance works, but I may be wrong.

Whatever the case, I'd love some pointers on what I need to do to diagnose.

Incidentally I've got phpMyAdmin running off the default website Nginx uses, and I've got the WordPress install in the root of a vhost I setup in the standard location for those. I've followed all the instructions.

Now, finally, I'm aware MariaDB had a connection issue to do with IPv4 and IPv6 addressing, but I'm running 5.5.31 which I'm led to believe has that problem fixed??

Thanks for any help!
1
Alister Cameron's profile photoCentmin Mod Nginx Auto Installer Project's profile photo
8 comments
 
+Alister Cameron Just an update to your mysql/mysqli mysql.sock issue, I have found the problem when running into MySQL Error: 2002 no such directory found error for connecting to mysql via mysqlnd driver. It seems mysqlnd native driver ignores php configure line --with-mysql-sock if specific path is not set i.e. --with-mysql-sock=/var/lib/mysql/mysql.sock. So either i hard code this into php configuration or add it to php ini directory as a file at /root/centminmod/php.d/mysqlsocket.ini so the mysqlnd mysql and mysqli mysql.sock are picked up on the fly. This will be properly fixed in next beta release due out sometime today :)
Add a comment...

Alister Cameron

Shared publicly  - 
 
Fun little project :)
All the things that make Australia great.
1
Australia Great's profile photo
 
Thanks! It's a fun topic....especially today. :-)
Add a comment...
People
Have him in circles
619 people
Bille Baty's profile photo
Erric Beasley's profile photo
Ben Angel's profile photo
Kristoffer Ganzon's profile photo
Ross Dawson's profile photo
Iranna Kalyani's profile photo
Christina Jones's profile photo
Dario Cipek's profile photo
Ray & Julie Siebring's profile photo
Work
Occupation
Blogologist
Employment
  • Cameron Creative Pty Ltd
    CEO, 1999 - present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Melbourne, AU
Previously
Sydney, AU - Los Angeles, US - Paris, FR - Wiesbaden, DE - Frankfurt, DE
Contact Information
Work
Mobile
+61 4 0404 5555
Story
Tagline
Head of Digital, World Vision Australia
Introduction
I am a single father of four.

I obsess over WordPress and Twitter. Mostly.

I help businesses use social media effectively.

I love the Lord and his Word.

I would love to be a better cook.

I'd love to travel more, and learn more languages.

I love going on TV quiz shows.
Bragging rights
Single dad with four kids. Nuff said :)
Education
  • Tabor College Victoria
    B.Th., 1990 - present
Basic Information
Gender
Male
Looking for
Networking
Other names
alicam