Categories
docker gcp Kubernetes Linux

Install Minikube on GCP CentosOS 7

Enable nested virtualization on an instance https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances Create a boot disk. gcloud compute disks create disk1 –image-project centos-cloud –image-family centos-7 –zone us-central1-a Create image with License. Note: This may take a minute. gcloud compute images create nested-vm-image –source-disk=disk1 –source-disk-zone=us-central1-a –licenses=https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx Delete source disk, as it is no longer needed. gcloud compute disks delete disk1 –zone […]

Categories
Internet Linux

Enable mod_deflate On CentOS 6 (Enable Compression)

Add to .htaccess. ## ENABLE COMPRESSION ## AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-font-otf […]

Categories
Code Linux MAC UNIX Wordpress

WordPress Backup on CentOS

Now that I’ve moved my website over to CentOS, I’ll be showing you how I do backups. My Setup VirtualBox – CentOS web server running WordPress iMac – connected Drobo Goal Run daily mysql backups Run weekly website backups Only keep the latest two backups Run daily rsync’s to my Drobo from my iMac CentOS — […]

Categories
Linux

Red Hat & CentOS – Limit FTP users to their /home/user directory

Limit FTP users to their /home/user directory. Open vsftpd configuration file — /etc/vsftpd/vsftpd.conf. # vi /etc/vsftpd/vsftpd.conf Make sure following line exists (and uncommented): chroot_local_user=YES Save and close the file. Restart vsftpd. # service vsftpd restart

Categories
Linux UNIX

Red Hat & CentOS – Setting Up Virtual Hosts

For this quick and simple example, I will enable Virtual Hosts and configure itsmetommy.com to point at /var/www/itsmetommy.com/public_html/. # vi /etc/httpd/conf/httpd.conf # mkdir /var/www/itsmetommy.com # mkdir /var/www/itsmetommy.com/public_html/ Add the below line to /private/etc/apache2/extra/httpd-vhosts.conf or you will get the below error when restarting httpd. ServerName localhost “Starting httpd: httpd: apr_sockaddr_info_get() failed for YOURHOSTNAMEhttpd: Could not reliably determine the […]