LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-14-2006, 02:22 AM   #1
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Rep: Reputation: 15
Apache2 doesnt do anything (debian 3.1)


Hi!

Yesterday i wanted to install the Apache2 which comes with the standart Debian 3.1a Sarge CD.
I did a "apt-get install apache2-common" which happyly installed everything. When i did "/etc/init.d/apache2 start" in kosnole, NOTHING happend. Not a single output to konsole nor a process started (tried with ps -ax).

What is wrong? I havent configured anything, so its all at a default level.

Thx
 
Old 07-14-2006, 04:19 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 31
what does /var/log/syslog , /var/log/apache2/error.log say
when you run #dpkg --list | grep apache
does it state that 'apache2' is installed?
 
Old 07-14-2006, 04:26 AM   #3
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Thx

I'm gonna try that today when i get home.
Any other tips?
 
Old 07-14-2006, 07:56 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 31
yeah, check the init script and see what causes it to exit with no output :-)
 
Old 07-15-2006, 05:42 AM   #5
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Original Poster
Rep: Reputation: 15
I'm back.
Well i stated the Apache again with "/etc/init.d/apache2 start" after that i checked Apache2s error Log, but there was nothing in it. Then I checkd the system log, and Apache2 was not mentioned.
dpkg --list | grep apache shows that apache2-common and apache2-utils are indeed installed. What tha heck? Is there a special way to install it?

Thanks
 
Old 07-15-2006, 08:54 AM   #6
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 31
apt-get install apache2
try that command :-)
 
Old 07-15-2006, 11:43 AM   #7
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Well, where i am right now, i dont have internet. (My grandparents arent that up-to-date ) But Apache is on the CD! So the I have /media/cdrom0 in my sources and it installs the pakages which are on the CD. I and did exactly that: apt-get install apache2. And it installed happily and made all the folder and files it needed.

Now i am thinking of doing the following: as the rig is un-updated, i could just pop in the CD, re-install Debian over the root-partition and choose: Webserver in the pakage configuration. My /home is on a separate partition, so i dont loose anything.

I'm gonna report back tomorrow.

[EDIT]

Ok, went the radical way: removed apache2-common and apache2-utils and compiled it all. And it works! Great!

Last edited by DodoTux; 07-18-2006 at 03:49 AM.
 
Old 07-19-2006, 05:37 AM   #8
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 31
well done sir :-)
 
Old 07-25-2006, 08:17 AM   #9
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Well, once again I'm having problems.
As i said before, compiled apache2 with "--prefix=/usr/local/apache2", so that all it's folders end up in usr/local/apache2. Now, i made i new folder in /htdoc/ named "online", in this i've placed another folder called "music", which contains MP3-Files and is supposed to be "auto-indexed". In the httpd.conf i placed some lines to add icons, but it cant find them. httpd.conf ist one "above" the ./apache2 folder, so i thought i had to point the icons and errors to "../icons/ and "../error", but this doesnt work. The only way to get the icons working was to create a simlink von "downloads" to /usr/local/apache2/icons, which sux.

After reading this complex text, do you have any ideas?
 
Old 07-25-2006, 08:33 AM   #10
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 31
post your apache config....
that might help us to help you
 
Old 07-27-2006, 07:45 AM   #11
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Well, my last post was...crapy... so here i go again:
The folder strukture is easy: everything is in /usr/local/apache2 .. there is a subfolder in ./htdocs/ called /kap4/ with another subfolder ./downloads/.

Here is the httpd.conf
Code:
# Globale Umgebung

ServerRoot	"/usr/local/apache2"
PidFile		/var/run/http.pid

#Hauptserverkonfiguration
ServerName 	localhost
Listen		80
User		nobody
Group		#-1
DocumentRoot	"/usr/local/apache2/htdocs/kap4"
IndexOptions	FancyIndexing	IconsAreLinks	NameWidth=*

#Icons Settings

AddIconByType	(SND,/.icons/sound1.gif)  audio/*
AddIcon		/.icons/sound1.gif	*.ogg
AddIcon		/.icons/folder.gif	^^DIRECTORY^^
DefaultIcon 	/.icons/unknown.png
ReadmeName	../readme.html
HeaderName	../header.html
#ERROR Setting

ErrorDocument	404	404.html
This is just for learining and testing, so dont bother about the simplistic content.

PS: to get the Icons working I placed a symlink called ./icons/ in the folder ./kap4/ pointing to /usr/local/apache2/icons/

Last edited by DodoTux; 07-27-2006 at 08:50 AM.
 
Old 07-27-2006, 08:19 AM   #12
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 31
try adding double quotes at the end of the documentroot line!!!
 
Old 07-27-2006, 08:50 AM   #13
DodoTux
LQ Newbie
 
Registered: Mar 2006
Location: Nairobi, Kenya
Distribution: Zenwalk4.0
Posts: 27

Original Poster
Rep: Reputation: 15
They are probably there, but i just "cut" them out copy-paste'ing them from Linux to windows and then removing the little squares. But I will check on that.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
whats up with apache2 and php on debian? scuzzo84 Debian 2 01-16-2006 11:30 AM
Apache2 and php4 in Debian swmok Debian 1 06-09-2005 05:21 PM
debian + apache2 alaios Debian 2 05-31-2005 05:05 AM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 09:35 AM
Debian, apache2 and php4 Pasi Linux - Distributions 1 03-20-2003 07:28 PM


All times are GMT -5. The time now is 12:58 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration