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

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

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.