SlideShare a Scribd company logo
1 of 16
INSTALLING APACHE
AND PHP
MANUAL INSTALLATION
By: Abdullah Khokhar
APACHE INSTALLATION
APACHE DOWNLOAD
You can download latest version of apache from
http://www.apachelounge.com/download/
Select VC11 from left menu. Then you have to install visual c++ distribution
and apache win32 or win64 depending on version of your operating system
as shown in picture in next slide.
APACHE DOWNLOAD
OR
Visual C++ Distribution
Apache 64-Bit
Apache 32-Bit
APACHE INSTALLATION
Extract your apache and copy folder named Apache24 or similar named. And paste
it in “c:” C Drive. Now rename Apache directory to “apache” without quotations.
Path to apache directory now, should look like “c:apache” without quotations.
Now go to c:apacheconf and open httpd.conf
Find “c:/Apache24” without quotations and replace all of them with “c:/apache”
without quotations.
Now Find “ServerName” without quotations in httpd.conf and remove # before it and
replace
ServerName www.example.com:80
With
ServerName localhost:80
APACHE INSTALLATION
Go to Start menu and run cmd (command prompt) as an administrator
Run following commands in cmd:
cd/
cd apache/bin
Now you will have c:apachebin in your cmd
Run “httpd.exe” without quotations in cmd and apache will run as an
application but we need to run it as a service. So press “ctrl c” from your
keyboard to stop apache.
APACHE INSTALLATION
Go to control panel and search services or find “view local services” in
control panel and find the apache service from the list. It should not be
installed at the moment.
Now,
Right click on my computer and select properties, go to “Advanced System
Settings” menu, a window will appear then. Below in the window you will find
“Environmental Variables” click that.
And follow the steps shown in figure on next slide
2
1
3
5
4
6 Add below in textfield:
;c:apachebin
APACHE INSTALLATION
Close cmd and open again as administrator. Now you can access “httpd.exe” any
location you are. No need to go to “c:apachebin”.
Run below command in cmd
httpd –k install
This will install apache as a service in windows services, to uninstall it you have
command
httpd –k uninstall
Your apache server is installed now, it can be used as a service. To turn it on or off,
go to “c:apachebin” directory and run Apache monitor or open windows services as
explained in previous slides and run apache from there.
PHP DOWNLOAD
You can download latest version of php from
http://windows.php.net/download
Go below and you will find achieve.
Select VC11 PHP package of PHP win32 or win64 depending on version of
your operating system as shown in picture in next slide.
1
2
OR
PHP INSTALLATION
Extract your php and copy folder to “c:/” C Drive. Now rename PHP directory
to “php” without quotations.
Path to php directory now, should look like “c:/php” without quotations.
Now go to c:php and rename the file “php.ini-recommended” to “php.ini”
without quotations
Now edit php.ini and find “doc_root” without quotations and replace with
doc_root = “c:/apache/htdocs”
PHP INSTALLATION
Now find extension_dir = “ext”, remove “;” before it and replace it with
extension_dir = “c:/php/ext”
Go to c:apacheconf directory now and open “httpd.conf” file. Paste below
content at the very end of the httpd.conf file
LoadModule php5_module “c:/php/php5apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir “c:/php"
FINISHING INSTALLATION
If you want to test that your configuration is correct. Go to cmd and type a
command
httpd –t
This will show you “Syntax ok” without quotations if your configuration is
correct. Otherwise errors will be shown in cmd.
Now restart apache server and run a php script.

More Related Content

What's hot

Installation of Joomla on Windows XP
Installation of Joomla on Windows XPInstallation of Joomla on Windows XP
Installation of Joomla on Windows XPRupesh Kumar
 
Ilias 4 # clients - On shared hosting with cPanel
Ilias 4 # clients - On shared hosting with cPanelIlias 4 # clients - On shared hosting with cPanel
Ilias 4 # clients - On shared hosting with cPanelleer_thuiz_com
 
Install Word Press with xampp
Install Word Press with xamppInstall Word Press with xampp
Install Word Press with xamppMehdi Sharifirad
 
How to configure PHP with IIS or Apache on Windows
How to configure PHP with IIS or Apache on WindowsHow to configure PHP with IIS or Apache on Windows
How to configure PHP with IIS or Apache on WindowsRizban Ahmad
 
Word press & dreamweaver
Word press & dreamweaverWord press & dreamweaver
Word press & dreamweaverkmawk
 
How to develope plugin in wordpress: 6 simple steps.
How to develope plugin in wordpress: 6 simple steps.How to develope plugin in wordpress: 6 simple steps.
How to develope plugin in wordpress: 6 simple steps.Jay Bharat
 
Python/Flask Presentation
Python/Flask PresentationPython/Flask Presentation
Python/Flask PresentationParag Mujumdar
 
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress ThemesPhilip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress ThemesPhilip Arthur Moore
 
Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1vijayraghav
 
First Pages HTML ASP-ASP.NET
First Pages HTML ASP-ASP.NETFirst Pages HTML ASP-ASP.NET
First Pages HTML ASP-ASP.NETsunmitraeducation
 
Installing joomla on localhost
Installing joomla on localhostInstalling joomla on localhost
Installing joomla on localhostArnel Robles
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSffats1
 

What's hot (19)

Installation of Joomla on Windows XP
Installation of Joomla on Windows XPInstallation of Joomla on Windows XP
Installation of Joomla on Windows XP
 
Ilias 4 # clients - On shared hosting with cPanel
Ilias 4 # clients - On shared hosting with cPanelIlias 4 # clients - On shared hosting with cPanel
Ilias 4 # clients - On shared hosting with cPanel
 
Laravel 5.3 - Web Development Php framework
Laravel 5.3 - Web Development Php frameworkLaravel 5.3 - Web Development Php framework
Laravel 5.3 - Web Development Php framework
 
Install Word Press with xampp
Install Word Press with xamppInstall Word Press with xampp
Install Word Press with xampp
 
Laravel 6 and its features
Laravel 6 and its featuresLaravel 6 and its features
Laravel 6 and its features
 
How to configure PHP with IIS or Apache on Windows
How to configure PHP with IIS or Apache on WindowsHow to configure PHP with IIS or Apache on Windows
How to configure PHP with IIS or Apache on Windows
 
phpTutorial1
phpTutorial1phpTutorial1
phpTutorial1
 
Word press & dreamweaver
Word press & dreamweaverWord press & dreamweaver
Word press & dreamweaver
 
How to develope plugin in wordpress: 6 simple steps.
How to develope plugin in wordpress: 6 simple steps.How to develope plugin in wordpress: 6 simple steps.
How to develope plugin in wordpress: 6 simple steps.
 
User Guide
User GuideUser Guide
User Guide
 
Python/Flask Presentation
Python/Flask PresentationPython/Flask Presentation
Python/Flask Presentation
 
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress ThemesPhilip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
 
Mc sl54 051_ (1)
Mc sl54 051_ (1)Mc sl54 051_ (1)
Mc sl54 051_ (1)
 
Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
First Pages HTML ASP-ASP.NET
First Pages HTML ASP-ASP.NETFirst Pages HTML ASP-ASP.NET
First Pages HTML ASP-ASP.NET
 
Php introduction
Php introductionPhp introduction
Php introduction
 
Installing joomla on localhost
Installing joomla on localhostInstalling joomla on localhost
Installing joomla on localhost
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
 

Similar to Installing apache and php

Similar to Installing apache and php (20)

Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
Diva23
Diva23Diva23
Diva23
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
25_26 (1).pptx
25_26 (1).pptx25_26 (1).pptx
25_26 (1).pptx
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Installing Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu InstanceInstalling Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu Instance
 
Appache.ppt
Appache.pptAppache.ppt
Appache.ppt
 
Appache.ppt
Appache.pptAppache.ppt
Appache.ppt
 
