Recent content by alessandro123

  1. A

    Migrate MySQL databases

    Hello, are there any ways to migrate some MySQL databases from on DirectAdmin host to a dedicated MySQL server? I know how to dump and restore databases, but are there any script that will migrate even database users?
  2. A

    Apache SIGTERM

    I'm recieving a lot of SIGTERM. How can I detect how is calling that? Every times that apache il restared it takes more or less 2 minutes and our customers are sending us some complains. [Thu Jun 18 10:31:02 2009] [notice] caught SIGTERM, shutting down [Thu Jun 18 10:35:01 2009] [notice]...
  3. A

    Can I use an Internal License?

    We are an hosting provider and we even sell dedicated servers. Can we use, for shared hosting an internal DA license or we need to buy an Extenal license?
  4. A

    Move mysql databases to user's home dir

    Any drawback to move mysql databases to user's homedir? For example in: /home/myuser/mysql/db1 I'm running out of space in /var filesystem and moving database should be very simple with this like in database_create_post.sh: mv /var/lib/mysql/$database ln -s /home/$username/mysql/$database...
  5. A

    suPHP and multiple php.ini

    Hi all in the next week I'll try to convert an existing DA box made with mod_php to suphp. What I whant Is to jail users to their home dir and I can do this with open_basedir. I know that i'll have to create a php.ini file for every user and i'll have to set it in readonly (chattr +i) to...
  6. A

    quota_update_pre.sh

    I think that should be made a script called quota_update_pre.sh executed every time DA update quota for a user. For example, when DA upgrade quota for 5 user, that script should be ran 5 times. The only environmental variable should be "username" if that script returns everything but 0, then...
  7. A

    PowerDNS

    I'm developing a dns_write_post.sh script that will populate some external PowerDNS servers. With that, should be possibile to manage dns from external servers with ease. I think that should be usefull. I'll post here after done.
  8. A

    User, Apache, FTP & Umask

    Some of our customers are using webbased CMS that will create files from php. When a file is created in php, it will be owned by apache user (we are not using suphp for some security questione like unlockable php.ini and basedir). How can we set a default umask for a directory or for apache...
  9. A

    Apache Crash dump on CentOS

    *** glibc detected *** /usr/sbin/httpd: double free or corruption (!prev): 0x000000000d8dc9f0 *** ======= Backtrace: ========= /lib64/libc.so.6[0x34eaa71ce2] /lib64/libc.so.6(cfree+0x8c)[0x34eaa7590c] /usr/lib/apache/libphp5.so[0x2b3ecee9bc6b]...
  10. A

    dns_(create|update|delete)_post.sh

    is possibile to add some script that are called when a dns record is addedd, deleted or updated? So that is possibile to create or update some external dns.
  11. A

    DNS Dump

    I think that should be usefull to add an API to dump all dns records. For example: CMD_API_DNS_DUMP www.mydomain.com A 1.2.3.4 mail.mydomain.com A 1.2.3.5 mydomain.com MX 10 1.2.3.6 www.mydomain2.com A 1.2.3.4 mail.mydomain2.com A 1.2.3.5 mydomain2.com MX 10 1.2.3.6 and so on, with that...
  12. A

    Addon domains

    Hi, sometime one customers is unable to add a domain. The custom script "domain_create_post.sh" is executed correctly, but in directadmin the newly created domain is not present. Where can I find any log or any erorr that prevents customers to create a domain? Thank you.
  13. A

    Lot of "Unable to delete bytes log" errors

    Hi all, I'm recieving a lot of "Unable to delete bytes log: /var/log/httpd/domains/<mydomain>.bytes : Error truncating /var/log/httpd/domains/<mydomain>..bytes : No such file or directory<br>" errors. How can I solve this?
  14. A

    Pre-database creation script

    Hi all. Is possibile to catch a database creation? We would like to create some symlink for databases. For example, we would like to symlink a user database to the homedir instead having all databases inside /var/lib/mysql. Can I move the created database from /var/lib/mysql to...
  15. A

    Custom group to system user

    Hi all, is possibile to add system user to custom group automagically? For example, we would like that all system user that will be created will be inside their own group and even under apache group. Is that possibile? Thank you.
Back
Top