eBook for learning Software Testing and QTP
PHP is having lot of optional modules such as php_gd2 (for graphic display), php_mysql (database connectivity). Find below the steps for setting up php with required modules along with Apache server in Windows environment.
We can follow below steps for installing php with Apache server.
- Install Apache-2 while (installing it give domain name and server name as "localhost")
- Create a folder inside Apache with name=”php”.
- Unzip the file “php-5.2.6-Win32.zip” inside the folder “php”.
- Rename the file “php.ini-recommanded” as “php.ini”.
- Open php.ini and change the following:
- Remove ; present from the lines “extension=php_gd2.dll”, “extension=php_mysql.dll”
(; means comment) - Change extension_dir = "C:\Program Files\Apache Group\Apache2\php\ext"
- Copy and paste “php.ini” inside “windows”
- Remove ; present from the lines “extension=php_gd2.dll”, “extension=php_mysql.dll”
- Open “httpd.conf” file that is present inside “Apache\conf”.
- Paste the following line ServerRoot "C:/Program Files/Apache Group/Apache2"
- Don’t use # symbol. It is used for comment.
- Paste the following line at the end of loadmodule: LoadModule php5_module "C:\Program Files\Apache Group\Apache2\php\php5apache2.dll"
- After documentroot paste this: DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
- Add this: AddType application/x-httpd-php .php after the following line: #AddType application/x-tar .tgz
You can follow similar steps if you want to include any additional modules such as curl.





Comments
Write New Comment ▼
Write New Comment
Sorry! This knol's owner(s) have blocked you from editing, making suggestions, or commenting here.