Issue
Many applications come pre-packaged in a compressed ZIP or TAR file. Instead of unpacking these files on your local computer and then uploading the many files via FTP you can upload the compressed file and extract the files directly on the server to save you time. Unfortunately Plesk doesn't have a facility to do this from the control panel, but you can easily extract files using this following simple PHP script.Solution
Create the following PHP file either directly from the Plesk File Manager or on your local computer and then upload it to the httpdocs directory. You could call it unzip.php or untar.php. Select the appropriate method and then copy the line of code into the PHP file and then replace 'example.zip' or 'example.tar.gz' with the filename you wish to extract.Unzip
[php]<?php system("unzip example.zip") ?>[/php]
Untar
[php]<?php system("tar -zxvf example.tar.gz") ?>[/php]
Revisions
- May 20, 2015 @ 13:09:15 [Current Revision] by PeterLugg
- May 20, 2015 @ 13:09:15 by PeterLugg
Revision Differences
There are no differences between the May 20, 2015 @ 13:09:15 revision and the current revision. (Maybe only post meta information was changed.)
No comments yet.