Reputation
696
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 26
Impact
~47k people reached

Apr
2
comment PHP-FPM Primary script unknown, but SCRIPT_FILENAME is set correctly
@MichaelHampton I already have the PHP version and general platform in my post which is seemingly all that's relevant to answer my question, but I'll add the other details to satisfy your request. To clarify, my question isn't on how to fix the problem, it's how to debug it. I don't expect that anyone would be able to immediately solve this without touching the box. The question is purely about PHP-FPM and what it needs to run properly. I'm not looking for someone to debug my permissions issues, just to explain how PHP-FPM works internally in this case.
Apr
2
comment PHP-FPM Primary script unknown, but SCRIPT_FILENAME is set correctly
@MichaelHampton The server config is spread out over 40 files, some of which are quite involved. There's a lot going on with this box. Fortunately, we can see the effective config from tcpdump between Nginx and PHP-FPM, so the actual Nginx config itself isn't relevant. My question is on what else causes this error outside of a file missing. Through more debugging since this post, I've also found that running PHP-FPM as root solves the problem, so I think the issue is definitely permissions related... I just need to figure out what else PHP-FPM needs, since the scripts themselves are 777.
Jan
12
comment websockets , loadbalancers and 64k ports
This post makes a ton of assumptions about how the application is built, and is basically inaccurate.
Dec
18
comment Dell M6600: “No internet access”, can browse internet, can remote into it, cannot activate office 2013, cannot join domain
Well, that doesn't make much sense. I suspect that in the course of reinstalling your drivers, something else was fixed. In any case, glad to hear you got it working.
Oct
29
comment Isolated development environment on Ubuntu
If this is just for development purposes, consider using Vagrant, which is a convenient way to control VM hosts such as VirtualBox or VMWare. It takes care of port forwarding, file synchronization, and some other stuff that is helpful during development.
Oct
14
comment Floppy power to PCI-E card in DL380 G5
@EvanAnderson If you're putting a PCI-E sound card in anything, especially a server, it's probably in a place where quality is important. Encoding servers for internet radio stations, for example.
Sep
28
comment Centos failing to upgrade bash
That solved the problem for me, thank you!
Sep
27
comment Nginx not sending auth headers when redirecting to a different domain
That's mostly true, but you can put the base64-decoded (and subsequently URL-encoded) value of the Authorization header in the URL for the Location response header used for redirection. http://user:pass@example.com I just can't find a good way to do this conditionally in an Nginx config file.
Jul
24
comment Nginx cache shared between multiple servers
@mVChr Interesting. Have you tried running rsync or similar continuously? In the end for my use, I eventually got Redis working but this doesn't allow for a very large cache since the entire Redis collection must be in memory. 16GB fills up fast on my application.
Jul
22
comment RAID-5: Two disks failed simultaneously?
Everyone's comments on here regarding drive failure are correct. Let me add another reason to consider the precariousness of the situation... power supplies fail all the time, and sometimes when they fail you end up frying things. I actually had a hard drive once that had a strange failure, dead shorting the +5v side of the power supply which caused (somehow) 2 other drives to go up in smoke.
Jul
9
comment Update Cache-Control max-age when srcache returns response from cache
Wow... good catch on that Pragma header... I removed that long ago, but it looks like there is some other code I have that is adding it. I didn't even notice. Thanks for that! Regarding max-age, the issue is that I'm caching both server-side and client-side. I have a server-side cache which caches all of the response headers as well, as that's what srcache does. However when I return that result, the Expires header is naturally still correct since it specifies a specific time in the future. The max-age is not, since it specifies a number of seconds. Is there no way to update it?
Jun
10
comment Storing username in nginx logs
@nishant I haven't written anything with Django so I can't give you specific advice, but it looks like it supports middleware. I would write a middleware module that takes care of adding the extra header.
Jun
10
comment Storing username in nginx logs
@nishant That depends entirely on your code. You will have to write something or modify what you have to output the username in the response header.
May
22
comment How to make modification take affect without restart nginx?
USR2 is for upgrading the executable, not for simple config reloading.
May
7
comment Is the connection from PHP to a different MySQL server 100% secure?
This is correct. The wire protocol for MySQL is anything but secure... that isn't the intent of the protocol. You can see this by firing up Wireshark and running some queries. A tunnel is needed here. What I do on my own boxes is simply hook them up via a VPN. While this isn't the most efficient setup, it works well for links that don't require a ton of bandwidth or low latency, while enabling me to connect a bunch of cheap VPSes on various providers.
Apr
24
comment Vagrant synced folders aren't case sensitive
@JasonSuave The problem is actually with VirtualBox and what it uses for the mounts, not Vagrant. Vagrant is only controlling the VirtualBox mounts. You might have different experiences on VMWare... I haven't tried.
Mar
27
comment Nginx cache shared between multiple servers
@hangover I see no reason to re-invent the wheel. Nginx cache works well and fast. If we can avoid the overhead of running requests through the application at all, we can keep things nice and fast. Nginx responds to cached requests for us in under 5 milliseconds. Launching our PHP application, even for it to provide a cached response, will probably 10x slower than that. Nginx caching is working well for us now, we just need to distribute that cache among many servers.
Mar
6
comment Is there any reason to keep the “Server” response header in Apache
Removing file name extensions in URLs has nothing to do with security... it's more readable for humans. There are a thousand other ways your application platform is revealed.
Sep
16
comment How bad is setting MySQL's bind-address to 0.0.0.0?
For everyone thinking that the SSH tunnel idea is crazy, consider that the bulk of MySQL traffic is in the clear. If for some reason you have to connect across an untrusted network (i.e. the Internet), consider SSH or doing it over a VPN. Fire up Wireshark or some other packet sniffer if you want to see what I am talking about.
Sep
8
comment Fastest, surest way to erase a hard drive?
@dsljanus, My local electronics recycling place has one of those. They disassemble computers dropped off, locking hard drives in secure crates which are then promptly taken to this beast of a shredder.