Skip to content

u/Xeoncross

In this archive from Jan 2012 to Nov 2014

25
posts
168
comments
0
media
729
score

Top posts

Top comments

  1. You should look into switching to PHP-FPM and running it behind nginx. Apache + mod_php uses significantly more memory and takes longer to load the PHP core for each requst. Contrary to web rumor, you do not need apache installed behind nginx. Nginx can run PHP on it's own perfectly fine.

However, PHP loading probably won't be your bottleneck - so since Apache is working, I don't recommend switching until you've had time to play around with nginx and know how it works. I would download nginx on your machine and start with something simple like getting wordpress up and running. I've seen about 5-20% increase in requests per-second since switching to nginx (depending on the project) plus a decrease in memory usage. If you use windows, I built a no-install nginx/mysql/php server package you can run on a USB stick.

  1. Do you have a caching layer? It sounds like you are dealing with simple data in some of the requests, you could add memcached in some places to store data in ram and save MySQL or the filesystem for more important tasks.

  2. Switch to Debian. Ubuntu includes a lot of extra junk that isn't needed on most servers. My standard Debian install only uses about 12MB RAM before I install PHP + Nginx and the database. I have one VPS handling a couple sites and the whole thing runs on a 128MB VPS using only 80MB of ram with PostgreSQL, Nginx, and 15 PHP-FPM instances running. I built a server setup script that removes a lot of extra stuff and sets up nginx, iptables, php and other stuff.

26 points

We see this with CMS, after blog, after CMS being released each day. We even had John try the Wordpress Ghost project only realize just how hard it would be to fix. Personally, after skimming thousands of projects over the past year my money is on A) automattic branching out with a new system (they have the cash to do it), or B) ForkCMS gaining ground since it's the best multilingual system I've seen yet (actually the only decent one).

17 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.