Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NameVirtualHost *:0 has no VirtualHosts ...done.
#1
I started getting this error, due to this apache2 can not start.

Please advice.

Restored from old drupal forum, for user uid:1055 usernameConfusedkynet104
You may reset your password to access your new account here.
Reply
#2
ensure that you have following lines in /etc/apache2/ports.conf

NameVirtualHost *
Listen 80


Restored from old drupal forum, for user uid:1055 usernameConfusedkynet104
You may reset your password to access your new account here.
Reply
#3
this is my ports.conf


# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default

NameVirtualHost *
Listen 80

<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
look at following files and match &lt;VirtualHost *&gt; with Namevirtualhost directive,
They should be similar,

/etc/apache2/sites-enabled/000-default
/var/www/vhosts/ehcp/apachehcp.conf -&gt; you may empty this file, since it is re-constructed by ehcp when you do syncdomains in ehcp
/var/www/vhosts/ehcp/apachetemplate

my files for ex:
<code>
root@ehcpdeveloper-yenihdd:/web/ehcp# cat apachetemplate
#____________start of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________
# explanation {aciklama}
# Namevirtualhost *:80
# &lt;VirtualHost *:80&gt;

&lt;VirtualHost *&gt;
ServerName {domainname}
ServerAlias www.{domainname}
UseCanonicalName Off
DocumentRoot {homedir}/httpdocs

# this combined log format is understandable by webalizer... some other formats are not recognised by webalizer.. thats why, specified here explicitly..

LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined

php_admin_value open_basedir {homedir}
php_admin_value upload_tmp_dir {homedir}/phptmpdir

{customhttp}

&lt;/VirtualHost&gt;

&lt;VirtualHost *&gt;
ServerAlias webmail.{domainname}
DocumentRoot /var/www/vhosts/ehcp/webmail

LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined


php_admin_value open_basedir /var/www/vhosts/ehcp/webmail

&lt;/VirtualHost&gt;


#____________end of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________






root@ehcpdeveloper-yenihdd:/etc/apache2# cat ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default

NameVirtualHost *
Listen 80

&lt;IfModule mod_ssl.c&gt;
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
&lt;/IfModule&gt;


root@ehcpdeveloper-yenihdd:/etc/apache2# cat sites-enabled/000-default
&lt;VirtualHost *:80&gt;
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
&lt;Directory /&gt;
Options FollowSymLinks
AllowOverride None
&lt;/Directory&gt;
&lt;Directory /var/www/&gt;
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
&lt;/Directory&gt;

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
&lt;Directory "/usr/lib/cgi-bin"&gt;
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
&lt;/Directory&gt;

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
&lt;Directory "/usr/share/doc/"&gt;
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
&lt;/Directory&gt;

&lt;/VirtualHost&gt;


</code>

Restored from old drupal forum, for user uid:1055 usernameConfusedkynet104
You may reset your password to access your new account here.
Reply
#5
I have a VPS and I installed EHCP. It works great.

My problem is that domains I add domain in EHCP doesn't show unless I manually add the domain in my VPS. I have to manually add dns zones from the VPS panel or the domain will not work.

How can i solve this? What I want is to just add the domain in the EHCP and not need to add the domain in my VPS admin panel. Any idea?

Thanks.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#6
look at your /etc/bind/named.conf file
there should be a line at end:
include "/etc/bind/named_ehcp.conf";

if there is no such file, then, add it.

Additionally,
check that you have a file dnszonetemplate in your ehcp dir.
And make sure it has something in it like:

<code>
$TTL 86400
@ IN SOA ns.{domainname}. {dnsemail} (
{serial} ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum

{domainname}. IN NS ns.{domainname}.
ns.{domainname}. IN A {dnsip}
ns1.{domainname}. IN A {dnsip}
ns2.{domainname}. IN A {dnsip}
dns.{domainname}. IN A {dnsip}
dns1.{domainname}. IN A {dnsip}
dns2.{domainname}. IN A {dnsip}
{domainname}. IN A {webip}
mail.{domainname}. IN A {mailip}
webmail.{domainname}. IN A {webip}
ftp.{domainname}. IN CNAME {domainname}.
www.{domainname}. IN CNAME {domainname}.
{domainname}. IN MX 10 mail.{domainname}.
* IN A {webip}

{customdns}

</code>

if it has something else, or empty. fill it with this.
dns zone files are generated from this.
Additionally, make sure that you have ehcp daemon running.

To check that:
ps aux | grep index
you will see like:
$ ps aux | grep index
root 9384 0.0 0.6 36556 13300 ? S 11:58 0:02 php index.php daemon


Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.
Reply
#7
Thanks for the really quick reply.

I checked all those you listed, and I have them like that.

My issue is when I add the domain in EHCP, it doesnt really work unless I add the domain to the VPS (i use slicehost) slice manager panel. It is kinda tiring cause i have to do it twice - one in EHCP and one in the VPS panel.

Also, say for example, i add a subdomain to one of my domains in EHCP, it will not work unless i add an A zone entry to the original domain in the Slicehost Control Panel.

I am thinking it should be adding automatically.

Everything else works fine. You have any idea why this happens?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#8
i understand now your case,
it seems that your vps uses some type of redirection or web translation, and it seems that you have some type of ip sharing..

may i ask you ,
1- does your vps have a dedicated real ip address ? (if it has, ehcp should be enaugh for a normal hosting operation)
what is your ip ? (you may write like xx.yy.65.55)
2- can you provide more information about your vps-slice manager? at which ip your slice manager works ?
3- does anybody else shares your ip ?
4- where is slice manager running ? are you able to access slice manager files ? is it php or opensource ?

i ask these to find a solution for your case.

Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.
Reply
#9
Yes, my vps have a dedicated ip address - my ip is xx.yy.234.226. It is from www.slicehost.com. Aside from complete SSH access to my VPS, it has a slice manager control panel. The vps comes with a clean install of debian (and some other linux releases).


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#10
you did not answer all of my questions,
if you have a dedicated ip address, then you should do nothing related to hosting, with slice control panel...
does anybody else shares your ip ?
and read questions above again...

Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping