Carlos Sura

Blogs

Start OpenVPN at boot CentOS 6

I was not able to remember how to do this… Therefore every time I was rebooting my server OpenVPN was not starting. So, here is how I did this: mv my-cert.ovpn /etc/openvpn/my-cert.conf …

Update Wordpress URL in MySQL

A quick and old-fashioned way to update the URL from your WordPress website to a new one. UPDATE wp_posts SET post_content = REPLACE(post_content, 'domain.com', 'newdomain.com'); …

Create swap file on CentOS

I needed swap for a t2.micro ec2 machine because it was dying almost twice a week, so I created a swap file for this. Run as root or the following commands: fallocate -l 1G /swapfile chmod 600 …