Installation and configuration Archives

Apache + PHP on Mac OS X

Though the screenshots have changed the basic process is the same, Kevin Hemenway, takes readers through how to setup an Apache server on Mac OS X and then how to turn on PHP 4.
To edit the httpd.conf I needed to do the following:
1. start Terminal by going to Utilities/Terminal
2. type the following into the terminal:
sudo […]

AJAX MyTop

Man, how many clicks does it take to get the download these days at Sourceforge? Seems like it took me a half dozen to get to the AjaxMyTop project download.

MyTop creator Jeremy Zawodny writes:
Someone has built and AJAX powered version of mytop, the little console based MySQL monitoring tool I wrote years ago. I guess […]

Installing Apache, PHP, MySQL on Windows XP

Didn’t try these tutorials out, but they look pretty thorough and thought I’d pass them along:
These are how-to tutorials to give step by step instructions for installing, setting up, and configuring Apache2 web server, ActivePerl, PHP, and MySQL in Windows. A section is also included that tells you how to make your server accessible to […]

Setting up a new Wordpress blog

This guide assumes you have already downloaded and unzipped/untarred the most current Wordpress version. These instructions do not cover the multi-user WP version.
Steps for setting up a new Wordpress (WP) blog:
1. Database created? Create a MySQL database for the domain.
Note: If you have more than one WP blog installed in the same database then open […]

PHP Markdown Extra

Script/website: michelf.com/projects/php-markdown/
Requirements: PHP
Installation time: Varies. Wordpress plugin installation takes less than a minute
Difficulty: Easy
License: Free, BSD-style open source
Download: PHP source in zip
API: N/A
Author Description: “The Markdown syntax allows you to write text naturally and format it without using HTML tags. More importantly: in Markdown format, your text stays enjoyable to read for a human being, […]

Apache, PHP, JSP and MySQL on Windows XP / 2000

My friend, Lestat, and I were talking earlier today about PHP and Windows earlier today and tonight in my PHP stream I noticed the following article from mpcon.org:
This is a quick guide to install and configure the Apache web-server with PHP and JSP support on a Windows XP Pro SP2 machine. I also included PHPMyAdmin, […]

Upgrading the built-in WP search

Producing search results from a Wordpress-powered blog that look like something a traditional search engine would produce is not as difficult as it might seem, thanks to a comprehensive plugin and template design. While making some changes, you can also try using a different search results algorithm than the default one.
The Search Reloaded Wordpress […]

How to change the server date and time

This is more a Linux task than a PHP one, but for those needing to change their server date/time, it can be done with the linux DATE command as follows:

date - s `+ 1500`

This might require root or sudo privileges. In that case the command would be:

sudo date - s `+ 1500`

On a PHP note, […]

How to tell if the cURL extension is enabled

To determine if the cURL extension is enabled, run the following code on your server:

<?php
var_dump(curl_version());
?>

Success! - If cURL exists and is enabled it should return something that looks like this:
PHP version 4 example successful result:

string(54) "libcurl/7.13.2 OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13"

PHP version 5.1 example successful result (returns an array)

Array
(
   [version_number] => 461570
   [age] => 1
   [features] […]

Colorized pretty source code htaccess method

Tired of black and whit coding that looks like what’s above? Want to colorize it to look like this instead:

Here is how to make colorized pretty source code using the .htacess method for .phps files:
Step 1. create a text file and save it as .htaccess. Put the following code in the file:

AddType application/x-httpd-php-source .phps

Step 2. […]