Discussion in 'Installation/Configuration' started by bradhawk, Dec 7, 2007.

  1. bradhawk

    bradhawk New Member

    So, earlier today I was changing some stuff in the following files:

    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
    /etc/init.d/apache2 restart
    i get the following error
    * 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
    /root/ispconfig/httpd/bin/apachectl start
    Even when httpd is started I still get the above error. Please help!!
  2. bradhawk

    bradhawk New Member

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

    Hans Moderator ISPConfig Developer

    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.
    Last edited: Dec 8, 2007

Share This Page