Author Topic: Apache 2.2.24 installation on Linux  (Read 5315 times)

0 Members and 1 Guest are viewing this topic.

Offline Chandru4u

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Apache 2.2.24 installation on Linux
« on: July 12, 2013, 03:26:24 pm »
Hi All,

Hope you all are doing good.

I was trying to instal Apache HTTP server 2.2.24 on Linux.
I used the following command to instal it:

$ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar
$ cd httpd-NN
$ ./configure --prefix=PREFIX 
$ make 
$ make install 
$ PREFIX/bin/apachectl -k start 

NN must be replaced with the current version number, and PREFIX must be replaced with the filesystem path under which the server should be installed.

I could install it without any errors.

But under serverFolder/Modules I cant see any modules (*.so files)
and also, the modules are not loaded from httpd.conf(ServerFolder/conf/httpd.conf) file ( LoadModule lines)

I started the server, and when I tried opening the start page by host:port, it is throwing me the error:
"Forbidden You don't have permission to access / on this server"

I am not sure, it is an installation issue or some permission issue post installation.

Can you please let me know what must be going wrong here.

Thanks in advance
Chandru

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1831
  • Karma: 141
  • Gender: Male
    • View Profile
    • Awards
Re: Apache 2.2.24 installation on Linux
« Reply #1 on: July 12, 2013, 08:43:45 pm »
Hi and velcome to the forum.

Any particular reason for compiling it from source?
Version 2.2.22 is in the Debian 7 repos. There could be later versions in other distros, with the advantage of using the package manager to install it.
What distro are you using?

Offline Chandru4u

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Apache 2.2.24 installation on Linux
« Reply #2 on: July 15, 2013, 09:03:15 am »
Hi Sezo,

Thanks for the reply.
I compiled it again as part of standard steps provided by Apache.
http://httpd.apache.org/docs/2.2/install.html

I followed the above link for unstallation.

I am not sure which distribution it is.
I tried instllation using root user as well, but ended up with the same problem.

Thanks & Regards
Chandru

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18176
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Apache 2.2.24 installation on Linux
« Reply #3 on: July 15, 2013, 12:50:35 pm »
Let's see if we can work out which distro/version you're using.

Can you post the output from:
Code: [Select]
cat /etc/*release
and
Code: [Select]
lsb_release -a

is apache2 running?:
Code: [Select]
ps aux | grep apache

What happens if you open a browser on the websever, and navigate to:
Code: [Select]
http://localhost/
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal