Version 1.32.2

Released: 2008-07-13

user.history in backups/restores new

Include the user.history in backups/restores. It will overwrite any previous info in the user.history that is currently present (it doesn't merge, just copies)

add default domain to CMD_API_ALL_USER_USAGE new

For each entry in the output of CMD_API_ALL_USER_USAGE, there is now a field called "default" which will hold the default domain for that user.

show domain pointers in CMD_API_ADDITIONAL_DOMAINS new

Another item in the output of CMD_API_ADDITIONAL_DOMAINS will be "pointers" for each domain.

pointers=pointer1.com|pointer2.com|pointer3.com|etc..

This will also be enabled with this directadmin.conf value:

show_pointers_in_list=1

which is set to 1 by default.

Ability to mark Messages as "read" new

Added a button to the messages system:

Mark as Read

which will set any selected messages to be already "read".

It's the same as the button in the tickets system.. only in the message system.

AWSTATS new

BETA

Integrated awstats into DirectAdmin.

It's a global on/off swtich, and not a per domain setup.

If you wish to enable this feature for testing or use, you must install awstats.

Type:

cd /usr/local/directadmin/scripts
./awstats.sh

This will do several things.

  • download and install the awstats setup.

  • add awstats=1 to your directadmin.conf

  • add webalizer=0 in your directadmin.conf (webalizer will be shut off, you can override it if you want both)

Note that due to the way the log names are setup in config files, the rotation of apache logs will be slightly different during the tally.

Before the tally, all logs will not be renamed to .log.1.

Logs will be processed in place.

This has side effects in that an HUP is not going to be sent to the master httpd process right before the tally. During the rotation for each user, logs will simply be truncated instead of deleted (As they always have been for single-user tallys).

Testers should keep an eye on the effects of truncating a live log without the instant apache restart. Likely it will be fine. Also apache is restarted post tally as usual anyway.

awstats are places as static html pages into:

/home/user/domains/domain.com/awstats

the config and tally data are stored in:

/home/user/domains/domain.com/awstats/.data

The advantage of having the data under /home/user, is that users can bring it with them when their accounts are moved around.

The benefit of the integrated awstats over many plugins is the security. Some awstats plugins use chmod 777 for many files and folders, meaning anyone on the system has the ability to change things around. With this setup, files are chowned to root, and chmod to a minimal setting, thus things are safe, secure, and private.

Like webalizer, with this setup, subdomains will have their own awstats page.

DirectAdmin will also parse the awstats data files to grab the bandwidth for the subdomains, so as long as the awstats are being processed for those subdomains, the bandwidth for each subdomain will show up in DA on the subdomains page (just like it did for webalizer, using the webalizer stats).

Lastly, the ../stats symbolic link on the domain stats page will point to ../awstats if the link is created. (instead of the ../stats with webalizer)

zip and unzip to filemanager (SKINS) new

Ability to create and uncompress zip files from the filemanager, similar to the tar.gz function already present.

This feature is in BETA, and is disabled by default.

If you wish to try it out, set:

zip=1

in your directadmin.conf file, and restart DA.

This feature requires that you have:

/usr/bin/zip
/usr/bin/unzip

and doesn't install them for you.

It's your responsibility to ensure they're present.

It's important to note that you add files to a file.zip that already exists, the zip program doesn't simply wipe the old zip file. It adds the new files to the old zip giving you an even bigger zip file with the old and new files. If you don't want this functionality, delete the old zip file before creating a new one.

The zip command used by DA is essentially the following:

cd /home/user
/usr/bin/zip -ry /home/user/path/to/file.zip path/to/file path/dir

Extraction:

/usr/bin/unzip -qo /home/user/path/to/file.zip
SKINS:

user/filemanager/main.html

replace:

.tar.gz

with:

|*if HAVE_ZIP="yes"|
.<select name=type><option selected>tar.gz</option><option>zip</option></select>
|*else|
.tar.gz
|*endif|

Compression of zip via API:

CMD_API_FILE_MANAGER
Method: POST
action=compress
path=/path/youre/in
file=compressedname
type=zip

add failed multiserver syncs to task.queue for retry fixed

If you're using the multiserver setup and the send fails because the other box is down, this fix will notice that it didn't make it and will add an entry to the task.queue to try again later for "x" number of attempts until it succeeds or runs out of attempts.

directadmin.conf option:

remote_dns_retries=0

the default will be 0.

If you want it to do retries, set this to a higher value and restart DA.

Just be careful with this. Failed syncs will attempt to resend the data every minute until the retry counter hits zero. If, in that time, you decide to delete the domain, then the next retry will be told to sync a domain that doesn't exist (basic checks do exist for this), but don't set the retry count too high, only a value for the expected maximum duration of downtime the other box has. For example if it's a reboot, then at most, set it to 10.

Also, if you have multiple IPs in the multiserver setup and one fails, but the other works fine, this retry will resend for both IPs, so the functional dns server will get as many copies as retries.

The related task.queue command will be:

echo "action=sync&type=cluster&value=domain.com&count=10" >> /usr/local/directadmin/data/task.queue

Force lowercase in pop account edit fixed

If any uppercase letters are used in the username field when changing a password, ensure that it's lower case. Force to lower if it's not.

Select button to enable checkbox on CMD_DB broken fixed

The Select button on the CMD_DB page, used to enable all checkboxes was broken due to a duplicate name "check" in the "Check Table" button, and the javascript table checkbox checker. The fix renamed the table checker "check" to "checkval". A full code and html search was used to ensure no other varibles with that name, since this is a global table change to all tables.

executeCommand: can't figure out what to tally for action=tally&value=username fixed

The error:

executeCommand: can't figure out what to tally for action=tally&value=username

happened if a manual reset for one specific user was issued.

This bug didn't affect the user reset itself, the reset does happen.

The error was the tally command the dataskq re-added to the task.queue for re-counting the "leftovers" from the reset. Esentially numbers just higher than 0, so the bug was quite minor, but a bug no less.

The fix was to add the missing &type=user to the end of the string.

Strange characters while creating tar.gz files in the filemanager fixed

If you get an "error while compressing file.tar.gz" type error, with a chdir error and escaped characters, it was due to two calls to getpwnam in the same string generation. What this did was wiped the result for the first one when the 2nd call was generated. Once both calls were completed, then the calling string function tried to assemble the string with a non-existent memory space. Fix is to call getpwnam once to it's own string, and use the new string twice in the assembly of the setup. The error happened randomly depending on the length and charcters of the name of the tar.gz file.

Due to confusion relating to this recent change:

~username/domain.com as default

We are going to be changing the default setting for the:

old_public_html_link=1

to the value of 1.

The option is still going to be present if you like this feature, if you don't override it you will have the previous linked method for the /home/username/public_html links.

The directory method, although more logical, caused confusion due to the name of the public_html directory, which implies "place for your files" which only applied when accessing http://1.2.3.4/~username. Users were confused when the places their files into this folder and couldn't see their files when accessing their domain (which would have been http://1.2.3.4/~username/domain.com).

If you anticipate that you will want to use this feature with the directory method (~username/domain.com) then add the old_public_html_link=1 value to your directadmin.conf now, so you won't see any changes when you update to this version of DA.

New function to reset all public_html link to whatever your old_public_html_link value is set to.

For all users:

echo "action=rewrite&value=links" >> /usr/local/directadmin/data/task.queue

For one specific user (eg: bob):

echo "action=rewrite&value=links&user=bob" >> /usr/local/directadmin/data/task.queue
Last Updated: