formats

Configure Apache SSL Cipher Suites for Best Security

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

Configure Apache SSL Cipher Suites for Best Security | Apache can be configured to use various SSL Cipher suites. For best security, set Apache SSL settings to use only the highest grade security ciphers. It has become common practice to also set the server to prefer an RC4-SHA cipher both for speed (it’s fast!) as well as a fix against the BEAST attack. Google,

formats

How to Create MySQL database and user

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

How to Create MySQL database and user | Here is quick way to create a MySQL database and user. This is useful for WordPress, Drupal, or other LAMP apps. Login to MySQL with the MySQL root password: $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version:

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

Home Archive for category "linux" (Page 15)