increase domain name length in xpanel

From WebHostingNeeds.com
Jump to: navigation, search

Git version have this change.

ALTER TABLE `users` CHANGE `domainName` `domainName` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT ''

Here is a php script i created to validate home folders

<?php

$link = mysql_connect("localhost", "root", "PASSWORD") or die("failed to connect");
$db = mysql_select_db("XPanel") or die("Unable to select DB");
$sql = 'select *  from users';
$result = mysql_query($sql) or die("Unable to execute : $sql");

while($site_info = mysql_fetch_assoc($result)) {
    $site_folder = '/home/vhosts/' . $site_info['domainName'];
    //$site_folder = $site_info['homedir'];

    if(!is_dir($site_folder)) {
        echo "Folder $site_folder not found\n";
    }
}



xpanel