Solved

Where is it installed?

Posted on 2007-11-28
6
228 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 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

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). #…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.
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.

733 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