Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

theshell

theshell

Retrieve Mysql command history

I have a bad habit of making notes on notepad++ and not saving those notes, so any new command or old command that I modify goes there. I recently found myself in dire need of a couple of commands I…

Find exact model of CPU – Apple OSX

apply osx

This is pretty infuriating, with all the wax and polish you can’t find the exact mode of the CPU your Mac is equipped with. While this may not be a problem for most Mac owners out there, it sure was…

Enable Event MPM – Apache 2.4

Event MPM is brand new, released with Apache 2.4 and works similarly as Worker MPM when it comes to processes and threads. The difference here is that Event MPM will dedicated a thread to a request and not the whole…

Get owner / username of php process

To find out which user is running the php process on your website put the following into a file inside your websites public directory <?php $processUser = posix_getpwuid(posix_geteuid()); print $processUser[‘name’]; ?>    

Call to undefined function posix_getpwuid()

Got this error while trying to test user privileges on a newly setup server. If you get this in your error log: Call to undefined function posix_getpwuid() It most probably means you don’t have php-posix installed. Install it by issuing the following…

Install Virtualbox – CentOS 7

Virtualbox is great, it let’s you run multiple operating systems on one machine while being completely free. You’ll need to start off by installing some prerequisites, issue the following at shell: yum install gcc libgomp patch dkms qt make yum…

Disable IPv6 – CentOS 7

Disabling IPv6 on CentOS 7 is pretty straight forward. You should make sure you aren’t running anything that’s using your IPv6 address. Add the following line inside the config at  net.ipv6.conf.all.disable_ipv6 = 1 To apply this change issue the following…