Create a folder named php in webserver folder.
Extract php zip to php folder and open the php folder
Look for a file called php.ini-development. Once you have found it, rename it to php.ini Windows will inform you that changing the file extension may cause it to become unusable. Change it anyway.
Open up php.ini in notepad or in any editor.
Do a search (CTRL+F) “doc_root” (omit quotations). After the = sign, type in "C:\webserver\htdocs" (INCLUDE quotes).
Scroll down until you see
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = “./”
; On windows:
; extension_dir = “ext”
Delete semicolon and then replace “ext” with "C:\webserver\php\ext"
Scroll down until you see
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_pdo_mysql.dll
Remove semicolons before them. They will look like
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
If you want to send mails using php then search for [mail function] and find
SMTP = localhost change it to your smtp such as mail.xyz.com or anything.
change smtp_port = 25 to your own portno
uncomment and change
;sendmail_from = me@example.com
to your email address ie from which email id you would like to send mails.(Note:email should be valid and should be existing and working).
Save your php.ini file. Thats it we have completed php configuration.
Lets start installing MySQL.
0 comments:
Post a Comment