LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 08-04-2003, 01:34 AM   #1
m_a
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Question my apache server try to open the conf file from previous path


hi 2 all

I'm a newbie to both apache and linux.

I installed apache-2.0.47 on my redhat7.2 under " /usr/local/apache" everything worked properly.

I tried to uninstall apache server ( by deleting files and directories) and reinstall it in order to get much familiar with installing proccess and other features .

This time I installed it under "/usr/local/apache2" , but when i try to start apache by runing

/usr/local/apache2/bin/apachectl start

it says that the file " /usr/local/apache/httpd.conf" can't be opened.

It means that it's trying to open it from previouse installation directory.

please help me
m_a
 
Old 08-04-2003, 03:38 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
apachectl is a script that calls httpd, open it up and have a look

do
man httpd
to find out what paramters and how you can pass to httpd

edit apachetl

and alter the line to what's appropriate in your situation

HTTPD=

including any start up parameters i.e location of httpd.conf, server root

Hope this helps
 
Old 08-04-2003, 03:51 AM   #3
m_a
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
hi !
tnx for helping , but there is no man page for that !!!!

m_a
 
Old 08-04-2003, 04:18 AM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Here it is then


httpd(8) httpd(8)

NAME
httpd - Apache hypertext transfer protocol server

SYNOPSIS
httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ]
[ -D parameter ]

httpd [ -h ] [ -l ] [ -L ] [ -v ] [ -V ] [ -t ] [ -X ]

DESCRIPTION
httpd is the Apache HyperText Transfer Protocol (HTTP) server program.
It is designed to be run as a standalone daemon process. When used like
this it will create a pool of child processes to handle requests. To
stop it, send a TERM signal to the initial (parent) process. The PID of
this process is written to a file as given in the configuration file.

This manual page only lists the command line arguments. For details of
the directives necessary to configure httpd see the Apache manual,
which is part of the Apache distribution or can be found at
http://httpd.apache.org/. Paths in this manual may not reflect those
compiled into httpd.

OPTIONS
-d serverroot
Set the initial value for the ServerRoot directive to
serverroot. This can be overridden by the ServerRoot com-
mand in the configuration file. The default is /etc/httpd.

-f config Execute the commands in the file config on startup. If con-
fig does not begin with a /, then it is taken to be a path
relative to the ServerRoot. The default is conf/httpd.conf.

-C directive
Process the configuration directive before reading config
files.

-c directive
Process the configuration directive after reading config
files.

-D parameter
Sets a configuration parameter which can be used with
<IfDefine>...</IfDefine> sections in the configuration
files to conditionally skip or process commands.

-h Output a short summary of available command line options.

-l Output a list of modules compiled into the server.

-L Output a list of directives together with expected argu-
ments and places where the directive is valid.

-S Show the settings as parsed from the config file (currently
only shows the virtualhost settings).

-t Run syntax tests for configuration files only. The program
immediately exits after these syntax parsing with either a
return code of 0 (Syntax OK) or return code not equal to 0
(Syntax Error). If -D DUMP_VHOSTS is also set, details of
the virtual host configuration will be printed.

-v Print the version of httpd , and then exit.

-V Print the version and build parameters of httpd , and then
exit.

-X Run httpd in debug mode. Only one worker will be started
and the server will not detach from the console.

FILES
/etc/httpd/conf/httpd.conf
/etc/mime.types
/etc/httpd/conf/magic
/var/log/httpd/error_log
/var/log/httpd/access_log
/var/run/httpd.pid
 
Old 08-05-2003, 06:30 AM   #5
balaji2001com
Member
 
Registered: Jun 2003
Location: Chennai,India
Distribution: Almost all the flavours of linux
Posts: 39

Rep: Reputation: 15
Lightbulb

try to delete all the dir's that were installed.install apache as given below

untar apache file in /usr/local/src
./configure --prefix=/usr/local/apache --enable-shared=rewrite --enable-module=rewrite
make and make install

tell me if this works
 
  


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
Apache httpd.conf file?? matux Mandriva 2 01-28-2005 10:20 AM
How to open and Editin httpd.conf file kakagak Linux - General 3 08-24-2004 01:35 PM
Fedora 1, Apache, httpd.conf file Turner Linux - Newbie 2 07-07-2004 01:11 PM
apache 2 named virtual servers : server path djbar Linux - Networking 0 03-21-2004 11:05 AM
Request for http.conf file for Apache 1.3.26 Thinkgeekness Linux - Software 2 04-19-2003 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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