ispCP - Board - Support
[possible bug] subdomains not working - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [possible bug] subdomains not working (/thread-5414.html)

Pages: 1 2 3 4


RE: [possible bug] subdomains not working - ensit - 01-21-2009 07:22 PM

(01-21-2009 12:42 PM)ensit Wrote:  
(01-13-2009 01:28 AM)sci2tech Wrote:  This is the problem:
Code:
</IfModule>    # httpd sub entry PHP2 support END.
modify in
Code:
</IfModule>
# httpd sub entry PHP2 support END.
(add a new line before #) Please tell me what distro you use to correct in trunk.

Yes, Got it
This was my problem and its solved now

Its a temporary solution.
have any way to solve it permanently?
Any solution???
Help please


RE: [possible bug] subdomains not working - sci2tech - 01-21-2009 07:27 PM

You need to also modify template (/etc/ispcp/apache/parts).


RE: [possible bug] subdomains not working - ensit - 01-21-2009 07:37 PM

Yah, I do that
But of i make a simple change in any file i got a error which shown that my subdomain status is unknown error.
If i back to the previous stage all are OK.

Any specific solution?????

Specifically where i need to change ????


RE: [possible bug] subdomains not working - laddu - 01-21-2009 08:25 PM

Not working for me either:

this is my sub_entry.tpl:

Code:
cat /etc/ispcp/apache/parts/sub_entry.tpl
<VirtualHost {SUB_IP}:80>

    #
    #User {SUEXEC_USER}
    #Group {SUEXEC_GROUP}
    #

    <IfModule suexec_module>
           SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP}
    </IfModule>

    ServerAdmin     webmaster@{DMN_NAME}
    DocumentRoot    {WWW_DIR}/{DMN_NAME}{MOUNT_POINT}/htdocs

    ServerName      {SUB_NAME}
    ServerAlias     www.{SUB_NAME} {SUB_NAME} *.{SUB_NAME}

    Alias /errors {WWW_DIR}/{DMN_NAME}/errors/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser {DMN_GRP}
    </IfModule>

    # httpd sub entry cgi support BEGIN.
    # httpd sub entry cgi support END.

    # httpd sub entry PHP2 support BEGIN.
    # httpd sub entry PHP2 support END.

    <Directory {WWW_DIR}/{DMN_NAME}{MOUNT_POINT}/htdocs>
        # httpd sub entry PHP support BEGIN.
        # httpd sub entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    Include {CUSTOM_SITES_CONFIG_DIR}/{SUB_NAME}.conf

</VirtualHost>

Domain status 'error unknown'.

In ispcp DB, Table: subdomain, subdomain_status column, for the domain i created I have:

Code:
get_tag() | ERROR: '    # httpd sub entry PHP2 support BEGIN.
' ne '    # httpd sub entry PHP2 support END.
', '    # httpd sub entry PHP2 support BEGIN.
' or '    # httpd sub entry PHP2 support END.
' missing in src !

again I use centos and RC7


RE: [possible bug] subdomains not working - laddu - 01-27-2009 09:41 PM

bump?? someone ?


RE: [possible bug] subdomains not working - joximu - 01-28-2009 01:03 AM

just to be sure:
copy the sub_entry.tpl from a new tar on the server...


RE: [possible bug] subdomains not working - laddu - 01-28-2009 07:42 PM

I manage to resolve it.

But I still have the first error. I add a subdomain but it is not working. I have to manually modify </IfModule> # httpd sub entry PHP2 support END. section to make it to work

Some ideas?

Regards


RE: [possible bug] subdomains not working - joximu - 01-28-2009 08:52 PM

Seems that in one of your tpl files the line is wrong:

</IfModule> # httpd sub entry PHP2 support END.

(a newline is missing)

have a look at /etc/ispcp/apache(2)/parts/*.tpl

/J


RE: [possible bug] subdomains not working - ceco91 - 01-30-2009 07:46 PM

Put some extra newlines in "sub_php2_entry.tpl" using VIM.


RE: [possible bug] subdomains not working - laddu - 01-30-2009 10:45 PM

Same think.

ceco91 pm and I can leave you to have a look on the server.

Regards