formats

How to Redirect a URL in a Virtual Host

Published on 2013/01/18, by in linux, sysadmin.

How to Redirect a URL in a Virtual Host | Redirecting a URL in a virtual host is a snap! I’ll show you how. Scenario: you have a server that receives example.com but you want that to redirect to example2.com. First you will want to add this to your /etc/apache2/ports.conf (Debian or Ubuntu) or /etc/httpd/conf/httpd.conf (Red Hat or CentOS) if you have not already: NameVirtualHost

formats

Use awk instead of cut to cut out specific columns of a file

Published on 2013/01/17, by in linux, sysadmin.

Use awk instead of cut to cut out specific columns of a file | For separating out specific columns of a file, try using awk! The command to use is: $ awk ‘{print $9,$10}’ file.txt > file_cut.txt Where 9 or 10 indicates the ninth or tenth column of a text file. For an example, say you have the output of an ls -l: drwxr-xr-x 13 root root 4096 Jun

formats

Apache WordPress Drupal Website Permissions

Published on 2013/01/14, by in linux, sysadmin.

Apache WordPress Drupal Website Permissions | Permissions on a Linux webserver is an often confusing topic but hopefully I can clear the mud. There may not be one right answer for all, but below are some suggested configurations! The following applies to WordPress, Drupal, or any similar application. Two concepts to hang on to: – In Linux there are users who

formats

Use du to show directory sizes only

Published on 2013/01/11, by in linux, windows.

Use du to show directory sizes only | du can show directory sizes only. This is helpful to get a quick glance at what directories are taking up space. Here’s the command I like to use: $ du -sh * Here is what it looks like in action from /var on one of my servers: stmiller@li166-66:/var$ sudo du -sh * 38M backups 48M

formats

How to Generate a Private Key and CSR from Command Line

Published on 2013/01/11, by in linux, sysadmin.

How to Generate a Private Key and CSR from Command Line | Use the following command to generate a private key and certificate signing request (CSR): $ openssl req -new -newkey rsa:2048 -nodes -keyout server_private.key -out server_csr.csr In the dialog that follows, pay particular attention to the CommonName (CN) indication. If you need a certificate for example.com, use example.com (exactly) as the CN. For example, if you

formats

Monitor MySQL Performance with mytop

Published on 2013/01/10, by in linux, sysadmin.

Monitor MySQL Performance with mytop | mytop is an excellent app to monitor mysql performance. Let’s check it out! Firstly, install mytop: $ sudo apt-get install mytop Run mytop with tack tack prompt to have mytop prompt for the root mysql password: $ mytop –prompt Done! You can now monitor the number of mysql queries the server is processing as well

formats

Make your terminal snow

Published on 2012/12/24, by in linux.

Make your terminal snow | Make your terminal snow with this cool python terminal app. The github page is: https://gist.github.com/1508912

Home Archive for category "linux" (Page 15)