Hello,
Wondering if it's possible to upload the zipped file to the server and unzip it there?
This would greatly cut down on the FTP'ing time.
Thanks...carl
Unzipping at the server
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Unzipping at the server
Hi!
Because of security issues, unzipping via PHP at the server is problematic, since it could place "ZIP bombs" there and also requires an unzip tool.
So...no, there's no possibility sadly. If you have SSH access, you can download plugins this way.
And of course you can use the Spartacus plugin, which downloads all required files on its own with no interaction reqiurements.
Regards,
Garvin
Because of security issues, unzipping via PHP at the server is problematic, since it could place "ZIP bombs" there and also requires an unzip tool.
So...no, there's no possibility sadly. If you have SSH access, you can download plugins this way.
And of course you can use the Spartacus plugin, which downloads all required files on its own with no interaction reqiurements.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
On the other hand, that's how I do my updates. Since my directory names differ from the standard installation, I unzip the distro, rename the directory, rezip it, and load my customized zip file (actually a tar.gz) to the appropriate directory. I also write and upload a quick PHP script like this:
Then I delete the archive and script. That's because there's always the danger, like Garvin said, of someone else running my script with his own archive.
So this will never be part of the official distribution; even if it's a remote possibility, it would be a huge problem. And the directory naming could change on each server, so it's a minor programming challenge, too. But you can do it yourself and trade a bit of bandwidth for some server CPU.
Code: Select all
<?php
echo 'Unpacking Serendipity...';
echo '<pre>';
$result = system('tar -xvzf my_customized_archive.tgz', $retval);
echo '</pre><br>
<hr/> result: ' . $retval;
?>
So this will never be part of the official distribution; even if it's a remote possibility, it would be a huge problem. And the directory naming could change on each server, so it's a minor programming challenge, too. But you can do it yourself and trade a bit of bandwidth for some server CPU.
-
- Regular
- Posts: 146
- Joined: Tue Jul 12, 2005 9:12 pm
- Location: Ottawa, Canada
- Contact:
rather than unzipping you can use SVN.
using a shell account, go to the directory where you want to install Serendipity and issue the following command.
svn will download all the current s9y files and put them into the correct directory structure.
it essentially "ftp" and "unzips" from your server, using your server's connection not your client PCs connection.
the neat thing is you can update simply by using
The only problem is it puts the files in a subdirectory called /trunk
can someone help with how to redirect the output?
using a shell account, go to the directory where you want to install Serendipity and issue the following command.
Code: Select all
svn checkout svn://svn.berlios.de/serendipity/trunk
it essentially "ftp" and "unzips" from your server, using your server's connection not your client PCs connection.
the neat thing is you can update simply by using
Code: Select all
svn update
can someone help with how to redirect the output?
gw
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Yes, you can checkout like this:
At least I think that's it.
Regards,
garvin
Yes, you can checkout like this:
Code: Select all
svn checkout svn://svn.berlios.de/serendipity/trunk/ .
Regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 146
- Joined: Tue Jul 12, 2005 9:12 pm
- Location: Ottawa, Canada
- Contact:
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Then do this:
Regards,
Garvin
Then do this:
Code: Select all
cd /
svn checkout svn://svn.berlios.de/serendipity/trunk/ ./myblog/
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 146
- Joined: Tue Jul 12, 2005 9:12 pm
- Location: Ottawa, Canada
- Contact: