Tuesday, September 8, 2009

Steps for PHP installation.



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”

  • 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





More Articles...

No comments:



Thanks for visiting our blog


twitterrss facebook linkedin YouTube subscribe


Subscribe via email

Enter your email address: