07-29-2009
Please try to clarify the situation.
Do you have two Apache installs (as in two separate complete install in two directories, binaries and all) or do you just have two configuration files?
When you try to start Apache, what error are you getting?
I understand your frustration, but in order for us to help you need to clarify what you are trying to do.
By guessing from what you've written, it appears like you have installed a separate Apache install in another directory. In order to start this instance of Apache rather than the default instance, you will need to indicate to the startup script that Apache resides in another directory.
If this is the case, edit /etc/sysconfig/httpd and add/edit the following lines:
HTTPD=<path to new binary>
OPTIONS="-d <location of serverroot>" # Default /etc/httpd/
If that is not the case, you need to clarify what you are trying to do in a better way.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
how are you all , I am having a hard time here
I've got my Linux Redhat 6.2 server , with pre-instalation of redhat.
anyway , I installed mysql (not rpm) and its working very well, but I faced lot of trouple with PHP4.
Apache 1.1.12 was installed through rpm package and I updated... (1 Reply)
Discussion started by: t_zone
1 Replies
2. Solaris
help me please.................bro
i was install apache2 and i have been configure httpd.conf on my solaris 10 machine n i already running my httd service but why my webserver couldn't run on my browser?
some buddy help me.............:confused::confused::confused::confused::confused: (5 Replies)
Discussion started by: yatmianto
5 Replies
3. Red Hat
im running rh 9 on my vmware, i tryed changing the graphics card mode
to resize the desktop, after restarting i get a message X Server cannot start.
then it takes me to the consol screen to log on, "im new to using linux as of last night"
It would be helpfull if anyone can help me resolve... (4 Replies)
Discussion started by: aoteg
4 Replies
4. Red Hat
Hi ,
Maximum How many instances of apache can we run in
one box? (2 Replies)
Discussion started by: krish4linux
2 Replies
5. UNIX for Dummies Questions & Answers
Is there a directive to limit the number of virtual hosts allowed per apache instance? I am told yes but I cannot find it. (1 Reply)
Discussion started by: mojoman
1 Replies
6. UNIX for Advanced & Expert Users
just wanted to ask if anybody have script template for the subject above so I can make ti as my guide? example
a. server 1.1.1.1: restart script located at /etc/init.d/glassfish.sh
b. server 2.2.2.2: central script that support admin will use to execute to restart the /etc/init.d/glassfish.sh... (0 Replies)
Discussion started by: lhareigh890
0 Replies
7. UNIX for Advanced & Expert Users
do you have any recommendation on how to restart instances of several servers via GUI?
a. serverA: tomcat
b. serverB: glassfish
etc etc
I already gave remote script but im thinking of other alternatives though
pls help. thanks (0 Replies)
Discussion started by: lhareigh890
0 Replies
8. UNIX for Advanced & Expert Users
After i added this line to my apache httpd.conf it does not start.
AuthUserFile /apps/apache22/conf/httpd.passwd
and i see the below error.
Syntax error on line 876 of /apps/apache22/conf/httpd.conf:
AuthUserFile not allowed here
Kindly help. (4 Replies)
Discussion started by: mohtashims
4 Replies
9. Red Hat
How is it possible to tied a IP address to folder in apache, so when someone put the ip in there browser they land in that folder? (3 Replies)
Discussion started by: da2013
3 Replies
10. Web Development
Hi All,
I'm getting this below error
bash-4.1$ ./apachectl -k start
(98)Address already in use: make_sock: could not bind to address hostname:18000
no listening sockets available, shutting down
Unable to open logs
I tried to change the port number, still same error:
... (5 Replies)
Discussion started by: raghur77
5 Replies
LEARN ABOUT OSX
apachectl
APACHECTL(8) apachectl APACHECTL(8)
NAME
apachectl - Apache HTTP Server Control Interface
SYNOPSIS
When acting in pass-through mode, apachectl can take all the arguments available for the httpd binary.
apachectl [ httpd-argument ]
When acting in SysV init mode, apachectl takes simple, one-word commands, defined below.
apachectl command
SUMMARY
apachectl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the
functioning of the Apache httpd daemon.
The apachectl script can operate in two modes. First, it can act as a simple front-end to the httpd command that simply sets any necessary
environment variables and then invokes httpd, passing through any command line arguments. Second, apachectl can act as a SysV init script,
taking simple one-word arguments like start, restart, and stop, and translating them into appropriate signals to httpd.
If your Apache installation uses non-standard paths, you will need to edit the apachectl script to set the appropriate paths to the httpd
binary. You can also specify any necessary httpd command line arguments. See the comments in the script for details.
The apachectl script returns a 0 exit value on success, and >0 if an error occurs. For more details, view the comments in the script.
OPTIONS
Only the SysV init-style options are defined here. Other arguments are defined on the httpd manual page.
start Loads the org.apache.httpd launchd job.
stop, graceful-stop
Unloads the org.apache.httpd launchd job.
restart, graceful
Unloads, then loads the org.apache.httpd launchd job.
fullstatus
Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a text-based
browser such as lynx available on your system. The URL used to access the status report can be set by editing the STATUSURL variable
in the script.
status Displays a brief status report. Similar to the fullstatus option, except that the list of requests currently being served is omit-
ted.
configtest
Run a configuration file syntax test. It parses the configuration files and either reports Syntax Ok or detailed information about
the particular syntax error. This is equivalent to apachectl -t.
The following option was available in earlier versions but has been removed.
startssl
To start httpd with SSL support, you should edit your configuration file to include the relevant directives and then use the normal
apachectl start.
Apache HTTP Server 2005-09-20 APACHECTL(8)