Install Pear OS X Leopard

#1 wget -O go-pear.php

#2 php go-pear.php

#3 Change the installation directory to whatever you would like and edit settings as appropriate.

#4 Allowed edit to php.ini to add the PEAR directory to the path in php.ini.

#5 Now you can run pear commands assuming you edited your PATH to include the PEAR installation directory.

pear -V

Now you can add pear packages with pear install command

How to install the pear package: HTML_QuickForm

#1 pear install HTML_QuickForm

AWstats Web Statistics Multiple VirtualHosts

These instructions are for RedHat but I am sure they can be teaked as appropriate for other Linux distros.

In addition, a better approach for multiple VirtualHosts can be found here including tweaking the log file format and additional scripts to automate the process:


1. Download awstats for your linux distribution.

2. Copy it to the server you want it installed (or do both in one step with wget if you know the URI)

3. Install the .rpm package: yum install awstats-*.noarc.rpm

Configure Apache

1. Add the following lines it the VirtualHost directive.

CustomLog logs/www.example.com_access_log combined
CustomLog logs/access_log combined

The second entry is the default access_log for Apache. I like to log to both files so I can have an awstats for the entire server and one just for the VirtualHost

2. Reload the Apache service.

Configure AWstats

1. Copy the awstats.model.conf to have a name with your VirtualHost name in it. Give the web service user read/write access to the newly created file.

cp awstats.model.conf

2. Open the newly created file and edit the SiteDomain, HostAliases, and DirData minimally in the config file.

3. Create the Data Directory and give Web service read/write permissions.

Generate the Data

1. You can run the command directly from command line to generate the data that is already in the access_log file.

/path/to/ -update

This may take some time if the log file is pretty big.

2. Add the command to a crontab to have run for you automatically at a certain point every day or however often you would like.

View the web page

1. Now you can browse to the website to view the data.

Repeat the above steps for each VirtualHost

Managing Terminal Service Sessions Remotely

I needed to login to a Windows Server 2003 and got the following error message:

“You exceeded the allowed connection count”

I found this post and tried the command line qwinsta and rwinsta commands but kept getting:

“No session exists for *”

So reading further down I found that I could login to a server that I had access to, open Terminal Service Manager and connect to the server from there.

I found this post which describes the process with screen shots: