Jump to content

Trouble installing Apache


epretorious
 Share

Recommended Posts

I can't seem to locate the package that contains the Apache binary (/usr/sbin/httpd).

 

The apache-base package sounds like it should have it...

[epretorious@epretorious Desktop]$ rpm -qi apache-base
Name		: apache-base				  Relocations: (not relocatable)
Version	 : 2.2.3							 Vendor: Mandriva
Release	 : 1.1mdv2007.0				  Build Date: Wed 04 Jul 2007 01:00:22 PM MDT
Install Date: Sun 09 Sep 2007 09:39:07 PM MDT	  Build Host: mercury.mandriva.com
Group	   : System/Servers				Source RPM: apache-2.2.3-1.1mdv2007.0.src.rpm
Size		: 415007						   License: Apache License
Signature   : DSA/SHA1, Wed 04 Jul 2007 03:28:31 PM MDT, Key ID 9aa8d0d022458a98
Packager	: Mandriva Security Team <security@mandriva.com>
URL		 : [url="http://www.apache.org"]http://www.apache.org[/url]
Summary	 : Common files and utilities for apache
Description :
This package contains the apache utilities such as Apache Bench
(ab) for stress testing your apache installation and several tools
for managing user databases, access control, the apache logs and
more.

...but it doesn't. It contains may related tools:

[epretorious@epretorious Desktop]$ rpm -ql apache-base | grep sbin
/usr/sbin/ab
/usr/sbin/apachectl
/usr/sbin/check_forensic
/usr/sbin/checkgid
/usr/sbin/dbmmanage
/usr/sbin/htdbm
/usr/sbin/htdigest
/usr/sbin/htpasswd
/usr/sbin/httxt2dbm
/usr/sbin/list_hooks.pl
/usr/sbin/log_server_status
/usr/sbin/logresolve
/usr/sbin/logresolve.pl
/usr/sbin/rotatelogs
/usr/sbin/split-logfile

...including /usr/sbin/apachectl - a shell script that executes the Apache binary - but it does not require the package that provides /usr/sbin/httpd.

[epretorious@epretorious Desktop]$ sudo /usr/sbin/apachectl start
/usr/sbin/apachectl: line 80: /usr/sbin/httpd: No such file or directory

Please help!

Link to comment
Share on other sites

edited

If you saw this pre-edit, forget what I said. To start apache, try this as root:

service httpd start

This is the standard way of starting services in Mandriva. That way you don't have to hunt down the binary. You can add this to start at boot (or start/stop it, if you prefer GUI) within the Mandriva Control Center (aka Configure My Computer).

Link to comment
Share on other sites

Using the command urpmf as root in a console, you can find out which pkg(s) contain the file you are looking for:

 

[root@localhost Download]# urpmf -f /usr/sbin/httpd

apache-mpm-event-2.2.4-6mdv2007.1.i586:/usr/sbin/httpd-event

apache-mpm-itk-2.2.4-6mdv2007.1.i586:/usr/sbin/httpd-itk

apache-mpm-prefork-2.2.4-6mdv2007.1.i586:/usr/sbin/httpd

apache-mpm-worker-2.2.4-6mdv2007.1.i586:/usr/sbin/httpd-worker

httpd-naat-0.8-9mdk.noarch:/usr/sbin/httpd-naat

httpd2-naat-0.8-10mdk.noarch:/usr/sbin/httpd2-naat

apache-mpm-worker-2.2.4-6.2mdv2007.1.i586:/usr/sbin/httpd-worker

apache-mpm-prefork-2.2.4-6.2mdv2007.1.i586:/usr/sbin/httpd

apache-mpm-itk-2.2.4-6.2mdv2007.1.i586:/usr/sbin/httpd-itk

apache-mpm-event-2.2.4-6.2mdv2007.1.i586:/usr/sbin/httpd-event

 

The -m option is supposed to tell you what media the pkg is in, but it is broken on my system. The first is probably main and the second is probably updates.

Edited by Steve Scrimpshire
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...