VIKRAM
VIKRAMVIKRAM
VIKRAM
 
Installing Hortonworks Hadoop for Windows
Installing Hortonworks Hadoop for WindowsInstalling Hortonworks Hadoop for Windows
Installing Hortonworks Hadoop for Windows
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Editing Wordpress in Dreamweaver
Editing Wordpress in DreamweaverEditing Wordpress in Dreamweaver
Editing Wordpress in Dreamweaver
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 

Recently uploaded

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 

Recently uploaded (20)

4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 

Installing apache and php

  • 1. INSTALLING APACHE AND PHP MANUAL INSTALLATION By: Abdullah Khokhar
  • 3. APACHE DOWNLOAD You can download latest version of apache from http://www.apachelounge.com/download/ Select VC11 from left menu. Then you have to install visual c++ distribution and apache win32 or win64 depending on version of your operating system as shown in picture in next slide.
  • 4. APACHE DOWNLOAD OR Visual C++ Distribution Apache 64-Bit Apache 32-Bit
  • 5. APACHE INSTALLATION Extract your apache and copy folder named Apache24 or similar named. And paste it in “c:” C Drive. Now rename Apache directory to “apache” without quotations. Path to apache directory now, should look like “c:apache” without quotations. Now go to c:apacheconf and open httpd.conf Find “c:/Apache24” without quotations and replace all of them with “c:/apache” without quotations. Now Find “ServerName” without quotations in httpd.conf and remove # before it and replace ServerName www.example.com:80 With ServerName localhost:80
  • 6. APACHE INSTALLATION Go to Start menu and run cmd (command prompt) as an administrator Run following commands in cmd: cd/ cd apache/bin Now you will have c:apachebin in your cmd Run “httpd.exe” without quotations in cmd and apache will run as an application but we need to run it as a service. So press “ctrl c” from your keyboard to stop apache.
  • 7. APACHE INSTALLATION Go to control panel and search services or find “view local services” in control panel and find the apache service from the list. It should not be installed at the moment. Now, Right click on my computer and select properties, go to “Advanced System Settings” menu, a window will appear then. Below in the window you will find “Environmental Variables” click that. And follow the steps shown in figure on next slide
  • 9. 5 4 6 Add below in textfield: ;c:apachebin
  • 10. APACHE INSTALLATION Close cmd and open again as administrator. Now you can access “httpd.exe” any location you are. No need to go to “c:apachebin”. Run below command in cmd httpd –k install This will install apache as a service in windows services, to uninstall it you have command httpd –k uninstall Your apache server is installed now, it can be used as a service. To turn it on or off, go to “c:apachebin” directory and run Apache monitor or open windows services as explained in previous slides and run apache from there.
  • 11. PHP DOWNLOAD You can download latest version of php from http://windows.php.net/download Go below and you will find achieve. Select VC11 PHP package of PHP win32 or win64 depending on version of your operating system as shown in picture in next slide.
  • 12. 1
  • 13. 2 OR
  • 14. PHP INSTALLATION Extract your php and copy folder to “c:/” C Drive. Now rename PHP directory to “php” without quotations. Path to php directory now, should look like “c:/php” without quotations. Now go to c:php and rename the file “php.ini-recommended” to “php.ini” without quotations Now edit php.ini and find “doc_root” without quotations and replace with doc_root = “c:/apache/htdocs”
  • 15. PHP INSTALLATION Now find extension_dir = “ext”, remove “;” before it and replace it with extension_dir = “c:/php/ext” Go to c:apacheconf directory now and open “httpd.conf” file. Paste below content at the very end of the httpd.conf file LoadModule php5_module “c:/php/php5apache2_4.dll" AddType application/x-httpd-php .php PHPIniDir “c:/php"
  • 16. FINISHING INSTALLATION If you want to test that your configuration is correct. Go to cmd and type a command httpd –t This will show you “Syntax ok” without quotations if your configuration is correct. Otherwise errors will be shown in cmd. Now restart apache server and run a php script.