Category: "LAMP"

Simulate a cron job with watch

If you want to test a script that will run as a cron job, or you would like to run a command line script repeatedly to test it, watch is a great tool. watch -n [number of seconds between runs] [command to execute] For example: more »

Bash Create User Script

This is a very simple script to create users and set them up in a userdir enabled Apache environ. Shell#!/bin/bashif [ "$#" -ne 1 ]; then    echo "Usage: ./ <username>"&#16… more »

How to set environment variables that can be referenced by Apache, shells and cron jobs

In some cases, environment variables are used to store configuration information. If the values are referenced from different sources, such as through a web server and on the command line, it is a good idea to define them in a single place and graceful… more »

Cleaning up files created by the web server

Many times when you are working with a web application on shared hosting, the server will create files. Depending on the server configuration, it is possible those files will be created by a user other than the account holder. If you are using shared h… more »

Windows 7 Dual-Boot CentOS 6.4 on an External USB Drive

Before you do this, make recovery disk(s) for Windows 7. Unless you already have them. You may want to backup anything you have on the Windows 7 drive, but if you're only using it to run browsers, you haven't invested that much anyway. Make sure you… more »