4,156 reputation
1620
bio website BlackMesh.com
location
age
visits member for 3 years, 10 months
seen yesterday

Director of Emerging Technology at BlackMesh Managed Hosting, longtime Linux aficionado, sometime Drupal developer (and d.o sysadmin), and occasional filesystem tinkerer.


Mar
14
comment Why is this tee losing stdout?
Changed; please try again. Yes, I know that doesn't do exactly what you want, but I just want to try it. Please be sure you're running it the same way (i.e., as a script, not directly on the command line).
Feb
26
comment Organizing .conf apache configuration per domain
On RHEL/CentOS at least, this is the RedHat-endorsed approach. In fact, doing things this way, it's exceedingly rare you'll ever have to edit httpd.conf, which is the whole point: you can do version upgrades and modify the server's mode of operation extensively by doing simple, naïve file manipulation à la that done by RPMs. The sites-available/sites-enabled approach is just another way to achieve the same goal.
Feb
6
comment Want to deploy two sites unig a linux/centos server
In order to run Drupal in a subdirectory with Clean URLs, you'll need to enable the RewriteBase parameter in the .htaccess file.
Feb
2
comment In what condition, should I create a system user instead of a normal user?
Probably not terribly often, no. But if you were compiling the software from scratch yourself, it's easy to imagine a need as part of make install. Since there's not a tradition in *NIX of hiding the options used by scripts like the one run by make install from users (even in situations where it's rare for a user to want to use such an option, like mysql's -B flag), the option is available for you to use interactively on the off chance you'd ever need it.
Nov
7
comment rm on a directory with millions of files
Two minor concerns: one, [256] should probably be [FILENAME_MAX], and two, my Linux (2.6.18==CentOS 5.x) doesn't seem to include a d_type entry in dirent (at least according to getdents(2)).
Sep
9
comment Redirect between subdomains in VirtualHost
Worth noting: you'll also hit the default VHost if you have a name that doesn't match the template *.example.com (e.g. www.greatestexamplesiteever.com). You can of course fix this by either swapping the order of the VHosts or by adding additional ServerAliases to the second VH.
Jul
27
comment PHPMyAdmin Import large (70 MB) file
@thetaiko pv importfile.sql | mysql dbname gives you a progress bar. pv is available in EPEL for RHEL/CentOS, and probably via Your Favorite Package Managerâ„¢ in other distributions.
Jul
19
comment Randomly unable to connect to localhost web server
@oleschri: On the contrary: it might very well reach IIS (or at least something), but it's then immediately broken down (and not by IIS, which would send a FIN, not a RST). Also, note the issue affects not only HTTP/IIS, but also CIFS, amongst other things.
Jul
19
comment Randomly unable to connect to localhost web server
@oleschri: Based on his most recent reply to my answer, above, the connection forms (SYN+SYN/ACK+ACK), but is then RST cleanly (had it been FIN, you'd see the socket in TIME_WAIT).
Jul
19
comment Randomly unable to connect to localhost web server
Oh! Now that is interesting. That would suggest a firewall or other policy-based networking apparatus deciding that the connection is not acceptable. Can you post the output of netsh dump? I suspect you might have something you don't know about in your network stack.
Jul
19
comment Is it valid to have part of an IPv4 address set to zero?
You can use the network address for a host, and doing so was once a common test of "leetness". Thankfully, though, it has since fallen well out of vogue. In a similar vein, RFC 3021 permits the use of both "broadcast" and "network" addresses in a /31, though the terms are arguably somewhat inapplicable when you're only dealing with two hosts to begin with.
Jul
19
comment Is it valid to have part of an IPv4 address set to zero?
192.168.0.257 is incorrect, but 192.168.257 is a correct representation of 192.168.1.1 (as is 192.11010305). See inet_aton(3).
Jul
16
comment Randomly unable to connect to localhost web server
What's the state of attempted connections to 127.0.0.1:somelisteningport in netstat -an when the server is exhibiting this problem?
Jul
16
comment Randomly unable to connect to localhost web server
I believe (don't quote me) that you cannot capture on the loopback adapter on Windows, or at least that that functionality has differed between versions of Windows/Winpcap. Easy enough to test on your specific platform, of course!
Jul
16
comment Is it valid to have part of an IPv4 address set to zero?
I'll jump onto this answer, which is correct, to add an additional point: the "dotted quad" format for IP addresses, while canonical, is not the only representation format. Try the command ping 2130706432, or ping 017700000001 (yes, even on Windows). You may find yourself surprised by the results.
Jul
13
comment Randomly unable to connect to localhost web server
Cotton: No, just trying to eliminate possible sources. In Linux, I'd know which packages' changelogs to check to see whether this was fixed; in Windows, I tend to go with more something more akin to the shotgun approach to patching.
Jul
13
comment Randomly unable to connect to localhost web server
Has the box had all applicable Microsoft updates applied to it?
Jul
13
comment shutdown linux server right after power outage while on UPS
BBU on the RAID card and journaling FS? A system suddenly losing power under those conditions is not (unreasonably) dangerous.
Jul
13
comment Randomly unable to connect to localhost web server
Okay, and you are checking with -a on netstat, right? In other words, you're getting (and counting) entries in TIME_WAIT, for example?
Jul
13
comment Randomly unable to connect to localhost web server
Is there any kind of software firewall in place on the machine (e.g. Windows Firewall, or that provided with or alongside some anti-virus software)?