A Couple of probs after upgrading server

web12

Well-Known Member
Nov 20, 2002
240
0
166
I seem to have one through the whole upgrade process on php/mysql & apache with relatively little problem, however this one is stumping me a little.

I think this is 3 seperate problems with the apache config, none of which are making the websites unusable, but something is obviously not right.

First I noticed of anything wrong was that when you went to domain.com/cpanel or webmail you got an internal server error.

The error_log indicated this:-
[Thu Jan 17 19:05:05 2008] [error] [client 11.22.33.44] (22)Invalid argument: setting of resource limits failed
[Thu Jan 17 19:05:05 2008] [error] [client 11.22.33.44] Premature end of script headers: wredirect.cgi
[Thu Jan 17 19:05:05 2008] [error] [client 11.22.33.44] File does not exist: /home/account/public_html/500.shtml
Following a fix in another thread, commenting out RlimitMEM and RlimitCPU fixes this problem, but is this surely the right thing to do?

This brought me on to the other 2 problems, as when I restarted apache I got the following errors in the apache logs:-
[Thu Jan 17 19:13:01 2008] [notice] SIGHUP received. Attempting to restart
[Thu Jan 17 19:13:01 2008] [error] VirtualHost 11.22.33.44:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Thu Jan 17 19:13:02 2008] [warn] mod_rewrite: Running external rewrite maps without defining a RewriteLock is DANGEROUS!
[Thu Jan 17 19:13:02 2008] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5 configured -- resuming normal operations
All the websites appear to be working fine, but those errors are slightly concerning.

Any ideas?
 

web12

Well-Known Member
Nov 20, 2002
240
0
166
I think ive worked out whats causing the mixing ports error when httpd restarts.

When I comment out the following box in the httpd.conf file it doesnt throw up the error, but is it safe to remove this? and will it just get put back in there on the next update?

# DO NOT EDIT. AUTOMATICALLY GENERATED
NameVirtualHost 11.22.33.44:443
NameVirtualHost 11.22.33.44:80
NameVirtualHost *
# DO NOT EDIT. AUTOMATICALLY GENERATED