subdomains onreachable

martexx

Verified User
Joined
Jul 30, 2006
Messages
134
Location
Texel the Netherlands
Hi there,

I wanted php with imap-ssl and imap
and used custombuild to realise this.

After that i got an error:
Starting httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration

recompiled without suphp as i could not fix this even with all the post about it.
(yes i have done them all, busy now for 6 hours)

After recompiling the http.conf is not updated correctly and i got this error

Syntax error on line 41 of /usr/local/directadmin/data/users/beltex/httpd.conf:
Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration

so i commented it out and it seems to work now.

I have deleted the custom templates before this.

The only thing that does not work is subdomains, they dont show and i see no error in the logs. Recreating the templates does not work

redownload the templates does not help. and when i do and let them be rewritten im back again with the same errors.

My question:
am i mistaking the location of custom templates /usr/local/directadmin/data/templates/custom ?

and if not can someone maybe help me with it??

I have this problem for at least a year now (only not the subdomains) but it worked so i was happy.

Now that my subdomains are defect im a little sad.

yes they have virtual server entry's in user http.conf
 
hey

hey Andrea

i used all wich i could find here, one for da and one for custombuild both do not work. They get rewritten, but nog in the good way.

i did a grep
bash-3.2# find . -exec grep -q "suPHP_Engine" '{}' \; -print
./configure/ap2/conf/httpd.conf
./configure/ap2/conf/httpd.conf_2.0
./configure/ap1/conf/httpd.conf
./build

so perhaps i have to edit them, just dont get why
i did custombuild update
clean and so
 
Should be an if there to choose what write in conf depending on if suphp is on or off...

Have you any custom template for httpd.conf in /usr/local/directadmin/data/template/cuostom?

The file name should be virtual_host2.conf
 
mmm i did a sed replace for all instances of suPHP and replaced with #suPHP

so now i can rewrite without problems. just that my subdomains dont work
 
one subdomain is crm2.beltex.nl
beltex.nl works great but the sub does not

bash-3.2# find . -exec grep -q "crm2.beltex.nl" '{}' \; -print
./data/admin/show_all_users.cache
./data/admin/php_safe_mode.cache
./data/tickets/000000/003/000.msg
./data/tickets/000000/076/000.msg
./data/users/beltex/domains.list
./data/users/beltex/crontab.conf
./data/users/beltex/httpd.conf
./data/users/beltex/domains/crm2.beltex.nl.ftp
./data/users/beltex/domains/crm2.beltex.nl.conf
bash-3.2#
 
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> @beltex.nl crm2.beltex.nl
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached


Your named isnt started or firewall blocking port 53

ns1.transip.nl. ['80.69.69.69'] [TTL=7200]
ns2.texels.nl. ['79.99.24.164'] [TTL=7200]
ns1.texels.nl. ['79.99.24.163'] [TTL=7200]

nameservers are not poiting on your ip so the dns should be set on the panel where you have registered the domain unless you change those nameservers with your own.

Those nameservers actually are not set to manage that subdomain, thats why dns dont propagate.

Regards
 
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> @beltex.nl crm2.beltex.nl
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached


Your named isnt started or firewall blocking port 53

ns1.transip.nl. ['80.69.69.69'] [TTL=7200]
ns2.texels.nl. ['79.99.24.164'] [TTL=7200]
ns1.texels.nl. ['79.99.24.163'] [TTL=7200]

nameservers are not poiting on your ip so the dns should be set on the panel where you have registered the domain unless you change those nameservers with your own.

Those nameservers actually are not set to manage that subdomain, thats why dns dont propagate.

Regards

Thanks.. but what could it be? Beltex.nl is on the same box and this still works so firewall comments can be disgarded.
Named must be started for the other websites to be active so thats notm it as well is it?
If the nameservers are not ok, then this also is from DA

I will rewrite dns and see what happens mmmm... wait
perhaps only the secondary server does not know about the subdomains and so thats why it does not work.

Eureka!!!!!

It must be it.


Thanks for the heads up Andrea!!

update:

ok i'll admit i was stupid concerning the dns, named was just not running as i stop al services when compiling... oops
sorry to have wasted your time!

Now to find a way to enable suphp with working templates
 
Last edited:
Beltex.nl work cause prolly those three nameservers

ns1.transip.nl
ns2.texels.nl
ns1.texels.nl

have the domain set for manage dns, so, if you dont add subdomain there will never get propaged, unless those server are on same box (in this case was just named stopped) or if not on same server are all updated to mange the subdomain (but from dig test i did seems not).

Regarding suphp, i suggest you to use mod_ruid2 (instruction for install on this forum) that is much faster cause php will work as cli and not as cgi.

Regards
 
Beltex.nl work cause prolly those three nameservers

ns1.transip.nl
ns2.texels.nl
ns1.texels.nl

have the domain set for manage dns, so, if you dont add subdomain there will never get propaged, unless those server are on same box (in this case was just named stopped) or if not on same server are all updated to mange the subdomain (but from dig test i did seems not).

Regarding suphp, i suggest you to use mod_ruid2 (instruction for install on this forum) that is much faster cause php will work as cli and not as cgi.

Regards

I would love mod_ruid but as im already confused about the multiple ways or systems used to install stuff i'll stick with custombuild and i thought it does not support it.

First i would like to have a stabile system again
 
Back
Top