Ubuntu 8.04 bind9 dns do not Start on Pleks

Using Plesk 8.6 -9 on an Ubuntu 8.04 server ran okay until it became apparent that named wasn’t starting.

The problem is the apparmor!

It is apparmor :

sudo /etc/init.d/apparmor stop
Unloading AppArmor profiles : done.
laurent@madonie:~$ sudo /etc/init.d/bind9 start
* Starting domain name service… bind
…done.

What should I do then, let things like that with apparmor stopped ? Continue reading “Ubuntu 8.04 bind9 dns do not Start on Pleks”

Javascript Function to Check or Uncheck all Checkboxes

Javascript Function to Check or Uncheck all Checkboxes

This Javascript function will check or uncheck all the checkboxes in an HTML form.

This function is specially designed for dynamic pages with varying numbers of checkboxes. Unlike other functions out there, it will work without error even if there are no checkboxes or there is only one checkbox. It is also significantly faster for long lists, because it saves the length of the checkbox in a variable, instead of recalculating it in the loop. Finally, the function is granted to the public domain–use it as you wish. Continue reading “Javascript Function to Check or Uncheck all Checkboxes”

PLESK CHANGING HOSTNAME IN PLESK

After using your Plesk server for some time, you might want to, or have to change your server’s hostname. Assuming your server runs Fedora Core or Redhat, you’ll have to make changes in the following locations:

  • /etc/hosts
    Your current hostname should be here behind the server’s IP address, change this to the new hostname
  • /etc/sysconfig/network
    You should have a HOSTNAME variable here, change this to your new hostname.
  • /var/qmail/control/me
    This contains the old hostname, change it to your new hostname to make qmail identify itself as the new hostname.
  • /etc/httpd/conf/httpd.include
    You should have a ServerName variable here, change it to your new hostname.
  • Change the servers hostname while it’s running, normally this is set at boot.
    hostname <newhostname>
  • Set the new hostname inside Plesk’s database:
    mysql -u admin -p`cat /etc/psa/.psa.shadow`
    use psa;
    update misc set val=’NEWHOSTNAME’ where param=’FullHostName’;

Now restart Plesk to activate your changes:
/etc/init.d/psa stopall
/etc/init.d/psa stop
/etc/init.d/psa start

Continue reading “PLESK CHANGING HOSTNAME IN PLESK”