home | contact us
» Archive by category "plesk"

category: plesk


So you have a plesk backup file and you want to extract and open the files from it? No problem. This blog will show you how.

The file is a mime file. The “mpack” package will let you unpack it.

First we install the “mpack” package

sudo apt-get install mpack

Let’s imagine your file is called “pleskDump.gz”. If it doesn’t have a “.gz” at the end it might not be bad to add it as some environments will complain if it’s absent.

Next we unzip the file

gunzip pleskDump.gz

Now let’s un-mime the file

mkdir pleskDumpOutput
cd pleskDumpOutput
cat ../pleskDump | munpack

Now we have a bunch of regular tar files, but be careful, if we just extract them, the root folders will not be recreated. In order to keep things together, it’s best now to look at the output you have. Let’s take a made up example:

example-domain.com.httpdocs

Note that the format is essentially domain.rootfolder or in another way, the tar files have your domain name they are archiving, then a dot, then the name of the root folder they made up. We take that root folder and create it like this:

mkdir rootfolder

Now let’s apply that idea to our previoud example; “example-domain.com”

mkdir httpdocs

It’s time to untar into the folder you just created, let’s assume you just created “httpdocs”

tar -xvf example-domain.com.httpdocs -C httpdocs

There you go! You can now output any of the folders you wanted.


 

There’s a little-known trick to using the plesk admin user password to access the mysql database that works on many a plesk machine.

Effectively the plesk admin password is stored in /etc/psa/.psa.shadow – in plain text.

This means that the following commands for instance work very well as root :

  • mysql -uadmin -p`cat /etc/psa/.psa.shadow`
  • mytop -uadmin -p`cat /etc/psa/.psa.shadow` -d[databasename]
  • mysqldump –user=admin –password=`cat /etc/psa/.psa.shadow` [databasename] /dev/null

Enjoy automating mysql stuff on your plesk servers!


 

While recently migrating a client from a dedicated server which was proving a little too expensive over to one of the great value Linux Virtual Private Servers offered by Web Fusion, I found myself frustrated with the 2mb upload limit apparent in the control panel side of things.

So I went and edited the php.ini to allow for a more generous upload limit. Restarted the server but to no effect.

After a closer inspection I realised that the Plesk control panel actually had its own separate php.ini file. Edited this file and it works.

Another Problem Solved :-)


 
rss icon