Solved

Where is it installed?

Posted on 2007-11-28
6
226 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 108
ftp to port 21 4 54
winscp where are logs stored 3 52
LogmeIn using Linux Ubuntu 16.04 6 63
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

829 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