SlideShare a Scribd company logo
Run apache2.2 at the command-line, instead of as a service. 
1. Open the services tab by typing "services.msc" without quotes (start - run) and select 
the startup type "Automatic". 
2. Click on the recovery tab and from the dropdown select "restart the service" for all the 
three options listed i.e., first failure, second failure and subsequent failures. Type "1" in 
restart service after. Restart fail count after should be blank. 
3. Restart the machine and the above 2 steps should help in restarting apache 2.2 
Stopping the apache 2.2 Service. 
1. Stop the apache services from services.msc 
2. Once it is stopped examine the system logs. Right click on "My Computer" under it an 
item "system" and under it an item "event logs". Expand the sub folder "system". You 
will messages with timestamps. By double clicking on one item you will see the full 
message. Find out when apache 2.2 stops and look around the time and the error 
message. 
3. Sometimes the apache server stops because something else is on the same port as 
apache 2.2. The server port for apache is 80. 
4. Type the command "netstat -noa" without quotes in the command line (start - run - 
cmd). This will display all the services and the ports on the machine. 
-a (displays all connections and listening ports) 
-n (displays addresses and port numbers in numberical form) 
-o (displays the owing process ID associated with each connection)
5. Stop the services in the task manager once you have know the services that are 
running on port 80. 
6. Restart the apache services. Restarting apache 2.2 instructions and given above. 
Software running on Port 80 
Type the command "netstat -o" without quotes in the command line (start - run - cmd). 
This will output a list of ports, along with the PID (process ID) that has the port open. 
The PID for apache 2.2 is 4116 
To determine what executable is running as a process ID, Open windows task manager 
and switch to the processes tab. Click on view - select columns. On the screen that 
opens, make sure "PID (Process Identifier)" is checked and then click OK. Now click on 
the PID heading to sort the entries by PID. 
Editing the Windows Registry. 
To do this, follow these steps: 
1. Edit the windows registry with the "Registry Editor". Click on start - run - regedit. Be 
careful not to change any value, because editing the registry is potentially dangerous. 
2. This looks like an Explorer window. On the left side, you will see a structure, much 
like a directory structure. Find the key "HKEY_LOCAL_MACHINE", expand it, and keep 
doing this following the following path: System - CurrentControlSet - Services - 
Apache2.2 
3. When you click on the Apache key, then in the right panel you will see a series of 
key/value things. One of the keys is "ImagePath". Double-click on it, and it will open a 
dialog box.
4. Now make sure that you do not change the value. Just copy it with then cancel and 
exit the Registry Editor. What you have copied, is the command line command that 
starts apache2.2. 
5. Open Notepad, and paste the command there, you will need it later. 
6. Stop the apache2.2 service if it is running. 
7. Open a command window again, and paste the command that you have copied 
before. (If the command contains a parameter like "//RS....", remove this parameter). 
When you type the return key, this command will be executed, and this will run 
apache2.2 in your command window. If you type CTRL-C, apache2.2 will stop. For the 
users, it will be exactly the same as if apache2.2 was running as a service. But for you, 
you will see on the screen any error messages apache2.2 prints. The difference is that 
now apache2.2 runs under the user-id under which you are logged-in on this machine. 
So, let it run until it dies, and let's see if you get any error message. Note that you 
cannot logoff from the machine, or of course apache2.2 will die. 
Executing Apache 2.2. 
1. Apache 2.2 can be executed from the run command. Type the command "C:Program 
Files (x86)OTRSApachebinhttpd.exe" -k runservice and save the command in a 
notepad. This command is located under services - apache 2.2 and copy from path to 
executable. The command differs from one machine to another. 
2. Click file - save as and in the file name type "apache.bat" and save as type "all files". 
3. This command will execute apache 2.2 and start the services. 
4. Restart the web server.
Updating Java Version 
1. Download the new version of java from http://java.com/en/download/index.jsp 
2. The latest version as of 23rd May 2012 is Version 7 Update 21. 
3. Restart the webserver once you have successfully installed the new java version.

More Related Content

