LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-26-2003, 07:04 AM   #1
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Rep: Reputation: 0
Angry xinetd + Apache conflict


I recently installed Apache, but when I tried to start it from Control Center/System/Services it refuses to start. When I click the Servers start button, it gives me this message:

"There is no such option for an xinetd services
You can only use the start option to reload a xinetd service
services is a xinetd service."

When I try to start the 'xinetd', it tells me that the files don't exist. I feel like I'm chasing my tail trying to figure it out.

OS: Linux Mandrake 9.0 ProSuite
Apache Version: 1.3

Thanks.

PS: I'm a Linux n00b, so if that was a stupid question, thump me in the forehead.

Last edited by whoracle; 02-26-2003 at 07:05 AM.
 
Old 02-26-2003, 08:29 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
No thumping on the head for this one. Now pay attention here because these next two lines are a little confusing:

SERVICES is a service of xinetd.
SERVICES is a service of xinetd.

I'm not sure exactly what SERVICES is responsible for but I know that I don't have it turned on. Do this as root:

chkconfig --list services

Its should spit back a line that says:

services on

If you want to shut it off do:

chkconfig --levels 345 services off

Like I said I'm not exactly sure what the SERVICES service does so you may want to do some googling to see if you really need it.
 
Old 02-26-2003, 12:19 PM   #3
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks alot. So, the SERVICES don't have to be running, in order to have Apache running? Damn, I'm such a n00b I'm not even sure how to setup the DocumentRoot yet, but I'll keep trying until I get it. All apache.org information seems to be directed towards the more 'rocket scientist' types.

Thanks alot man. Appreciate it.
 
Old 02-26-2003, 12:36 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
To start apache, try the following as root (type su to log in at a teminal)
/usr/local/apache/bin/apachectl -k start
If you installed apache in the default path
 
Old 02-26-2003, 01:01 PM   #5
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
lol Ok, wtf! I installed all servers last night, and assumed the installation program would put things where they need to go. Evidently not, I have no /usr/local/apache...so wtf do I do now? I know its installed, the installation was a success, but now its a matter of where it put the files. Who knows, Linux is creeping me out Any suggestions?
 
Old 02-26-2003, 01:05 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Okay don't panic! To start apache you do this:

/etc/init.d/httpd start

After you do that do this just to make sure that it was up and running:

/etc/init.d/httpd restart

It should say something to the effect of:

stopping httpd [OK]
starting httpd [OK]

Then do a port scan on yourself to see if port 80 is open:

nmap your.ip.address.here

You shold see port 80 open. Then you can go to http://your.ip.address.here and you should see your web page!
 
Old 02-26-2003, 01:11 PM   #7
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
K, everything is good up until finding Port 80, its not listed. Is there anyway to enable it, or is it a possiblity that my isp doesn't allow use of 80?
 
Old 02-26-2003, 01:21 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
It is definetly possible that your isp does not allow port 80. Did you try and go to http://your.ip.address.here ???
 
Old 02-26-2003, 01:24 PM   #9
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
Yeah, it gives me a 'Cannot Find Server' error. I've been googling a little bit, and found something that suggested changing Apaches http ports to 8080. I guess I'll give it a try. Thanks alot for all your help man, I really appreciate it. Not many people waste time on n00bs anymore heh. Thanks.
 
Old 02-26-2003, 01:26 PM   #10
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
One other thing to try:

http://localhost

Also if port 80 is not open then that means apache is either not running correctly or configured to listen on another port.
 
Old 02-26-2003, 02:02 PM   #11
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
I'm having a really tough time here. I've changed the document root like 5 times, I can't access http://localhost. I'm totally stumped, I think I just wasted 159.00
 
Old 02-26-2003, 02:04 PM   #12
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Post your httpd.conf file so we can take a look at it.
 
Old 02-26-2003, 03:01 PM   #13
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerType standalone
ServerRoot /etc/httpd
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /var/www/html/


### Dynamic Shared Object (DSO) Support
###
###
#LoadModule mmap_static_module modules/mod_mmap_static.so
LoadModule env_module modules/mod_env.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule agent_log_module modules/mod_log_agent.so
LoadModule referer_log_module modules/mod_log_referer.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
LoadModule includes_module modules/mod_include.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule asis_module modules/mod_asis.so
LoadModule imap_module modules/mod_imap.so
LoadModule action_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule proxy_module modules/libproxy.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule anon_auth_module modules/mod_auth_anon.so
#LoadModule dbm_auth_module modules/mod_auth_dbm.so
#LoadModule db_auth_module modules/mod_auth_db.so
LoadModule digest_module modules/mod_digest.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule example_module modules/mod_example.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
<IfDefine HAVE_SSL>
LoadModule ssl_module extramodules/libssl.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>
<IfDefine HAVE_SXNET>
LoadModule sxnet_module extramodules/mod_sxnet.so
</IfDefine>
<IfDefine HAVE_SSL>
LoadModule ssl_module extramodules/libssl.so
</IfDefine>
<IfDefine HAVE_SXNET>
LoadModule sxnet_module extramodules/mod_sxnet.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>
LoadModule vhost_alias_module modules/mod_vhost_alias.so

# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
#AddModule mod_mmap_static.c
AddModule mod_env.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_userdir.c
AddModule mod_proxy.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_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
#AddModule mod_example.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine HAVE_SSL>
AddModule mod_ssl.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
<IfDefine HAVE_SXNET>
AddModule mod_sxnet.c
</IfDefine>
<IfDefine HAVE_SSL>
AddModule mod_ssl.c
</IfDefine>
<IfDefine HAVE_SXNET>
AddModule mod_sxnet.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
AddModule mod_vhost_alias.c

###
### Global Configuration
###
# We now support multiple apache configurations on the same server. In
# common.conf, we put all directives that are common to all implementations
# (httpd, httpd-perl, etc.)
Include conf/commonhttpd.conf


###
### IP Address/Port and Proxied configuration section
###
# The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you
# are using a proxy or accelerator, like the Apache-SGI or khttpd, so that
# the fast web server serves static content while Apache handles the
# cgi or php files

#BindAddress *
<IfDefine APACHEPROXIED>
Port 8080
Listen 8080
</IfDefine>
<IfDefine !APACHEPROXIED>
Port 80
Listen 80
</IfDefine>

# Likewise, we can set apache as the server by default and send perl
# requests via ProxyPass to apache-mod_perl. It increases performance
# since the perl interpreter is only used for perl and the standard apache
# does all the html and image files, with a smaller footprint.
#
# If you install apache and apache-mod_perl, this is the default config.
# If you don't want two web servers to use perl, uninstall apache, and
# apache-mod_perl will not be proxied.

<IfDefine PERLPROXIED>
RewriteEngine on
RewriteRule ^proxy:.* - [F]
RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
</IfDefine>

###
### Log configuration Section
###

#Single logfile with access, agent and referer information
#This is the default, if vlogs are not defined for the main server
CustomLog logs/access_log combined env=!VLOG
#If VLOG is defined in conf/vhosts/Vhost.conf, we use this entry
CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG


###
### Virtual Hosts
###
# We include different templates for Virtual Hosting. Have a look in the
# vhosts directory and modify to suit your needs.
Include conf/vhosts/Vhosts.conf
#Include conf/vhosts/DynamicVhosts.conf
#Include conf/vhosts/VirtualHomePages.conf


###
### Performance settings Section
###
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

#
# Server-pool size regulation. Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request. If there are fewer than MinSpareServers, it creates
# a new spare. If there are more than MaxSpareServers, some of the
# spares die off. The default values are probably OK for most sites.
#
MinSpareServers 4
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 4

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150

#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies. The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources. On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries. For these platforms, set to something like 10000
# or so; a setting of 0 means unlimited.
#
# NOTE: This value does not include keepalive requests after the initial
# request per connection. For example, if a child process handles
# an initial request and 10 subsequent "keptalive" requests, it
# would only count as 1 request towards this limit.
#
MaxRequestsPerChild 500

Include conf/ssl/mod_ssl.conf
Include conf/ssl/ssl.default-vhost.conf
Include conf/addon-modules/php.conf
Include conf/mailman.conf
Include conf/ssl/mod_ssl.conf
Include conf/ssl/ssl.default-vhost.conf
Include conf/addon-modules/php.conf
 
Old 02-26-2003, 04:29 PM   #14
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
Thats my httpd.conf. Everything seems to be right, any ideas? I just don't understand, localhost doesn't work, and ip doesn't work...in browser.
 
Old 02-27-2003, 08:49 AM   #15
whoracle
LQ Newbie
 
Registered: Feb 2003
Location: Nebraska
Distribution: Linux Mandrake 9 ProSuite
Posts: 17

Original Poster
Rep: Reputation: 0
K. I give up. Apache.org gives no support whatsoever for their projects...if I would have known that before I spent $150...
 
  


Reply



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
Running APACHE through XINETD 1jamie Linux - Networking 8 11-13-2009 02:55 PM
xinetd + apache alaios Linux - Networking 4 10-15-2004 12:57 PM
apache 1.3.29, xinetd and debian jventer Linux - Software 1 11-22-2003 08:38 PM
Port forwarding just isnt working... Apache / xinetd Please help! liquidskin Linux - Networking 3 09-09-2003 04:12 PM
xinetd conflict with mysqld noisybastard Linux - General 3 05-08-2003 12:27 PM

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

All times are GMT -5. The time now is 01:53 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