Profile

Cover photo
Alister Cameron
Works at Cameron Creative Pty Ltd
Attends Tabor College Victoria
Lives in Melbourne, AU
562 followers|13,364 views
AboutPostsPhotosYouTube

Stream

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...
 
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 photoCentmin Mod Nginx Auto Installer Project's profile photoDavid Castellani'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

commented on a video on YouTube.
Shared publicly  - 
 
I would love a Muslim to explain to me one day how it is that a man stumbles because he is weak and prone to temptation, by looking upon a woman lustfully, yet the woman is the one over whom sinfulness is declared?! Islam seems again to be revealing its true nature: it sees women as chattal for men, thus the onus is always on the woman to make accommocations for the man, never the other way around. He wants sex? She has to give it. He decides she'd behaving badly (with no need to give account) and she gets a smack for it. She is the sinner in that scenario and he's the "righteous man" who is bringing his wife back to righteousness(!). Remind me again how Islam is good news to a woman?!
10
20slashroses's profile photo
 
Don't listen to these sexist pigs. In the koran, it is said that men are also meant to lower their gaze, not just women. Nowadays men are just too weak minded, so they blame women.
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  - 
 
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...
Have him in circles
562 people
Chris Spradlin's profile photo
Ross Dawson's profile photo
Arnold Aranez's profile photo
Stew Shaw's profile photo
Neil Nuttall's profile photo
Bill Hodgson's profile photo

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...

Alister Cameron

Shared publicly  - 
 
Felix Zemdegs comfortably solving a Rubik's/speed cube in under seven (7) seconds!!
1
Add a comment...

Alister Cameron

Shared publicly  - 
 
Can anyone help? My G+ listed nickname is "alicam" and that's the username/alias I use on most networks like Twitter and Facebook. But G+ won't even let me request! It's offering alistercameron, which is ok, but I want "alicam" and it's not taken by anyone else - obviously!

Any suggestions? Any special Google folk I can talk to?!
2
Alister Cameron's profile photoSherrie Rose's profile photo
4 comments
 
When you clicked CHANGE it would not accept the new URL?
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
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  - 
 
While I'm here and fiddling...

The disabled PHP functions are stopping WP_CLI from installing (it requires one of the disabled functions).

I think it may also cause some issues with FFPC but not sure.

I ended up commenting out the line in php.ini but I accept that that ever so slightly weakens security.

Thoughts?
1
Centmin Mod Nginx Auto Installer Project's profile photo
 
Cheers thanks for the heads up, updated guide with new section http://centminmod.com/nginx_configure_wordpress_ffpc_plugin.html#disable 
Add a comment...
People
Have him in circles
562 people
Chris Spradlin's profile photo
Ross Dawson's profile photo
Arnold Aranez's profile photo
Stew Shaw's profile photo
Neil Nuttall's profile photo
Bill Hodgson'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