Solved

Where is it installed?

Posted on 2007-11-28
6
224 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
  • 3
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 250 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 50 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 40

Assisted Solution

by:evilrix
evilrix earned 250 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php ssh2_scp_send 1 61
wipe a usb using python 5 48
curl SSL certificate unable to get local issuer certificate 15 72
Run same command on multiple files in Linux 3 34
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

831 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