Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-02-2011, 03:59 PM
|
#1
|
LQ Newbie
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6
Rep:
|
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
|
|
|
02-02-2011, 04:26 PM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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
|
|
|
02-02-2011, 04:38 PM
|
#3
|
LQ Newbie
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6
Original Poster
Rep:
|
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
|
|
|
02-02-2011, 04:50 PM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Looks like apache is not running.
What options did you use for the ./configure script?
|
|
|
02-02-2011, 04:52 PM
|
#5
|
LQ Newbie
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6
Original Poster
Rep:
|
I just cd'd to the directory and ran ./configure as it was without any additional options.
|
|
|
02-02-2011, 05:03 PM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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?
|
|
|
02-02-2011, 05:06 PM
|
#7
|
LQ Newbie
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6
Original Poster
Rep:
|
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*
|
|
|
02-02-2011, 05:26 PM
|
#8
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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.
|
|
|
02-02-2011, 05:32 PM
|
#9
|
LQ Newbie
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6
Original Poster
Rep:
|
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:~$
|
|
|
02-02-2011, 05:59 PM
|
#10
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Note that the apache configuration file in debian, is /etc/apache2/apache2.conf
|
|
|
02-02-2011, 06:04 PM
|
#11
|
LQ Newbie
Registered: Feb 2011
Location: Saskatchewan, Canada
Distribution: Debian
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
02-02-2011, 06:15 PM
|
#12
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
As I told you I don't use debian, but after a little searching I found this post, that could be helpful
Regards
|
|
|
All times are GMT -5. The time now is 07:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|