LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   red hat - httpd.conf problem (https://www.linuxquestions.org/questions/red-hat-31/red-hat-httpd-conf-problem-687113/)

guyroberts 11-29-2008 02:53 PM

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!

cmnorton 11-29-2008 03:03 PM

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?

anomie 11-29-2008 03:23 PM

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).

guyroberts 11-29-2008 03:58 PM

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!

anomie 11-29-2008 07:19 PM

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.

guyroberts 11-30-2008 04:52 AM

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!

anomie 11-30-2008 12:37 PM

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.

guyroberts 11-30-2008 01:04 PM

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..


All times are GMT -5. The time now is 10:05 PM.