admin

This user hasn't shared any biographical information

Homepage: http://www.cdl.gr


Posts by admin

How do I backup my Plesk Server?

On WebSites Explained, Erik posts the following ideas on how to backup your plesk server.  In it, he writes:

If you have a Plesk server or virtual server, I’m sure you have though about how to backup that server. If you haven’t, please think about it now. Once your server dies on you you’ll be so sorry that you will be slamming your head against the wall.

I’ve researched and tried several options to backup my Plesk server and I’d like to share them with you, hopefully saving you some work and headaches. More >

Ubuntu Serious server hangups – MaxClient settings

server reached MaxClients setting, consider raising the MaxClients setting.

Please raise MaxClients and ServerLimit and restart Apache.
Edit /etc/apache2/apache2.conf and edit the follow!
or /etc/httpd/httpd.conf

Plesk DirectoryIndex index.html overruled by index.php

When building a site in PHP, you might want to put an index.html up to keep unwanted eyes away from your new site.
The index.html however is overruled by index.php. Here’s how to fix this:

The file /etc/httpd/conf.d/php.conf contains the directive to add index.php to the DirectoryIndex. This directive overrules the previous made directive which contains the index.html.
Simply add index.htm and/or index.html in front of index.php, this will look something like:
DirectoryIndex index.html index.htm index.php index.php3
Now restart apache and you’re all done.

on debian and ubuntu

/etc/apache2/mod_enabled/dir.conf

Merging 2 partitions into one

As ZLim noted, both Acronis‘ Disk Director and Symantec‘s (formerly PowerQuest) PartitionMagic will merge multiple partitions. Another program which does this is Paragon Software‘s Partition Manager.

Before attempting to merge the two partitions you may wish to backup any valuable data so that in the event of a problem you will still have access to the information stored on the hard disk drive.

Current beta test versions of Microsoft Windows Vista require about 10GB of space after installation. While this may increase by the time the operating system is released, I would think it would still install on the hard disk drive with your current partitioning scheme.

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 ? More >

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. More >

Session name Interakt

includes/common/KT_functions.inc.php

change the code and instert the following line “session_name(“cdlmpalampani”);”  LINE 520

function KT_session_start() {
if (!session_id()) {
session_name(“cdlmpalampani”);
@session_start();
if (!session_id()) {
die(‘Your session is incorrectly defined and cannot be started. Check your php.ini configuration.’);
}
}

PLESK Warning: Not enough disk space

please log in as root via ssh to the server and check /usr/local/psa/PMM/ usage.
Probably you have old stuff on tmp/ var/ and sessions/ dirs.

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

More >

PECL function not working?

enable the following extension in php.ini file to say:

;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_http.dll