Wednesday, December 29, 2010

1and1: Shell access on (Linux) Home and Beginner accounts / Installing Prestashop || WIP

[Shell access on 1and1 (Linux) Home and Beginner accounts ] ...kind of. In a ghetto way.
(||WIP: format code, links. organize in steps.)

According to http://faq.1and1.com/web_space__access/secure_shell_access_ssh/3.html, Home and Beginner accounts don't have shell access (you can't ssh, only ftp) which sucks. Also, their ftp upload speed is insanely slow on my computer for whatever reason. Working off of the genius of http://jeffchannell.com/Joomla/quick-install-joomla-on-1a1-hosting.html, I can avoid learning PHP for a few more hours.

  1. create a getpresta.php file
    1. <?php
      echo shell_exec( 'echo This is a wget started at time:' );
      echo shell_exec( 'date' );
      echo shell_exec( 'wget "http://www.prestashop.com/download/prestashop_1.3.6.0.zip"' );
      echo shell_exec( 'echo This is a unzip php started at time:' );
      echo shell_exec( 'date' );
      echo shell_exec( 'unzip prestashop_1.3.4.0.zip' );
      echo shell_exec( 'echo This is a unzip finished at time:' );
      echo shell_exec( 'date' );
      ?>
  2. ftp to your 1and1 site (u1234123, and your password)
  3. copy over getpresta.php
  4. go to http://yoursitename.com/getpresta.php
    This should not take too long (more than 2 or 3 minutes)! If it takes too long, hit refresh. you may need to delete any partially-downloaded or unzipped files via FTP.

For Prestashop:
create .htaccess file for php5
AddType x-mapp-php5 .php

[edit 27 jan 2010: fixed missing ?php line, updated version from 1.3.4 to 1.3.6]

No comments:

Post a Comment