Tag Archives: File

Ubuntu Logo

Making mod_rewrite on Ubuntu Server actually work

Throughout the updating to kaslnetwork.com, there were a lot of new things to learn; I switched from CentOS to Ubuntu Server, my own hardware to Amazon’s EC2 service, and I moved the website to a much more sophisticated web platform. One of the coolest features about the presentation of the site was the ability to use mod_rewrite to change the URL. The use of mod_rewrite Read More →

How to encrypt a file in Linux

If you have sensitive information that needs to be sent or kept private, encrypt it! GPG is a *nix program used for encrypting and decrypting files. This tutorial shows GPG in the most basic form – step by step. Follow these steps in command line to encrypt and decrypt files: Create a file touch gpg_test echo "The quick brown fox jumped over the lazy dog" Read More →

Installing Dell V515w Printer on Arch Linux

Dell printers can be a challenge to install on some Linux distributions… However, once you figure out the key files, it makes it a little bit easier to make things happen. The steps here are basically hacks that I went through until I could figure out what was going on. Here are some KEY bits of information to get things going: Summary of Requirements You Read More →

The very powerful sed command

Have you ever needed to replace a string in a file or multiple files? Why not try it without opening a file? I do a lot of web design. Every so often, I will have a string or a variable in a web page which is in there many times. Even more often, the same string will be in multiple files – multiple times. This Read More →

Move the Windows Paging file

If you need a performance boost on Windows (or in a Windows Virtual Machine), then moving your page file might be a big help. The page file is a type of “swap” file that Windows uses to store blocks of data – typically when the memory is fully used or unavailable. When you have the page file on the same disk partition as the Windows Read More →

Linux DNS Server Setup

What is the Domain Name System(DNS? The DNS is the glue that keeps the Internet together. DNS translates domain name(example.com) to an IP address and vice versa. It’s much easier for us to remember names than numbers. DNS is defined in Request for Comments (RFCs) 1034 and 1035. Basically, any major Linux distro can be used as a DNS, Web, E-mail, and FTP server, and Read More →

Mod your Php installation to handle larger uploads

Though PHP presents a very versatile and user friendly interface for handling file uploads, the default installation is not geared for working with files in excess of 2 Mega Bytes. This article will help you configure your PHP engine for handling such large file transfers. The php.ini File All the configuration settings for your installation are contained in the php.ini file. Sometimes these setting might Read More →

How to configure the Apache web server to run SSL

Following is a step-by-step guide to creating a self-signed SSL certificate for apache2 on the Ubuntu Linux distribution. Procedures here are sufficiently different from my selfsign.html guide applying to other linux distributions that it warranted a separate document. Note that this document can be used a couple different ways. If you follow all the steps you’ll have a self-signed SSL certificate and (hopefully) a working Read More →

Apache configuration for redirect using httpd.conf and .htaccess

File: /etc/httpd/conf/httpd.conf (older systems used apache.conf) Default: This disables the processing of .htaccess files for the system.  <Directory />  AllowOverride None  </Directory> or for a specified directory:  <Directory /home/domain/public_html>  AllowOverride None  </Directory> Specify directory containing site or page to be redirected:  <Directory /root-directory-of-web-site-to-be-redirected>  AllowOverride All  </Directory>  AllowOverride parameters: AuthConfig FileInfo Indexes Limits Options File: .htaccess Create a file /home/domain/public_html/.htaccess in that directory of the domain Read More →

Prevent users from gaining access to .htaccess files

Create a file called .htaccess and put this code in it:  <Files ~ ".inc$">  Order allow,deny  Deny from all  </Files> Put the file in the root of your website. Done!

Post Navigation