LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2014, 03:43 PM   #1
michaellopez12
Member
 
Registered: Nov 2013
Posts: 47

Rep: Reputation: Disabled
Question about installing Puppet


Here is a link that I am using to install Puppet on a Centos 6.5 server:

http://www.unixmen.com/install-puppe...centos-6-56-4/

I followed all of the steps correctly. But now when I try to start apache by running the below commmand.

/etc/init.d/httpd start

I get the following error:

Code:
[root@test14 init.d]# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/puppetmaster.conf: Cannot load /usr/lib/ruby/gems/1.8/gems/passenger-4.0.35/buildout/apache2/mod_passenger.so into server: /usr/lib/ruby/gems/1.8/gems/passenger-4.0.35/buildout/apache2/mod_passenger.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
After doing my own investigation I have found that after the passenger-4.0.35 directory, I don't see the rest of the directories that are supposed to be there which is why I am getting that No such file or directory error.

My question is could it have something to do with the fact that I didn't run this command in the very beginning:

rpm -ivh http://yum.puppetlabs.com/el/6.4/pro...6-7.noarch.rpm

instead I just ran the yum install command

or

is there another way to get httpd to start and if so how?

Any help would be greatly appreciated.
 
Old 10-25-2014, 07:12 PM   #2
Hashimabdullah
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Issue with Installing puppet in centos 6.x

ISSUE:

[root@test14 init.d]# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/puppetmaster.conf: Cannot load /usr/lib/ruby/gems/1.8/gems/passenger-4.0.35/buildout/apache2/mod_passenger.so into server: /usr/lib/ruby/gems/1.8/gems/passenger-4.0.35/buildout/apache2/mod_passenger.so: cannot open shared object file: No such file or directory
[FAILED]

Please Edit the File " /etc/httpd/conf.d/puppetmaster.conf " and Insert the below Entry in line 2

==================================================================================================== =
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.53/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.53
PassengerDefaultRuby /usr/bin/ruby
</IfModule>
==================================================================================================== ===

This will fix this issue. Now run apache syntax checking command....
 
  


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
General question regarding puppet munkz Linux - Software 2 11-12-2013 02:52 AM
Installing puppet on RHEL6 jagdish.jagtap1@wipro.co Linux - Newbie 4 06-04-2013 03:05 AM
puppet question kamaleshbv1 Linux - Newbie 1 05-31-2012 08:42 PM
Parameter to execute shell script on puppet client through Puppet server niraj.kumar Linux - Server 3 02-08-2011 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:55 AM.

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