How do I invoke second copy of apache when running service httpd start?


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How do I invoke second copy of apache when running service httpd start?
# 1  
Old 04-27-2013
How do I invoke second copy of apache when running service httpd start?

Hi all

I'm using the following for my os

Code:
[root@localhost htdocs]# cat /etc/redhat-release 
CentOS release 6.4 (Final)

when I execute the following

Code:
[root@localhost htdocs]# ls -lrth /etc/init.d/httpd 
-rwxr-xr-x. 1 root root 3.3K Feb 22 19:20 /etc/init.d/httpd
[root@localhost htdocs]# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 163 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_ldap.so into server: /etc/httpd/modules/mod_ldap.so: undefined symbol: apr_ldap_ssl_init
                                                           [FAILED]

I did another investigation

Code:
[root@localhost htdocs]# ls -lrth /usr/local/apache2/bin/apachectl 
-rwxr-xr-x. 1 oracle oinstall 3.4K Apr 27 09:32 /usr/local/apache2/bin/apachectl
[root@localhost htdocs]# /usr/local/apache2/bin/apachectl start
[root@localhost htdocs]#

now obviously there's a two copies of apache.

I did another execution

Code:
[root@localhost htdocs]# service httpd start
Starting httpd: httpd: Syntax error on line 163 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_ldap.so into server: /etc/httpd/modules/mod_ldap.so: undefined symbol: apr_ldap_ssl_init
                                                           [FAILED]
[root@localhost htdocs]#

as you can see obviously the first copy of apache is being executed, so how do I get the second copy of apache to start when I type service httpd starr?

thanks
# 2  
Old 04-28-2013
Use apachectl to start the service; make sure you also use full paths (/somedir/whatever/apache/bin/apachectl startssl).

Or you can modify the script at /etc/init.d/httpd and point to the right apachectl file.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Locate which httpd.conf is used by Apache

What is the command to see what httpd.conf file is apache using. Apache is started. (1 Reply)
Discussion started by: galford
1 Replies

2. AIX

Apache httpd appear too many times on processes

Dear all experts, I have a environment with 2 web, 2 apps and 2 db servers. Recently after I have patch the AIX O/S from 5300-11-02 to 5300-12-02, we found that the number of httpd processes increase largely. From originally 4 fix httpd processes become more than 600 processes. And it already... (1 Reply)
Discussion started by: kwliew999
1 Replies

3. Red Hat

Cannot start httpd service `GLIBC_2.4' not found (required by /lib/libgcc_s.so.1)

# service httpd start Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libgcc_s.so.1) I... (2 Replies)
Discussion started by: getrue
2 Replies

4. Red Hat

apache 2.2 httpd.conf

Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny: <Files ~ "\.(php|php3)$"> order allow,deny deny from all </Files> I... (0 Replies)
Discussion started by: Lobster
0 Replies

5. Red Hat

apache 2.2 httpd.conf

Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny. So I have base rule that denies all php files server-wide: order allow,deny ... (0 Replies)
Discussion started by: Lobster
0 Replies

6. Web Development

servername in apache httpd.conf

I'd like to know if servername in apache httpd.conf is the machine name or domain name. If it is domain name like example.com, should it be registered before in use? (1 Reply)
Discussion started by: yzhang738
1 Replies

7. UNIX for Advanced & Expert Users

Building Apache httpd 2.2.15

Hi, What options should I use with ./configure to include mod_dav into the build? I use --enable-dav and I didn't see mod_dav.so anywhere in the build directory. I need to load mod_dav.so as a module during httpd startup. Thanks. (1 Reply)
Discussion started by: Parker_
1 Replies

8. UNIX for Dummies Questions & Answers

cant start httpd process

httpd status is stopped.cant start it again by : /etc/init.d/httpd restart or /etc/init.d/httpd/start help needed (2 Replies)
Discussion started by: raksha.s
2 Replies

9. Ubuntu

Apache 2 httpd.conf empty

Hi everybody, I have installed Apache 2 + Tomcat 5.5. on Ubuntu 7.04 and the default httpd.conf is empty (0 lines), however there is a file called apache2.conf that looks like a default httpd.conf. I didn't use Apache in ages, since 1.3.x release, but I remember that the httpd.conf by default... (2 Replies)
Discussion started by: sspirito
2 Replies
Login or Register to Ask a Question