LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-02-2011, 03:59 PM   #1
Acid_1
LQ Newbie
 
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Help setting up Apache 2.3


Hey!

So I had a server running Debian testing and an update borked my Apache 2.0 server.

So after several hours of config edits, changes, and WTF?!?!'s I decided to remove it (Via Apt). I then downloaded the source from apache's site and did the whole ./configure, make, make test, make install, and that's all done now.

But I have no idea past this right now to get my server up and running. Here's my site

http://www.forkwhilefork.org

I have a 2wire router, setup so that the server has no firewall on it. There is no UFW installed on my Debian machine either. I'm running kernel 2.6.32 right now.

When I localhost on my machine it goes to the site, but when I enter the IP of the machine on a different PC on the same LAN, it won't show up. When navigated to on a machine not on the LAN, I get a 502.

Any ideas where to go? I'm stumped. Thanks
 
Old 02-02-2011, 04:26 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
Hi and welcome to LQ,

Run:
Code:
netstat -tapl|grep httpd
to see if apache runs and listens on the local loopback interface or not.
You can also post httpd.conf, so we can take a look for errors
 
Old 02-02-2011, 04:38 PM   #3
Acid_1
LQ Newbie
 
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
This is the output of netstat

Code:
media@debian:~$ netstat -tapl|grep httpd
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
media@debian:~$ sudo netstat -tapl|grep httpd
[sudo] password for media: 
media@debian:~$
When I had been trying to purge the Apache install, I had removed the configs and all that (after an apt-get remove --purge apache2). I just did an updatedb && locate httpd.conf and the results were as follows

Code:
media@debian:~$ sudo updatedb
[sudo] password for media: 
media@debian:~$ locate httpd.conf
/etc/javascript-common/lighttpd.conf
/home/media/Desktop/httpd-2.3.10/docs/conf/httpd.conf.in
/home/media/Desktop/httpd-2.3.10/modules/lua/test/test_httpd.conf
media@debian:~$
Also, my envvars directory is empty.

Last edited by Acid_1; 02-02-2011 at 04:44 PM. Reason: Additional information
 
Old 02-02-2011, 04:50 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
Looks like apache is not running.
What options did you use for the ./configure script?
 
Old 02-02-2011, 04:52 PM   #5
Acid_1
LQ Newbie
 
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
I just cd'd to the directory and ran ./configure as it was without any additional options.
 
Old 02-02-2011, 05:03 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
So apache should be installed under /usr/local/apache2 and the config file should be located in /usr/local/apache2/etc/httpd.conf
If it doesn't exist I guess there was something wrong in the installation.
Are you sure that ./configure, make and sudo make install, all finished without errors?
 
Old 02-02-2011, 05:06 PM   #7
Acid_1
LQ Newbie
 
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Without any at all.

Before I compiled Apache that if I reinstalled through apt the configs would be back, but they're not, which was why I resorted to the source. I was hoping it would add them back. *sigh*
 
Old 02-02-2011, 05:26 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
No errors? Then there should be a /usr/local/apache2 directory where apache is installed by default
I'm not a debian savvy, but I guess running:
Code:
sudo apt-get install apache2
will install apache along with its default config files.
 
Old 02-02-2011, 05:32 PM   #9
Acid_1
LQ Newbie
 
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Done, but no dice. I've tried it before but I gave it another shot, here's the output.

Code:
media@debian:~$ sudo apt-get install apache2
[sudo] password for media: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  apache2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,380 B of archives.
After this operation, 36.9 kB of additional disk space will be used.
Get:1 ftp://ftp.us.debian.org/debian/ sid/main apache2 i386 2.2.16-6 [1,380 B]
Fetched 1,380 B in 1s (1,084 B/s)
Selecting previously deselected package apache2.
(Reading database ... 188541 files and directories currently installed.)
Unpacking apache2 (from .../apache2_2.2.16-6_i386.deb) ...
Setting up apache2 (2.2.16-6) ...
media@debian:~$ sudo updatedb
[sudo] password for media: 
media@debian:~$ locate httpd.conf
/etc/javascript-common/lighttpd.conf
/home/media/Desktop/httpd-2.3.10/docs/conf/httpd.conf.in
/home/media/Desktop/httpd-2.3.10/modules/lua/test/test_httpd.conf
media@debian:~$ man apt
media@debian:~$ man apt-cache
media@debian:~$ locate envvars
/etc/apache2/envvars
/home/media/Desktop/httpd-2.3.10/support/envvars-std.in
/usr/share/apache2/build/envvars-std
media@debian:~$ ls /etc/apache2/envvars/
media@debian:~$
 
Old 02-02-2011, 05:59 PM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
Note that the apache configuration file in debian, is /etc/apache2/apache2.conf
 
Old 02-02-2011, 06:04 PM   #11
Acid_1
LQ Newbie
 
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Indeed it is, but here the are contents,

Code:
envvars  mods-available
and envvars is empty. My apache.conf and httpd.conf used to be in there.

Those were the file I was talking about that I removed in hopes that a reinstall would replace them.

Last edited by Acid_1; 02-02-2011 at 06:05 PM.
 
Old 02-02-2011, 06:15 PM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
Blog Entries: 1

Rep: Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070Reputation: 2070
As I told you I don't use debian, but after a little searching I found this post, that could be helpful

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up apache from scratch on a linux machine, apache failed message upon bootup dramous43 Linux - Enterprise 2 01-26-2010 08:53 AM
Setting Up Apache? your_shadow03 Linux - Server 7 02-18-2009 08:43 AM
setting setting umask for apache user only....how?..plz help mickyman Linux - General 0 05-08-2006 05:37 AM
Setting up apache arrruken Linux - Networking 2 01-09-2004 06:02 PM
Setting up apache... another one mattbuechler Linux - Software 3 07-02-2003 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration