Forum Moderators: phranque
Am not familiar with Apache and don't know most of the commands to run it and stuff.
Well i used to face this problem right from the beginning actually, apache used to hang up on me even when i had 500 or so sub-domains on my server.
I asked this question in the DirectAdmin forums and i was helped with this
Change the lines
---------------------------------------------------------- CustomLog /var/log/httpd/domains/¦DOMAIN¦.¦SUB¦.bytes bytes
CustomLog /var/log/httpd/domains/¦DOMAIN¦.¦SUB¦.log combined
ErrorLog /var/log/httpd/domains/¦DOMAIN¦.¦SUB¦.error.log
----------------------------------------------------
To
code:------------------------------------------------------
CustomLog /var/log/httpd/domains/¦DOMAIN¦.bytes bytes
CustomLog /var/log/httpd/domains/¦DOMAIN¦.log combined
ErrorLog /var/log/httpd/domains/¦DOMAIN¦.error.log
-----------------------------------------------------------
Now this served as a temporary solution and it helped me add sub-domains without any problems.
Now I'm using DirectAdmin for my control panel and have around 30 websites hosted on my server, but the problem is that I have over 3500 sub-domains on my server.
So if i add a few sub-domains, apache hangs up on me, i can still access my direct-admin control panel from port 2222
and access the server through ssh using putty.
I re-asked this question in the same forums, someone suggested me this url.
[help.directadmin.com...]
But that's totally rough work and am not sure if that's the perfect guide as it's not detailed enough for a novice like me to do that.
Pls Help! If you can stress out the exact code on how to do this, i'll be able to get through this.
Best Regards
Rj
It is my understanding that you count every domain as one website. In that case you have opened 3 * 30 = 90 log files. This is not a problem for Apache to handle so you are probably not running out of file descriptors.
With the information you gave it is not possible to do a detailed analysis. Some things you have to investigate:
I have 1GB ram
What happens is, the websites are down port 80, if you try visiting any of the domains hosted, let's say www.a.com it will try try try and then go as a cannot find server page.
I don't know much about how to check apache errors and stuff, If you can detail out some stuff, i'd be able to do something
Best Regards