LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-29-2008, 02:53 PM   #1
guyroberts
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
red hat - httpd.conf problem


Hi, this is my first post as I'm new to Red Hat and SSH

I'm getting the error message below:

httpd: Syntax error on line 992 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/vhost.conf: No such file or directory

This was caused after installing GD library but now don;t know how to fix.

Can I reverse the install of GD lib or is there another way to fix?

Thanks!
 
Old 11-29-2008, 03:03 PM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
How Was http was Installed

Is this a fresh install?

Which Red Hat version is this?

Did you copy a prior httpd.conf file onto a new installation?
 
Old 11-29-2008, 03:23 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
As mentioned, it's a good idea to post your RHEL version, and your Apache web server version.

If you don't know, try:

# cat /etc/redhat-release

# httpd -v

---

Quote:
Originally Posted by guyroberts
httpd: Syntax error on line 992 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/vhost.conf: No such file or directory
This error tells you exactly where and what the problem is. I'm presuming vhost.conf is for virtual hosts (but I'm not sure). Check if the file exists at conf.d/vhost.conf. If so, change line 992 in httpd.conf to reflect the correct location. If not (or if you're not going to be using virtual hosts), then remove or comment out line 992.

Quote:
Originally Posted by guyroberts
Can I reverse the install of GD lib or is there another way to fix?
What is GD lib? Google says some things about it, but I've no idea what you are referring to in this context. If you need to, you can remove packages using yum (or rpm for RHEL < 5).
 
Old 11-29-2008, 03:58 PM   #4
guyroberts
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Guys

Here's answers to post 2 & 3:

Red Hat Enterprise Linux Server release 5.2 (Tikanga)

Server version: Apache/2.2.3
Server built: Jan 16 2008 14:25:01

I'm really a novice when it comes to this and not sure how to get into the conf file.

GD Is a graphics display module I believe - I installed after the request to when installing plogger onto the server (http://www.plogger.org). How would I go about uninstalling - only problen is I can't remember the package I installed or what it was called that caused the problem! Dumb, I know!!

Thanks for your help guys, I wasn't epecting a reply so soon!
 
Old 11-29-2008, 07:19 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Is there someone else maintaining the server who you could instruct to comment out the offending line? If you (personally) expect to maintain this server, you will need to learn an editor - no time like the present to do so. Try out nano.

Check /var/log/yum.log to see if you can determine the package name. This contains a history of yum activity.
 
Old 11-30-2008, 04:52 AM   #6
guyroberts
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
hi anomie

I have contacted the provided of the dedicated server who are being very unhelpful, it's been over a week and they still haven't taken a look at the problem. They are charging GBP £120 per hour and say it could take hours to discover the problem, but they obviously do not need the money as they are really not being helpful after numerous emails and telephone calls.

I'll have a look at nano now. Does it need to be installed onto the server to use?

Would the problem be something you could look into for me, for a charge?

Thanks for your help guys!
 
Old 11-30-2008, 12:37 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I believe nano is installed on RHEL even if you choose the minimum possible package selection. Its usage is: # nano file_here

Sorry to hear about your service provider woes. I hope you will vote with your wallet when you have the opportunity. (FWIW, I recommend Rackspace for managed hosting.)

I would like to help, but I am not comfortable dealing with non-local contracts at this time. I would recommend posting an ad here or in your community newspaper (or wherever is appropriate for you) seeking a competent RHEL sysadmin for a small project.
 
Old 11-30-2008, 01:04 PM   #8
guyroberts
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Original Poster
Rep: Reputation: 0
well, as you said earlier - now is a good time to learn!

That was probably the best advice ever posted, as I have done so and managed to fix! I suppose it wasn't too difficult, but what looks to have happened is when I installed GD it put the vhosts.conf file as vhosts.conf.rpmsave

I created a new file named vhosts.conf (I didn;t even know how to do this previously) and placed all of the contents from the vhosts.conf.rpmsave file and bingo!

My server support are still to come back to me... oh well.

Thanks for your help guys, I'm sure I will be back with problems, but as I get better, hopefully I may be able to help someone else on here in the future..
 
  


Reply



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
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd.conf backup problem Fredstar Linux - Newbie 2 11-28-2004 01:16 PM
Red Hat 9 server can't write PHP script, problem in httpd.conf file? x_menno_x Linux - Newbie 27 06-29-2004 04:44 PM
Red Hat 9 HTTPD Server Fonke0412 Linux - Newbie 6 08-09-2003 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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