ARCHIVE January, 2010

Democracy Without Moral Fortitude

April 28, 2009

johnadamsDemocracy will soon degenerate into an anarchy, such an anarchy that every man will do what is right in his own eyes and no man’s life or property or reputation or liberty will be secure, and every one of these will soon mould itself into a system of subordination of all the moral virtues and intellectual abilities, all the powers of wealth, beauty, wit and science, to the wanton pleasures, the capricious will, and the execrable cruelty of one or a very few.
John Adams, An Essay on Man’s Lust for Power, 1763

PHP Script Switch Page to HTTPS

April 22, 2009

Here is a quick php script that you can add to the top of any page you want to be secure. Obviously, it requires you actually have an SSL Certificate all set up on your domain first. (more…)

Install Wordpress On a Local Server

April 15, 2009

In this tutorial, we’ll go through the process of setting up a server on your local computer. This will allow you to run PHP & MySQL applications, such as Wordpress, directly on your machine.

As I have yet resisted joining the ranks of the Mac cult, we’ll be using PC server software. I am aware of XAMPP, WAMP, and I personally use VertrigoServ for no other reason than it is the only one I’ve tried. (Mac cultists can use MAMP.)

This Tutorial Is Based On VertrigoServ

They say that cleanliness is next to godliness, and in that vein let us install our server in a organized location. On my desktop, I actually use a whole separate hard drive to store my server. If you don’t have the luxury of a dedicated HDD, then your local disk or C:\ will be fine.

01. Installing The Server

Create the following directory: C:\usr\. Then run the server installer, and be sure to install the software in the C:\usr\ location. If you installed the VertrigoServ software, then the “public web” files will be located in C:\usr\www\. So let’s download and install Wordpress inside C:\usr\www\wordpress\ and then be sure to fire the server up after installation.

02. Setup The Database

So we’ll need to have a database created before we can install Wordpress. In your web browser, navigate to http://localhost/phpmyadmin and login. There should be the default user and password if this is your first time. Find it by clicking the VertrigoServ icon in the bottom right tray, and selecting “Help and Readme”. Be sure to change your passwords once you get in. Default login is root/vertrigo.

Now that we’re in PHPmyAdmin, let’s create a database for our local Wordpress install. Type in your desired database name, and hit the “Create” button.

wpdb-create

03. Installing Wordpress

With the database created, we can now input our database details into the wp-config.php file of our WP install.

1
2
3
4
5
6
7
// ** MySQL settings ** //
define('DB_NAME', 'database_name');    // The name of the database from step 2
define('DB_USER', 'root');     // Vertrigo uses root as the default username
define('DB_PASSWORD', 'vertrigo_password'); // the password used to get into your local phpmyadmin
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

Now we can pull open our browser, and navigate to http://localhost/wordpress and begin the installation of Wordpress.

The http://localhost/ address looks into the \usr\www\ directory. So whatever the name of the directory we installed in, is what we’ll need to punch in after localhost/. For example, if I installed an application in \usr\cms\, I will need to navigate to http://localhost/cms in order to pull up that site.

Show Hidden Files in Dreamweaver

April 13, 2009

Are you tired of not being able to see the .htaccess and other apache files on the server side? No sweat. Let’s just navigate to the Files section in our sidebar.

Click the “Options” icon, and navigate to View > Show Hidden Files.

hidden files in dreamweaver

On The Doctrines of Grace

April 12, 2009

samuel_rutherford Ye may yourself ebb and flow, rise and fall, wax and wane; but your Lord is this day as he was yesterday; and it is your comfort that your salvation is not rolled upon wheels of your own making, neither have ye to do with a Christ of your own shaping. -Samuel Rutherford