This is the documentation for LemonStand V1, which has been discontinued. You can learn more and upgrade your store here.

LemonStand Version 1 Has Been Discontinued

This documentation is for LemonStand Version 1. LemonStand is now offered as a cloud-based eCommerce platform.
You can try the new LemonStand and learn about upgrading here.

Installing LemonStand in command-line mode

Prepare a directory on the server, you are going to install LemonStand to. You can install LemonStand into a root of a domain, subdomain or a virtual host, or into a subdirectory of existing domain, subdomain or a virtual host.

If you are installing LemonStand in a subdirectory, please name the subdirectory in lowercase.

Upload all files from the installer archive into the directory. Log in SSH mode into the server and navigate to the installation directory. Execute the following command in the command line (see the MT Grid account notes below):

php install.php

Follow the installer instructions. Remember, that if you installed LemonStand in command-line mode, most likely you will not be able to update it using the web user interface. Use the command-line update tool instead.

Notes for Media Temple Grid account owners

Please read the following instructions if you are going to install LemonStand to the Media Temple Grid account.

Enable PHP 5

By default PHP 5 is disabled for new domains in the Media Temple Grid accounts. Please enable PHP 5 support for a domain you are going to install the application to, after uploading the installer files to the server. To enable the PHP 5 support, log into the Media Temple AccountCenter and go to the domain administration area. Click the PHP 5 Settings link and check the PHP 5 switch. Click the Save button.

Use php5 instead of the php script in the command line

In MT Grid accounts you need to use the php5 script instead of the php, to execute the installer:

php5 install.php

Notes for 1&1 shared hosting accounts owners

Please read the following instructions if you are going to install LemonStand to the 1&1 hosting account.

Enable PHP 5

By default 1&1 servers execute PHP scripts using the PHP 4 engine. In order to install LemonStand you need to add the following line to the .htaccess file after uploading the installer files into the installation directory.

AddHandler x-mapp-php5 .php

Installing LemonStand into a subdirecty

If you installed LemonStand into a subdirectory of a domain or a subdomain on a 1&1 server, you need to specify the subdirectory name in the .htaccess file, in the RewriteBase parameter. By default this parameter is commented out. You need to remove the comment mark (#) and specify the directory name. For example, if you installed LemonStand into the "shop" subirectory, you need to specify the "/shop" value: 

RewriteBase /shop

Changing the default time zone

By default the command-line installer assigns the US/Central or America/New_York time zone to new LemonStand installations. You can change the time zone after the installation is complete manually, by editing the config/config.php file. Open the file in a text editor and find the following declaration:

$CONFIG['TIMEZONE'] = 'US/Central';

Replace the time zone name with your preferred time zone. You can find the full list of the supported time zones on this page: http://php.net/manual/en/timezones.php

Changing the default permissions for files, created by LemonStand

LemonStand requires the Apache user to has writing permissions on some files and directories. These directories are:

  • temp
  • uploaded
  • uploaded/thumbnails
  • logs
  • resources (and subdirectories)

You can specify a permission mask for folder during the installation. After the installation you can change the file and folder permissions masks manually by editing the config/config.php file. Open the file in a text editor and find the following declaration:

$CONFIG['FILE_PERMISSIONS'] = 0777;
$CONFIG['FOLDER_PERMISSIONS'] = 0777;

Change the permission masks to preferred values. The zero digit in the beginning of the mask is required. LemonStand does not apply permissions specified in the configuration file until a next software update. If you want to update permissions immediately, you can use the chmod command or a FTP client.

Next: Installing LemonStand using the web installer
Previous: Command-line or web installer?
Return to Installing LemonStand