Configuring Apache

This should be the final steps to get everything up working nice and sweet. First we need to edit Apache httpd.conf.

1) Look for DirectoryIndex index.html and replace it with DirectoryIndex index.html index.php

2) I wish to set the document root of Apache to my project directory, so that I do not have to copy any files everytime I wish to test my codes. Since I have installed Apache in C:/Project/Apache2211, look for DocumentRoot “C:/Project/Apache2211/htdocs” and replace it with DocumentRoot “C:/Project/“. Of course, substitue with the respective directory where you have created your project in.

3) Look for <Directory “C:/Project/Apache2211/htdocs”> and replace it with <Directory “C:/Project/“>.

That’s it!!

Setup Apache, PHP, MySQL

After installing all the necessary softwares required for my development usage, it is now time for the climax =D

I will need to get Apache, PHP, MySQL running on my virtual machine. I have downloaded them from their official websites.

Apache HTTP Server 2.2.11

PHP 5.2.8 installer

MySQL 5.1 (without installer)

Installing Apache…

1) Run the installer as per normal. You can enter localhost for both the network domain and server name. I have installed Apache in C:\Project\Apache2211

apache

Installing PHP…

1) Run the PHP installer. Choose Apache 2.2.x Module as Web Server

2) Choose the respective Apache Configuration Directory. In my case, it will be C:\Project\Apache2211\conf\

3) For the items to install, I have choose to install everything =) I have chosen to install PHP in C:\Project\PHP528


Installing MySQL…

1) Installing MySQL is easy. Just unzip the package. I have placed it in C:\Project\mysql5.1.31


Making sure it works…

To make sure everything works correctly, restart the Apache service. If it started correctly, open up a new browser window and type in the url as follow. http://localhost

You should see the text It works!
As for MySQL, it is even simpler. Start mysqld.exe in the bin directory. I have used SQLyog as a GUI, to make a connection to MySQL.

sqlyog

Configuring Apache…

There is still some things to be done in order to make development easier. I will cover this in another entry =)

VMWare Increase Harddisk Capacity

I am using VMWare for several reasons, but the purpose of this post is to show how to increase the harddisk capacity of a virtual machine. I am currently running out of space of the 10GB capacity, and want to pump it to 20GB..

1) Shut down the virtual machine if it is running.

2) Open a command prompt window, and navigate to the directory where the VMWare (.vmdk) file that represents the virtual disk that you want to expand resides in.

3) Type in the following… Of course, substitute with the correct path where you have installed the VMWare, as well as the name of your VMWare file.

C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager -x 20GB “My Virtual Machine.vmdk

4) After that is completed, the disk capacity has been expanded but the increased space is still unallocated. You will need to use any Windows partition software to assign the unallocated space. I have used Partition Magic to do so, and it is really trivial.

5) And Viola! Its done! =)

Setup TortiseCVS 1.10.10

I have downloaded TortiseCVS 1.10.10 and want to setup for personal use on my computer. It will serves as a repository for my codes.

Setting up the cvs…

1) Download from the official website and install by running the exe file. This should be quite fool proof =p

2) Next is to start the CVSNT Server from the Control Panel. To be able to use the cvs with minimum configuration, under the Repository configuration tab, I have entered a name for the server. Next, click on the Add button to add a new server. After filling in the details and clicking Ok, there will be a warning to initialize the repository. Just go ahead with do it.

I have entered C:/Project as the location, so a CVSROOT directory will be created in C:/Project.

3) Next, under the About tab, start both the CVSNT and CVSNT Lock service.

4) Open a command prompt window. Type in the following to set the cvsroot. Of course substitute the [computername] with the name of the computer the cvsnt is running on.

set cvsroot=:sspi:[computername]:/project

5) Afterwhich, type the following to set a password for the user admin.
cvs passwd -a admin

6) Finally to test if everything is working correctly, I have tried to add a repository in Eclipse IDE with the following settings. And it works =)