Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

theshell

theshell

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…

Change hostname – CentOS 7

centos logo

Changing the hostname on CentOS 7 is pretty straight forward, issue the following at shell and replace HOSTNAME with the hostname you want to set. hostnamectl set-hostname HOSTNAME To verify that the new hostname is set issue the following: hostnamectl  

Add / Change dns – CentOS

The easiest to add or edit the dns servers your server uses is to edit the file at  and then add dns entries in the following manner nameserver 208.67.222.222 nameserver 8.8.8.8 nameserver 208.67.220.220 nameserver 8.8.4.4 So I’ve gone and set…