Most Rated Articles

Installing Apache and Apache Modules the easy way

The Essential steps on how to Sysprep Windows 7

SSH is very much similar to telnet. SSH is a shell program which allows a user remote access and the ability to execute commands over a network.

It is important to protect your wireless networks from unwanted and abusive users. Unauthorized users may reduce the bandwidth and may lock up your network

There are many methods on how to optimize apache. It could be on the software side, but upgrading the hardware also makes a difference.

With Windows 7 as a new OS in the market, one may worry about any problems that could be encountered especially network issues such as compatibility with older OS. Windows 7 might encounter problems communicating with older Windows models such as XP. The following are ways on how to network Windows 7 and XP.

One way of installing windows over the network is through the use of RIS or Remote Installation Services. However, you must have the following prerequisites in order to install Windows over the network.

Installing a printer on a mac is just as easy as installing a printer on an OS of Windows. The following steps are just some of the steps on how to connect your printer a Mac operating system.

Nowadays, it is important to have access to Wi-Fi. However, not everyone has their own internet connection so most people leech wherever there is free Wi-Fi. Most routers with Wi-Fi access require passwords but nowadays, there are other places to look around and search for free Wi-Fi.

Some applications cannot install in Windows 7 due to incompatibility issues. A solution would be to enable XP mode in a virtual environment of Windows 7. This configuration may be used to run and install programs that were incompatible in Windows 7.

Windows  »  PHP
 Picture

How to configure Apache for PHP

By: Anton Locsin
Date Added : June 19, 2010 Views : 160



In order to have an enjoyable and interactive web browsing experience, the function to run scripts on a web page must be present. These scripts carry out tasks such as gathering information, designing websites for blogs, forums, and the like. However, the Apache web server needs to be configured with PHP in order to run these scripts. Below are the steps to configure Apache on PHP.

The first step is to open "httpd.conf" using a text editor (preferably notepad). Navigate from the folder "Apache" to its sub directory called "conf". You will find "httpd.conf" in the "conf" folder.


The second step is to configure and add code in the "httpd.conf" file. Search for the segment of code where PHP can be found. Once you have found the section, add the following lines:

c:/php/php5apache2.dll

AddType application/x-httpd-php .php

The next step is to specify the path of PHP and to save the changes made. To let the Apache web server locate PHP, add the following line below the codes that you have just recently entered:

PHPIniDir "C:/Windows"

C:/Windows is the default path of PHPIniDir. If you installed the directory on another location, be sure to indicate that path or else the programs will not work. Afterwards, save all the changes made.

The PHP segment should most likely resemble this below:

# PHP5
AddType application/x-httpd-php .php
.phtml

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

c:/php/php5apache2.dll
AddType application/x-httpd-php .php

PHPIniDir "C:/Windows"

The last step is to test if the installation and configuration worked. This may be done by running a simple php script on the Apache web server. Save the script on a directory where you place your web pages and open the page on a web browser. If Apache has been properly configured for PHP, the script should properly run on your web browser. Otherwise, the web  browser will try to download the PHP page.




Article Categories