PDF
Ten mistakes functional java
PPTX
Sitecore - Deep drive into the Sitecore Client pipelines
RTF
appledoc_style
PPTX
Async pattern
DOC
Syed Vali Resume
PDF
De Mensajería hacia Logs con Apache Kafka
DOC
PPTX
Troubleshooting Apache CloudStack at #ccceu14 by @jorizvl
Ten mistakes functional java
Sitecore - Deep drive into the Sitecore Client pipelines
appledoc_style
Async pattern
Syed Vali Resume
De Mensajería hacia Logs con Apache Kafka
Troubleshooting Apache CloudStack at #ccceu14 by @jorizvl

Viewers also liked (20)

PDF
PDF
WebLogic on ODA - Oracle Open World 2013
ODP
Apache logs monitoring
PPTX
ApacheCon-HBase-2016
PPTX
WebLogic Filtering ClassLoader and ClassLoader Analysis Tool Demo
PDF
WebLogic in Practice: SSL Configuration
PDF
SOA Suite 12c Customer implementation
PPT
Web Server(Apache),
PPT
WebLogic Performance on SOLARIS SPARC Servers
PDF
Weblogic Cluster advanced performance tuning
DOC
weblogic perfomence tuning
PDF
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
PDF
Oracle Fusion Middleware Infrastructure Best Practices
PDF
Performance Tuning Oracle Weblogic Server 12c
PPT
WebLogic Developer Webcast 5: Troubleshooting and Testing with WebLogic, Soap...
PDF
How To Install and Configure Apache SSL on CentOS 7
PPT
WebLogic Deployment Plan Example
DOCX
Soumika wls Resume
PDF
Learn Oracle WebLogic Server 12c Administration
PDF
Oracle Web Logic server
WebLogic on ODA - Oracle Open World 2013
Apache logs monitoring
ApacheCon-HBase-2016
WebLogic Filtering ClassLoader and ClassLoader Analysis Tool Demo
WebLogic in Practice: SSL Configuration
SOA Suite 12c Customer implementation
Web Server(Apache),
WebLogic Performance on SOLARIS SPARC Servers
Weblogic Cluster advanced performance tuning
weblogic perfomence tuning
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
Oracle Fusion Middleware Infrastructure Best Practices
Performance Tuning Oracle Weblogic Server 12c
WebLogic Developer Webcast 5: Troubleshooting and Testing with WebLogic, Soap...
How To Install and Configure Apache SSL on CentOS 7
WebLogic Deployment Plan Example
Soumika wls Resume
Learn Oracle WebLogic Server 12c Administration
Oracle Web Logic server
Ad

Similar to Troubleshooting guide for apache 2.2 service. (20)

PDF
Privileges Escalation by Exploiting Client-Side Vulnerabilities Using Metasploit
DOCX
"PHP from soup to nuts" -- lab exercises
PPT
Mantis Installation for Windows Box
PPT
Mantis Installation for Windows Box
DOCX
Installation of oracle 12c RAC on linux vm
PDF
instaling
PDF
instaling
PDF
instaling
PDF
instaling
PPTX
20 Windows Tools Every SysAdmin Should Know
ODT
Lamp instal
PDF
maXbox Starter 42 Multiprocessing Programming
PPTX
Windows Incident Response CheatSheet.pptx
PPTX
PHP-MySQL Database Connectivity Using XAMPP Server
DOCX
P3.docx
PPT
Installation of Joomla on Windows XP
DOCX
Malware Final Report
PPTX
Learn awesome hacking tricks
PDF
Clustering Manual for Parallel Computing
DOCX
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Privileges Escalation by Exploiting Client-Side Vulnerabilities Using Metasploit
"PHP from soup to nuts" -- lab exercises
Mantis Installation for Windows Box
Mantis Installation for Windows Box
Installation of oracle 12c RAC on linux vm
instaling
instaling
instaling
instaling
20 Windows Tools Every SysAdmin Should Know
Lamp instal
maXbox Starter 42 Multiprocessing Programming
Windows Incident Response CheatSheet.pptx
PHP-MySQL Database Connectivity Using XAMPP Server
P3.docx
Installation of Joomla on Windows XP
Malware Final Report
Learn awesome hacking tricks
Clustering Manual for Parallel Computing
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Ad

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
KodekX | Application Modernization Development
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Per capita expenditure prediction using model stacking based on satellite ima...
Programs and apps: productivity, graphics, security and other tools
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf

Troubleshooting guide for apache 2.2 service.

  • 1. Run apache2.2 at the command-line, instead of as a service. 1. Open the services tab by typing "services.msc" without quotes (start - run) and select the startup type "Automatic". 2. Click on the recovery tab and from the dropdown select "restart the service" for all the three options listed i.e., first failure, second failure and subsequent failures. Type "1" in restart service after. Restart fail count after should be blank. 3. Restart the machine and the above 2 steps should help in restarting apache 2.2 Stopping the apache 2.2 Service. 1. Stop the apache services from services.msc 2. Once it is stopped examine the system logs. Right click on "My Computer" under it an item "system" and under it an item "event logs". Expand the sub folder "system". You will messages with timestamps. By double clicking on one item you will see the full message. Find out when apache 2.2 stops and look around the time and the error message. 3. Sometimes the apache server stops because something else is on the same port as apache 2.2. The server port for apache is 80. 4. Type the command "netstat -noa" without quotes in the command line (start - run - cmd). This will display all the services and the ports on the machine. -a (displays all connections and listening ports) -n (displays addresses and port numbers in numberical form) -o (displays the owing process ID associated with each connection)
  • 2. 5. Stop the services in the task manager once you have know the services that are running on port 80. 6. Restart the apache services. Restarting apache 2.2 instructions and given above. Software running on Port 80 Type the command "netstat -o" without quotes in the command line (start - run - cmd). This will output a list of ports, along with the PID (process ID) that has the port open. The PID for apache 2.2 is 4116 To determine what executable is running as a process ID, Open windows task manager and switch to the processes tab. Click on view - select columns. On the screen that opens, make sure "PID (Process Identifier)" is checked and then click OK. Now click on the PID heading to sort the entries by PID. Editing the Windows Registry. To do this, follow these steps: 1. Edit the windows registry with the "Registry Editor". Click on start - run - regedit. Be careful not to change any value, because editing the registry is potentially dangerous. 2. This looks like an Explorer window. On the left side, you will see a structure, much like a directory structure. Find the key "HKEY_LOCAL_MACHINE", expand it, and keep doing this following the following path: System - CurrentControlSet - Services - Apache2.2 3. When you click on the Apache key, then in the right panel you will see a series of key/value things. One of the keys is "ImagePath". Double-click on it, and it will open a dialog box.
  • 3. 4. Now make sure that you do not change the value. Just copy it with then cancel and exit the Registry Editor. What you have copied, is the command line command that starts apache2.2. 5. Open Notepad, and paste the command there, you will need it later. 6. Stop the apache2.2 service if it is running. 7. Open a command window again, and paste the command that you have copied before. (If the command contains a parameter like "//RS....", remove this parameter). When you type the return key, this command will be executed, and this will run apache2.2 in your command window. If you type CTRL-C, apache2.2 will stop. For the users, it will be exactly the same as if apache2.2 was running as a service. But for you, you will see on the screen any error messages apache2.2 prints. The difference is that now apache2.2 runs under the user-id under which you are logged-in on this machine. So, let it run until it dies, and let's see if you get any error message. Note that you cannot logoff from the machine, or of course apache2.2 will die. Executing Apache 2.2. 1. Apache 2.2 can be executed from the run command. Type the command "C:Program Files (x86)OTRSApachebinhttpd.exe" -k runservice and save the command in a notepad. This command is located under services - apache 2.2 and copy from path to executable. The command differs from one machine to another. 2. Click file - save as and in the file name type "apache.bat" and save as type "all files". 3. This command will execute apache 2.2 and start the services. 4. Restart the web server.
  • 4. Updating Java Version 1. Download the new version of java from http://java.com/en/download/index.jsp 2. The latest version as of 23rd May 2012 is Version 7 Update 21. 3. Restart the webserver once you have successfully installed the new java version.