Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2003, 10:43 PM
Registered User
 
Join Date: Mar 2003
Posts: 52
ndj1022
Unable to locate httpd.conf at /scripts/wwwacct line 1319.

Getting this error when trying to create a account

Useing Red hat 9
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-25-2003, 01:58 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
Here is the subroutine in the wwwacct file giving you that message:

sub find_httpconf {
my(@LOC,$loc);
@LOC = ("/usr/local/apache/conf/httpd.conf",
"/etc/httpd/conf/httpd.conf");
foreach $loc (@LOC) {
if (-e $loc) { return $loc; }
}
die "Unable to locate httpd.conf"; < ---- this is line 1319
return "";
}

What it's saying is that it can't find the httpd.conf file in either of the 2 locations it's checking.

I suggest telnetting in and doing a locate.
locate httpd.conf
See what it tells you.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-25-2003, 02:04 AM
Registered User
 
Join Date: Mar 2003
Posts: 52
ndj1022
I got these as the reasults


/etc/http.old/conf/httpd.conf
/usr/share/apacheconf/httpd.conf.xsl
/usr/local/cpanel/base/docs/whm/images/buttons_httpd.conf.png
/home/cpins/installd/buildapache/httpd.conf.tempeditlib
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-25-2003, 02:11 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
You better contact your server provider. You don't appear to have an httpd.conf file. Without it, you can't have websites.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-25-2003, 02:13 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
You could try running
cp /etc/http.old/conf/httpd.conf /etc/http/conf/httpd.conf
to copy the one marked old to use as the real one. It may work, but I would contact the provider.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-25-2003, 02:14 AM
Registered User
 
Join Date: Mar 2003
Posts: 52
ndj1022
Its a test box, did I install something wrong? It's running right next to me so I can physical Contact with it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-25-2003, 02:15 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
I would just copy then. It sounds like you may have somehow deleted the file.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-25-2003, 02:17 AM
Registered User
 
Join Date: Mar 2003
Posts: 52
ndj1022
Says no file or Directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-25-2003, 02:20 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
You mean you ran
cp /etc/http.old/conf/httpd.conf /etc/http/conf/httpd.conf
and it said that?
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-25-2003, 02:22 AM
Registered User
 
Join Date: Mar 2003
Posts: 52
ndj1022
hmm, its now saying Cannot create regular file '/etc/http/conf/httpd.conf/': No such file or Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-25-2003, 02:27 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
I put a starter conf file on my site. It's my conf file but just the usual starter stuff with the actual account material removed. Just download it from http://www.premierwebsitesolutions.com/httpd.conf.txt then remove the txt extension and put it in your etc/http/conf directory.

Creating accounts should work after that.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-25-2003, 02:37 AM
Registered User
 
Join Date: Mar 2003
Posts: 52
ndj1022
How do I remove the .txt thingy?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 04-25-2003, 02:39 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
Just rename it, or right-click on the link and just save as httpd.conf.
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 04-25-2003, 02:49 AM
Advanced cPanel/WHM User
Advanced cPanel/WHM User
 
Join Date: Sep 2001
Location: Spain
Posts: 779
Juanra is on a distinguished road
I thought cpanel was still not compatible with redhat 9.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 04-25-2003, 02:56 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
Quote:
Originally posted by Juanra
I thought cpanel was still not compatible with redhat 9.
That could cause a problem.

Does anyone know more about the problems this mismatch could cause?
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc