HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Long domain names (http://www.howtoforge.com/forums/showthread.php?t=11387)

cryptic 14th March 2007 19:30

Long domain names
 
I have a site that I'm moving to ISPConfig with a 29-character domain name. How can I create this domain in ISPConfig?

I understand there is some sort of naming limit, so that when I tried to create the site, the domain was cut off and I couldn't set any user names.

Perhaps I will need to create the site with a shortened version of the domain, and then make manual virtual site entries in httpd.conf.

till 14th March 2007 19:45

The limit for domain names in ISPCionfig is currently 255 chars.

cryptic 14th March 2007 19:47

Quote:

Originally Posted by till
The limit for domain names in ISPCionfig is currently 255 chars.

Is this true for v2.2.9 ? Or, will I have to upgrade to 2.2.11 ?

till 14th March 2007 19:51

Thats true for 2.2.9 too. You can check the database field length, its 255 and in the regex there should be no other lenght limit.

cryptic 14th March 2007 19:58

I see. But I use [DOMAIN]_ for my prefix and it doesnt look like I can have a username longer than 32 characters which leaves me no space to create a user name.

till 14th March 2007 20:03

Quote:

Originally Posted by cryptic
I see. But I use [DOMAIN]_ for my prefix and it doesnt look like I can have a username longer than 32 characters which leaves me no space to create a user name.

Ahh, ok :) Thats something else. Not all linux distributions support usernames longer then 32 Chars, thats why we dont use this prefix by default.

Please change the field user_username in the table isp_isp_domain to varchar 64 or even 255.

You may also have to edit the max length in the username regex in the file /home/admispconfig/ispconfig/plugins/ispconfig_username.plugin.php, but I'am not sure if this is nescessary.

cryptic 14th March 2007 21:37

It doesnt look like I have this field;

> select user_username from isp_isp_domain;
ERROR 1054 (42S22): Unknown column 'user_username' in 'field list'

till 14th March 2007 22:21

I'am sorry the database table is isp_isp_user and not isp_isp_domain.

cryptic 15th March 2007 00:26

I made the changes and that worked, thanks!

BTW, the php file is located under /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php

cryptic 25th August 2007 02:06

After an ISPConfig upgrade, the database is reverted back to 32 characters for the user name and all my sites with long domains have their user names shortened now. (Which breaks user email obviously)

How can I fix this?


All times are GMT +2. The time now is 20:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.