LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2003, 07:34 AM   #1
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Rep: Reputation: 0
Unhappy Can't start Apache on my Suse 8.1 pro LTSP server


Ok, I am a .

I get the following error on my Suse 8.1 pro box when I try to start Apache (1.3) .

Code:
/etc/rc.d/apache start returned 7 (Program is not running.)
Starting httpd [ PHP4 ] Apache/1.3.26 stty: standard input: Inappropriate ioctl for device
..failed
Actually it's in dutch , but this error message is what I have seen in a google search for the solution. (wich I haven't found).
I also have to tell you guys that I run my server successfully as an LTSP terminal server. (http://www.ltsp.org). Therefore I have two network cards (are configured correctly) One is a link to a router , internet and windows boxes (192.168.x.x). The other card is serving a subnet (10.0.0.x) of Linux terminals.

I don't know if this has something to do with it (I wan't Apache listening for requests on both interfaces.) I know about Comanche as a GUI apache config tool , but that dies when I start it up (Probably because Apache isn't running)

I know I should give some more info on the problem, but I am on my windows pc now
 
Old 04-01-2003, 07:43 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
did you modify httpd.conf ?

please provide the last lines of /var/log/httpd/error_log if available
 
Old 04-01-2003, 08:59 AM   #3
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the quick reply.
Yes I did modify httpd.conf in etc/httpd/ .
I can't check that right now, (not untill ± 6 hours) When I do, I'll post a part of it here.
Is the log in /var/log/httpd/... by default (and on suse 8.1)?

Thanks in advance
 
Old 04-02-2003, 03:30 AM   #4
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
Question error_log file content

This is what is all over my error_log file.

Code:
getpeername: Socket operation on non-socket
getsockname: Socket operation on non-socket
Error getting local address
Don't know where to begin.

Thanks in advance.
 
Old 04-03-2003, 01:20 PM   #5
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
>Error getting local address

probably you tried to use a hostname in httpd.conf which is unknown to your machine
 
Old 04-03-2003, 04:32 PM   #6
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
I left it at the default (but I'm not sure.)
The loopback interface (127.0.0.1) was allready entered and I left it at that to test it.
I'll check that out.
Thanks for the tip.
 
Old 04-05-2003, 09:41 AM   #7
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
This is basically my httpd.conf without the comments. With this configuration I still have the same error.

Thanks for looking in to it.

------------------------------- START -------------------
ServerType inetd
ServerRoot "/srv/www"
LockFile /var/lock/subsys/httpd/httpd.accept.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
## ATTN: edited by michael ##
Listen 192.168.123.186:80
Listen 10.0.0.250:80
## /ATTN ##
LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/lib/apache/mod_vhost_alias.so
LoadModule env_module /usr/lib/apache/mod_env.so
LoadModule define_module /usr/lib/apache/mod_define.so
LoadModule config_log_module /usr/lib/apache/mod_log_config.so
LoadModule agent_log_module /usr/lib/apache/mod_log_agent.so
LoadModule referer_log_module /usr/lib/apache/mod_log_referer.so
LoadModule mime_magic_module /usr/lib/apache/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/mod_negotiation.so
LoadModule status_module /usr/lib/apache/mod_status.so
LoadModule info_module /usr/lib/apache/mod_info.so
LoadModule includes_module /usr/lib/apache/mod_include.so
LoadModule autoindex_module /usr/lib/apache/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/mod_dir.so
LoadModule cgi_module /usr/lib/apache/mod_cgi.so
LoadModule asis_module /usr/lib/apache/mod_asis.so
LoadModule imap_module /usr/lib/apache/mod_imap.so
LoadModule action_module /usr/lib/apache/mod_actions.so
LoadModule speling_module /usr/lib/apache/mod_speling.so
LoadModule alias_module /usr/lib/apache/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/mod_rewrite.so
LoadModule access_module /usr/lib/apache/mod_access.so
LoadModule auth_module /usr/lib/apache/mod_auth.so
LoadModule anon_auth_module /usr/lib/apache/mod_auth_anon.so
LoadModule dbm_auth_module /usr/lib/apache/mod_auth_dbm.so
LoadModule db_auth_module /usr/lib/apache/mod_auth_db.so
LoadModule digest_module /usr/lib/apache/mod_digest.so
LoadModule proxy_module /usr/lib/apache/libproxy.so
LoadModule cern_meta_module /usr/lib/apache/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/mod_expires.so
LoadModule headers_module /usr/lib/apache/mod_headers.so
LoadModule usertrack_module /usr/lib/apache/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/mod_setenvif.so
<IfDefine DUMMYSSL>
LoadModule ssl_module /usr/lib/apache/libssl.so
</IfDefine>

Include /etc/httpd/suse_loadmodule.conf
ClearModuleList
AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine DUMMYSSL>
AddModule mod_ssl.c
</IfDefine>

Include /etc/httpd/suse_addmodule.conf
ExtendedStatus On
<IfModule mod_dav.c>
DavLockDB /var/lock/DAVLock
</IfModule>

<IfModule mod_include.c>
XBitHack on
</IfModule>
Port 80
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
User wwwrun
Group nogroup
ServerAdmin my_e-mail@blah.com
## ADDED BY MICHAEL ##
ServerName 192.168.123.186
## END ADD ##
DocumentRoot "/srv/www/htdocs"
<Directory />
AuthUserFile /etc/httpd/passwd
AuthGroupFile /etc/httpd/group

Options -FollowSymLinks +Multiviews
AllowOverride None

</Directory>
<Directory "/srv/www/htdocs">
Options Indexes -FollowSymLinks +Includes MultiViews
AllowOverride None
Order allow,deny
Allow from all

<IfModule mod_dav.c>
DAV Off
</IfModule>
<Files /srv/www/htdocs/index.htm*>
Options -FollowSymLinks +Includes +MultiViews
</Files>
<Files test.php3>
Order deny,allow
deny from all
allow from localhost
</Files>

</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName On
<IfModule mod_mime.c>
TypesConfig /etc/httpd/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/httpd/magic
</IfModule>
HostnameLookups Off
<IfModule mod_backhand.c>
UnixSocketDir /var/lib/backhand
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
ErrorLog /var/log/httpd/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd/access_log common
ServerSignature On
<IfModule mod_alias.c>
Alias /icons/ "/srv/www/icons/"

<Directory "/srv/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /manual/ "/srv/www/htdocs/manual/"

<Directory "/srv/www/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<IfModule mod_perl.c>
ScriptAlias /perl/ "/srv/www/cgi-bin/"
ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"
</IfModule>
<Directory "/srv/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script
</Location>
<IfModule mod_perl.c>
Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>
<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options ExecCGI
PerlSendHeader On
</Location>

</IfModule>
<IfModule mod_autoindex.c>

IndexOptions FancyIndexing

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^


DefaultIcon /icons/unknown.gif

AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz

ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# RCS CVS *,v *,t

</IfModule>
<IfModule mod_mime.c>

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz


AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8

<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>

AddType application/x-tar .tgz

<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml
</IfModule>

<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>

<IfModule mod_dtcl.c>
AddType application/x-httpd-tcl .ttml
AddType application/x-dtcl-tcl .tcl
</IfModule>

AddType text/vnd.wap.wml wml
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
Addtype image/vnd.wap.wbmp wbmp
AddHandler cgi-script .cgi

AddType text/html .shtml
AddHandler server-parsed .shtml

</IfModule>
<IfModule mod_setenvif.c>


BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

</IfModule>
<IfDefine STATUS>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>

<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from localhost
</Location>


<IfModule mod_perl.c>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from localhost
</Location>
</IfModule>
</IfDefine>

<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>

<IfModule mod_ssl.c>

SSLPassPhraseDialog builtin

SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300

SSLMutex file:/var/run/ssl_mutex

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /var/log/httpd/ssl_engine_log
SSLLogLevel info

</IfModule>

<IfDefine SSL>

<VirtualHost _default_:443>

DocumentRoot "/srv/www/htdocs"
ServerName new.host.name
ServerAdmin you@your.address
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL


SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/srv/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

</IfDefine>

Include /etc/httpd/suse_include.conf
--------------------------- END ------------------------
 
Old 04-05-2003, 10:22 AM   #8
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
the problem seems to be the "ServerType inetd" line

most apache servers are started in "ServerType standalone" mode, and probably so is yours.

hope it helps :-)
 
Old 04-05-2003, 10:48 AM   #9
Dr.Lun
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
By the way: what is your experience with LTSP, esspecialy in cobmination with Apache?

(I'm planing one project like that these days, only on Slackware distribution)
 
Old 04-05-2003, 12:46 PM   #10
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks guys,

inetd was default and I left it that way. I'll try standalone and let you know.

To Dr.Lun : I'm really happy with LTSP for several reasons.
(I just used the basics of Linux computing since I'm just a newbie)
* all management is centrally based at the server.
* all data is stored on the server (no need for file server like samba - if you can ditch all windoze boxes for thin clients.)
* Thin Clients are completely solid state (not even a fan - really quiet) http://www.disklessworkstations.com
* I'm planning on using Apache for an intranet application (custom made PHPnuke modules - small business).
* Ethernet booting is fast on a 100Mbps network.
* Full KDE3 GUI on thin client. (for rookies like me)

for more info check out http://www.ltsp.org
 
Old 04-05-2003, 02:38 PM   #11
michael301080
LQ Newbie
 
Registered: Dec 2002
Location: Belgium
Distribution: Suse 8.1
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks guys,

Apache returned 0 ... succes.
I can access the server test pages by typing it's IP address.
I know you can set a hostname like www (if the server name is allready something else).
Where is that setting? Or how do you enable that?

thanks a mln.
 
Old 04-07-2003, 05:07 AM   #12
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
for testing you can add

192.168.123.186 www
10.0.0.250 www2


to your /etc/hosts file
 
  


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
Suse linux 9.3 Pro set up apache medic13 Linux - Networking 5 06-26-2005 03:35 AM
Question about apache in SuSe 9.2 pro Hockeyfan SUSE / openSUSE 8 01-14-2005 05:57 PM
Tomcat start page in SuSE 9.1 Pro [GOD]Anck SUSE / openSUSE 1 01-14-2005 04:58 AM
how to start apache server msubramanian Linux - Newbie 2 08-10-2004 11:39 PM
SuSE 9.0 can't start X after XP Pro scanned HD bwalsh Linux - Newbie 3 07-21-2004 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:33 AM.

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