Sponsored Content
Operating Systems Linux Red Hat How to start the right instance of Apache on RedHat server Post 302339194 by Kandra on Thursday 30th of July 2009 03:49:48 AM
Old 07-30-2009
Mehdi, I'm going to make one more attempt at trying to resolve your issue. The problem is that I need information in order to diagnose the problem, and I need ALL of the things I listed as bullet points, along with any other information you can provide. The MORE information you can give, the easier it will be to diagnose your issue.

Now... You state that you have two directories where Apache is installed. The new instance of Apache is located in /usr/local/apache2 if I understand things correctly. This directory is called your ServerRoot.

What you need to do is the following:

* Check your /etc/sysconfig/httpd and make sure that the OPTIONS variable has a -d option that points to your serverroot. Look further up in my thread for how to do this.
* MAKE SURE that the serverroot contains either a directory, or a symlink to a directory, containing the required modules, specifically the PHP5 module. This is EXACTLY why I asked you to supply the error message, so that I can verify if this is true or not.
* If this does not resolve your issue, I kindly ask you to provide the information I listed in the bulletpoints in my post above. Please list ALL of said information, or I will refrain from assisting further due to lack of relevant information to diagnose your issue.

One more thing. Is there a specific requirement for having two separate instances of Apache? Specifically, did you try yum install php to enable PHP-support for your existing Apache install?

Please see Install PHP 5 in Red Hat Enterprise Linux 5 for a guide as for how to install PHP5 support on Red Hat Enterprise Linux 5.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

redhat 6.2 : Apache + PHP4

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........... my apache can't start

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

X Server won't start (Redhat 9) HELP

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

Apache instance

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

Maximum Number of Virtual Hosts per Apache instance

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

script to remotely start an application instance

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

start instance via GUI

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

Apache does not start

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

Redhat Apache

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

Unable to start the apache web server

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
OCF_HEARTBEAT_APACHE(7) 					OCF resource agents					   OCF_HEARTBEAT_APACHE(7)

NAME
ocf_heartbeat_apache - Manages an Apache Web server instance SYNOPSIS
apache [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
This is the resource agent for the Apache Web server. This resource agent operates both version 1.x and version 2.x Apache servers. The start operation ends with a loop in which monitor is repeatedly called to make sure that the server started and that it is operational. Hence, if the monitor operation does not succeed within the start operation timeout, the apache resource will end with an error status. The monitor operation by default loads the server status page which depends on the mod_status module and the corresponding configuration file (usually /etc/apache2/mod_status.conf). Make sure that the server status page works and that the access is allowed *only* from localhost (address 127.0.0.1). See the statusurl and testregex attributes for more details. See also http://httpd.apache.org/ SUPPORTED PARAMETERS
configfile The full pathname of the Apache configuration file. This file is parsed to provide defaults for various other resource agent parameters. (unique, optional, string, default "/etc/httpd/conf/httpd.conf") httpd The full pathname of the httpd binary (optional). (optional, string, default "/usr/sbin/httpd") port A port number that we can probe for status information using the statusurl. This will default to the port number found in the configuration file, or 80, if none can be found in the configuration file. (optional, integer, no default) statusurl The URL to monitor (the apache server status page by default). If left unspecified, it will be inferred from the apache configuration file. If you set this, make sure that it succeeds *only* from the localhost (127.0.0.1). Otherwise, it may happen that the cluster complains about the resource being active on multiple nodes. (optional, string, no default) testregex Regular expression to match in the output of statusurl. Case insensitive. (optional, string, default "exists, but impossible to show in a human readable format (try grep testregex)") client Client to use to query to Apache. If not specified, the RA will try to find one on the system. Currently, wget and curl are supported. For example, you can set this parameter to "curl" if you prefer that to wget. (optional, string, no default) testurl URL to test. If it does not start with "http", then it's considered to be relative to the Listen address. (optional, string, no default) testregex10 Regular expression to match in the output of testurl. Case insensitive. (optional, string, no default) testconffile A file which contains test configuration. Could be useful if you have to check more than one web application or in case sensitive info should be passed as arguments (passwords). Furthermore, using a config file is the only way to specify certain parameters. Please see README.webapps for examples and file description. (optional, string, no default) testname Name of the test within the test configuration file. (optional, string, no default) options Extra options to apply when starting apache. See man httpd(8). (optional, string, no default) envfiles Files (one or more) which contain extra environment variables. If you want to prevent script from reading the default file, set this parameter to empty string. (optional, string, default "/etc/apache2/envvars") use_ipv6 We will try to detect if the URL (for monitor) is IPv6, but if that doesn't work set this to true to enforce IPv6. (optional, boolean, default false) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 40s. stop Stops the resource. Suggested minimum timeout: 60s. status Performs a status check. Suggested minimum timeout: 30s. monitor Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a apache resource using the crm(8) shell: primitive p_apache ocf:heartbeat:apache op monitor depth="0" timeout="20s" interval="10" SEE ALSO
http://www.linux-ha.org/wiki/apache_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_APACHE(7)
All times are GMT -4. The time now is 11:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy