• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

a virtual host error..

MicGoogle

New Member
Code:
[Sun Mar 15 16:00:38 2009] [error] VirtualHost XX.XX.XXX.XXX:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

is the error i get from my cron job which is:
Code:
 php -q /home/myroothome/public_html/secure/cron/cronjob.php -- job=httpd_conf -apache2

however going to "vi /etc/httpd/conf/httpd.conf"
in root ssh i scrolled down to what i think is my root config.. here it is.. can someone help me?

Code:
# DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
NameVirtualHost XX.XX.XXX.XXX:80
NameVirtualHost *
# DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.

<VirtualHost XX.XX.XXX.XXX:80>
    <IfModule mod_userdir.c>
        UserDir disabled
    </IfModule>
    ServerName vps.myserver.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin myemail@gmail.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
</VirtualHost>
 
k did what you guys told me and saved it and then distilled it to make sure the changes take effect next time

during distillation this is what i got:

Code:
root@hastyhost [~]# /usr/local/cpanel/bin/apache_conf_distiller --update
info [directives] Creating missing document root /home/naruto/public_html for naruto
info [directives] Creating missing document root /home/habbinfo/public_html for habbinfo
info [directives] Creating missing document root /home/yunlhuan/public_html for yunlhuan
info [directives] Creating missing document root /home/feixue0/public_html for feixue0
info [directives] Creating missing document root /home/bigger12/public_html for bigger12
info [directives] Creating missing document root /home/zaq123/public_html for zaq123
info [directives] Creating missing document root /home/yzf366/public_html for yzf366
info [directives] Creating missing document root /home/leike/public_html for leike
info [directives] Creating missing document root /home/godtype/public_html for godtype
info [directives] Creating missing document root /home/remora/public_html for remora
info [directives] Creating missing document root /home/ql551/public_html for ql551
info [directives] Creating missing document root /home/dlxtd/public_html for dlxtd
info [directives] Creating missing document root /home/gannisa/public_html for gannisa
info [directives] Creating missing document root /home/joban/public_html for joban
info [directives] Creating missing document root /home/mengyuan/public_html for mengyuan
info [directives] Creating missing document root /home/xh60008/public_html for xh60008
info [directives] Creating missing document root /home/pengjun/public_html for pengjun
info [directives] Creating missing document root /home/ahmed/public_html for ahmed
info [directives] Creating missing document root /home/upadesh/public_html for upadesh
info [directives] Creating missing document root /home/bank/public_html for bank
info [directives] Creating missing document root /home/easonyyh/public_html for easonyyh
info [directives] Creating missing document root /home/wulaxia/public_html for wulaxia
info [directives] Creating missing document root /home/long/public_html for long
info [directives] Creating missing document root /home/nedjari/public_html for nedjari
info [directives] Creating missing document root /home/zaibin/public_html for zaibin
info [directives] Creating missing document root /home/albin/public_html for albin
info [directives] Creating missing document root /home/zhiming/public_html for zhiming
info [directives] Domain ownership conflict detected for mydomain.org, users nobody, someuserrrr
info [directives] Creating missing document root /home/flyangle/public_html for flyangle
info [directives] Creating missing document root /home/hao520/public_html for hao520
info [directives] Creating missing document root /home/cfbl/public_html for cfbl
info [directives] Creating missing document root /home/fani/public_html for fani
info [directives] Creating missing document root /home/totti/public_html for totti
info [directives] Creating missing document root /home/eries/public_html for eries
info [directives] Creating missing document root /home/liudong/public_html for liudong
info [directives] Creating missing document root /home/ealong/public_html for ealong
warn [apache_conf_distiller] Unable to determine domain vps.domain.org ownership. Attempting lookup on domain hastyhost.org (manually added domain).
warn [apache_conf_distiller] Unable to determine domain vps.mydomain.org ownership. Setting to user to 'nobody'.
Distilled successfully
root@hastyhost [~]#

seems alot of stuff was missing document root b/c of the virtual host error

so i waited for the new cron job to come in and this is what i got..
Code:
Warning: DocumentRoot [/home/wulaxia/public_html] does not exist
Warning: DocumentRoot [/home/hao520/public_html] does not exist
Warning: DocumentRoot [/home/cfbl/public_html] does not exist
Warning: DocumentRoot [/home/bigger12/public_html] does not exist
Warning: DocumentRoot [/home/zhiming/public_html] does not exist
Warning: DocumentRoot [/home/zaibin/public_html] does not exist
Warning: DocumentRoot [/home/nedjari/public_html] does not exist
Warning: DocumentRoot [/home/upadesh/public_html] does not exist
Warning: DocumentRoot [/home/long/public_html] does not exist
Warning: DocumentRoot [/home/godtype/public_html] does not exist
Warning: DocumentRoot [/home/totti/public_html] does not exist
Warning: DocumentRoot [/home/habbinfo/public_html] does not exist
Warning: DocumentRoot [/home/liudong/public_html] does not exist
Warning: DocumentRoot [/home/joban/public_html] does not exist
Warning: DocumentRoot [/home/gannisa/public_html] does not exist
Warning: DocumentRoot [/home/yzf366/public_html] does not exist
Warning: DocumentRoot [/home/remora/public_html] does not exist
Warning: DocumentRoot [/home/ealong/public_html] does not exist
Warning: DocumentRoot [/home/leike/public_html] does not exist
Warning: DocumentRoot [/home/dlxtd/public_html] does not exist
Warning: DocumentRoot [/home/albin/public_html] does not exist
Warning: DocumentRoot [/home/fani/public_html] does not exist
Warning: DocumentRoot [/home/easonyyh/public_html] does not exist
Warning: DocumentRoot [/home/yunlhuan/public_html] does not exist
Warning: DocumentRoot [/home/xh60008/public_html] does not exist
Warning: DocumentRoot [/home/mengyuan/public_html] does not exist
Warning: DocumentRoot [/home/bank/public_html] does not exist
Warning: DocumentRoot [/home/feixue0/public_html] does not exist
Warning: DocumentRoot [/home/zaq123/public_html] does not exist
Warning: DocumentRoot [/home/ql551/public_html] does not exist
Warning: DocumentRoot [/home/pengjun/public_html] does not exist
Warning: DocumentRoot [/home/flyangle/public_html] does not exist
Warning: DocumentRoot [/home/naruto/public_html] does not exist
Warning: DocumentRoot [/home/eries/public_html] does not exist
Warning: DocumentRoot [/home/ahmed/public_html] does not exist
[Tue Mar 17 22:10:38 2009] [error] VirtualHost XX.XX.XXX.XXX:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

i'm hoping tomm daylight will help the server to recognize new changes and stop outputting errors lol, but really confused?
 
i'm hoping tomm daylight will help the server to recognize new changes and stop outputting errors lol, but really confused?
I have to say that I see those arrors strange as well. Have you had everything working properly before?
 
So you ran both

/usr/local/cpanel/bin/apache_conf_distiller --update
/usr/local/cpanel/bin/build_apache_conf

?
Because
# Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the configuration file. To have modifications retained, all modifications must be checked into the configuration system by running: #

So you'll need to change it in other places, Google around. Hope you get it sorted.
 
I removed the NameVirtualHost * and the error seemed to be going away except i got a bunch of list of accounts that had missing virtual host directives missing.. and everytime i distilled and reloaded the apache conf file, it reloaded the NameVirtualHost * again and i've been trying to open the include files

vi /usr/local/apache/conf/includes/pre_virtualhost_global.conf

but when i open the include files to make the permanent changes i can't see anything releveant all i see is

~
~
~
~
~
~


.. and basically no texts..

and here was the cron job error i got ..
also i tried nano (a different editor) to try to open it up but that was no to no avail..
anyway i can correct the errors below though?
Code:
Warning: DocumentRoot [/home/ahmed/public_html] does not exist
Warning: DocumentRoot [/home/albin/public_html] does not exist
Warning: DocumentRoot [/home/bank/public_html] does not exist
Warning: DocumentRoot [/home/bigger12/public_html] does not exist
Warning: DocumentRoot [/home/cfbl/public_html] does not exist
Warning: DocumentRoot [/home/dlxtd/public_html] does not exist
Warning: DocumentRoot [/home/ealong/public_html] does not exist
Warning: DocumentRoot [/home/easonyyh/public_html] does not exist
Warning: DocumentRoot [/home/eries/public_html] does not exist
Warning: DocumentRoot [/home/fani/public_html] does not exist
Warning: DocumentRoot [/home/feixue0/public_html] does not exist
Warning: DocumentRoot [/home/flyangle/public_html] does not exist
Warning: DocumentRoot [/home/gannisa/public_html] does not exist
Warning: DocumentRoot [/home/godtype/public_html] does not exist
Warning: DocumentRoot [/home/habbinfo/public_html] does not exist
Warning: DocumentRoot [/home/hao520/public_html] does not exist
Warning: DocumentRoot [/home/joban/public_html] does not exist
Warning: DocumentRoot [/home/leike/public_html] does not exist
Warning: DocumentRoot [/home/liudong/public_html] does not exist
Warning: DocumentRoot [/home/long/public_html] does not exist
Warning: DocumentRoot [/home/mengyuan/public_html] does not exist
Warning: DocumentRoot [/home/naruto/public_html] does not exist
Warning: DocumentRoot [/home/nedjari/public_html] does not exist
Warning: DocumentRoot [/home/pengjun/public_html] does not exist
Warning: DocumentRoot [/home/ql551/public_html] does not exist
Warning: DocumentRoot [/home/remora/public_html] does not exist
Warning: DocumentRoot [/home/totti/public_html] does not exist
Warning: DocumentRoot [/home/upadesh/public_html] does not exist
Warning: DocumentRoot [/home/wulaxia/public_html] does not exist
Warning: DocumentRoot [/home/xh60008/public_html] does not exist
Warning: DocumentRoot [/home/yunlhuan/public_html] does not exist
Warning: DocumentRoot [/home/yzf366/public_html] does not exist
Warning: DocumentRoot [/home/zaibin/public_html] does not exist
Warning: DocumentRoot [/home/zaq123/public_html] does not exist
Warning: DocumentRoot [/home/zhiming/public_html] does not exist
Warning: DocumentRoot [/home/feixue0/public_html/951] does not exist
Warning: DocumentRoot [/home/feixue0/public_html/951php] does not exist
Warning: DocumentRoot [/home/feixue0/public_html/php] does not exist
 
When you reload the conf, it overwrites, that's how it works. That's why they say don't manually edit it. Or if you do, you need to edit more than the conf file, so the changes aren't over written. You can find out what ones on Google.

About the DocumentRoot warning, I don't know...
 
DocumentRoot errors are because the home directories don't exist, so the users have been removed but the entries in your httpd.conf still exist.

You need to clean up your httpd.conf file.
 
I was thinking that would be it, but I thought it was the simple answer, that would turn out to be the stupidest. OP: Do those accounts exist in cPanel?
 
yes the accounts exist
the thing is i edit the files (by removing the NameVirutalHost * but when i distill or do what post #6 above said it goes back to the very old config
but now i no longer get the virtual port missing error seen below:
Code:
[Sun Mar 15 16:00:38 2009] [error] VirtualHost XX.XX.XXX.XXX:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

Instead now i get DocumentRoot missing error everytime i setup a new account
heres my current httpd.conf if more if it needs to be seen let me know
Code:
# SUEXEC is supported

Include "/usr/local/apache/conf/includes/pre_virtualhost_global.conf"
Include "/usr/local/apache/conf/includes/pre_virtualhost_2.conf"

# DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
NameVirtualHost XX.XX.XXX.XXX:80
NameVirtualHost *
# DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.

<VirtualHost XX.XX.XXX.XXX:80>
    ServerName hostname.mydomain.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin myemail@gmail.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
    UserDir disable
</VirtualHost>


# Default vhost for unbound IPs

<VirtualHost *>
    ServerName hostname.mydomain.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin myemail@gmail.com
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
    UserDir disable
</VirtualHost>

I tried to edit the include files but whenever i open them in ssh editor all i see is
~
~
~
~
 
Back
Top