?
Solved

Where is it installed?

Posted on 2007-11-28
6
Medium Priority
?
235 Views
Last Modified: 2013-12-15
Hello group,

I'm using a machine that is not mine so I need to know:

1)  how can I find out where Apache is installed? is there any standard method?

I did:

$locate apache

but it wasn't helpful. Also, I have to change


2) when I'm trying to get to  http:/123.123.123.123/Dir1/Dir2/some.html

I get  ""Permission denied"  error.log, since the User in Apache setting file (/etc/httpd/conf) is:
User apahce
Group apache

What should I do? should I change the permission? or there is a work around?

Regards,
ak


0
Comment
Question by:akohan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 1000 total points
ID: 20369066
Assuming it is running you could try ps ax | grep apache, which will list the running processes and should include their full path: -

~$ ps ax | grep apache
17527 ?        Ss     0:00 /usr/sbin/apache2 -k start
17528 ?        S      0:00 /usr/sbin/apache2 -k start
17529 ?        Sl     0:00 /usr/sbin/apache2 -k start
17533 ?        Sl     0:00 /usr/sbin/apache2 -k start
0
 
LVL 17

Assisted Solution

by:jasonsbytes
jasonsbytes earned 200 total points
ID: 20370222
if it's not running and assuming you have root access or sudo:

find / -type f | grep -E 'apache|httpd' 2>/dev/null
0
 

Author Comment

by:akohan
ID: 20370729

That's right since they have changed it from apache to httpd so when I ran the ps command it didn't show apache process but when I use:
ps ax | grep httpd

it works fine. However, it is RIGHT.



0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 40

Assisted Solution

by:evilrix
evilrix earned 1000 total points
ID: 20371971
Depending upon the distro used the package manage may be able to give you more info. For example, on a Debian based distro you could try: -

dpkg-query -l PACKAGE

to see if it's installed

dpkg-query -L PACKAGE

to list the package contents

On RedHat try: -

rpm -qa | grep PACKAGE

to see if it's installed

rpm -qil PACKAGE

to list the package contents

NB. Substitute PACKAGE for the name of the package you are looking for
0
 

Author Comment

by:akohan
ID: 20376014


Thanks for your comment and helping me.

Regards,
ak
0
 
LVL 40

Expert Comment

by:evilrix
ID: 20376031
You are very welcome.
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question