Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th December 2007, 22:40
bradhawk bradhawk is offline
Member
 
Join Date: Nov 2007
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation URGENT HELP NEEDED!! HTTPD Problem!!

So, earlier today I was changing some stuff in the following files:
/etc/apache2/apache2.conf
/etc/apache2/httpd.conf
/etc/apache2/vhosts/Vhost_ispconfig.conf

I was trying to set up subdomains outside of using ispconfig. I download, edited and then upload the files several times via Filezilla. Now I have a problem.

When I try to start apache2 it fails.
When I try the command
Code:
/etc/init.d/apache2 restart
i get the following error
Code:
* Restarting web server apache2
httpd (no pid file) not running      [fail]
I've done some research and have started and stopped httpd using the command
Code:
/root/ispconfig/httpd/bin/apachectl start
Even when httpd is started I still get the above error. Please help!!
Reply With Quote
Sponsored Links
  #2  
Old 8th December 2007, 01:13
bradhawk bradhawk is offline
Member
 
Join Date: Nov 2007
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Okay, so I'm not exactly sure what changed, but I'm glad that Ubuntu makes backups of files. I restored the /etc/apache2/apache2.conf file and the error went away. Then copy and pasted from the corrupt files ( the newly copied file was missing the ispconfig information ). When I copied that information in the error came back. So I looked through the virtual hosts ispconfig file and notice that in one of the subdomains that I had played with I hadn't changed back the error logs path to the correct path. When I changed it it worked. Who knows.
Reply With Quote
  #3  
Old 8th December 2007, 08:05
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
 
Default

Quote:
Originally Posted by bradhawk
I was trying to set up subdomains outside of using ispconfig.
If you've installed ISPConfig as your Hosting Control Panel, please do use it and try to avoid manual configurations as much as possible.
I mean, when you can do it with ISPConfig, please use it.

You should not edit the file /etc/apache2/vhosts/Vhost_ispconfig.conf at all. When you change something for a site within ISPConfig, the file /etc/apache2/vhosts/Vhost_ispconfig.conf will be overwritten time after time.

I saw your post to late to help you, but i think you did it well.
Restoring the original (configuration) files was a good idea.

And about your creating your subdomains. It's easy to create them within ISPConfig:
On the basis tab of the new site choose the name of your subdomain within the host field and the name of the main domain within the domain field. Make sure that the new subdomain is pointing to your server within DNS-records.
__________________
Hans

MrHostman | Master in managed hosting

Last edited by Hans; 8th December 2007 at 08:12.
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Urgent! SMTP/SASL problem after Kernel update teves Installation/Configuration 17 27th March 2007 11:24
URGENT Web_ problem itgroup Installation/Configuration 11 12th August 2006 17:23
Apache and Tomcat problem! Urgent maroonworks Server Operation 3 24th February 2006 15:14
istalled fine (Fedora core 4) but HTTPD problem edge Installation/Configuration 11 14th December 2005 12:28


All times are GMT +2. The time now is 15:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.