Step Wise Execution:
1. Install Apache 2.2 Web Server
2. Download PhP 5.2.6 zip file from www.php.net and extract it to C:\php
3. Install Oracle 10G-R2 (XE)
4. Copy php5ts.dll from C:\php and paste it to C:\windows and
C:\windows\system32
5. Copy php.ini-dist from C:\php and paste it to C:\windows and rename it
as php.ini
6. Open php.ini from C:\windows and make search for oci
You will find a row called
; extension =php_oci8.dll
Uncomment this as extension=php_oci8.dll
7. In php.ini, make search for extension_dir then you will going to find a
row:
extension_dir=”./”
Here, specify the path and update it to extension_dir=”C:\php\ext”
8. Open C:\Program Files\Apache Software foundation\Apache2.2\conf
Then open httpd (text file)
Then inside the httpd file look for:
#LoadModule SSL_module modules/mod_ssl.so
Below this add a line called:
LoadModule php5_module “C:\php\php5apache2_2.dll”
9. Now in httpd file look for AddType application/x-gzip .gz .tgz
Below this add a line called:
AddType application/x-httpd-php .php
10. Now in httpd file search for index.html
You will find a row:
DirectoryIndex index.html
Change it to:
DirectoryIndex index.php index.html
11. Now save the httpd file and run the Apache 2_2 server.
In order to run Apache 2_2 server:
->Click Run and type services.msc
->Then service page will open.
->Click on Apache2.2 and run it.
12.
Open the browser and specify the IP (for eg:192.168.0.1) or domain name.
Thanks ,
No comments:
Post a Comment