Friday, 03 July 2009 10:16

A friend of mine was installing Joomla on his 1&1 hosting account, and the FTP transfer was taking forever. I told him I could probably write a script, upload it, and run it and have Joomla ready to be installed faster than his FTP transfer would take. Sure enough, it worked. Here's how:

First, I created a file for him to upload to his server named 'getjoom.php':

<?php
echo shell_exec( 'wget http://joomlacode.org/gf/download/frsrelease/10547/41305/Joomla_1.5.12-Stable-Full_Package.zip' );
echo shell_exec( 'unzip Joomla_1.5.12-Stable-Full_Package.zip' );
?>

Then, I had him ran the script by visting http://friendsite/getjoom.php, which showed me a bunch of text about extracting the installer. After deleting getjoom.php through FTP, he then went about doing the install way sooner than he would have otherwise.

Last Updated on Wednesday, 25 August 2010 12:51
 
Comments (2)
1 Monday, 18 January 2010 04:17
Richard Hill
Hi Jeff,

This is a great script. Do you know where there are any guides to accessing the result. The usual settings for Joomla accounts which are the url/administrator dont seem to work, but simply come up as unrecognised. Do you know anywhere which guides you through this. By comparison my one.com account was easy to set up.
2 Monday, 18 January 2010 13:43
Jeff Channell
This script just runs commands on the server through the shell. You might check to see if your host has shell_exec disabled, or if unzip extracted to a subdirectory. When you run the above, it should print the responses from the shell (so, for example, you should have seen text where wget fetched the Joomla install zip, and the files being extracted).

Add your comment

Your name:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Jeff Channell is not affiliated with or endorsed by Open Source Matters or the Joomla!® Project.

Santorum
Joomla Extensions