Tabla de contenidos

Este capítulo ha sido escrito para todos aquellos que tengan la intención de instalar PrestaShop en su servidor web online.
Si desea instalar PrestaShop en su propio ordenador, deberá primero seguir las instrucciones de esta página: Installing PrestaShop on your computer.

Si ya ha leído las instrucciones de esa página, vaya directamente a la sección "Creación de una base de datos para su tienda" que encontrará en esta misma página.

Instalación de PrestaShop

PrestaShop es muy fácil de instalar. Una vez que todos los archivos estén subidos a su servidor web, debería poder empezar a configurar su tienda en menos de 5 minútos: el proceso de instalación es muy sencillo, ya que el instalador se encarga practicámente de todo el trabajo sin usted apenas tenga que intervenir. Los usuarios menos experimentados podrían necesitar entre 10 y 20 minutos para completar todo el proceso.

Antes de empezar, asegúrese de tener con todos los requisitos necesarios: webhost o espacio de alojamiento en un proveedor de hosting, nombre de dominio, cliente FTP, editor de texto. Asegúrese primeramente, de seguir las instrucciones de la página "Lo que necesita para empezar": http://doc.prestashop.com/display/PS16/Lo+que+necesita+para+empezar.

Algunos proveedores de hosting ofrecen la opción de instalar una aplicación de Prestashop autoinstalable con tan sólo un clic de ratón, ahorrándole tiempo para que pueda empezar a trabajar aún más rápido. El uso de este servicio puede reducir drásticamente el tiempo de instalación para los usuarios sin experiencia.

Estos proveedores de hosting utilizan principalmente las siguientes bibliotecas de scripts:

Algunos de estos scripts incluso soportan la actualización en un 1-clic, lo que tiene un valor incalculable.

Otros host o anfitriones, tienen sus propios scripts de instalación. Consulte con su proveedor de hosting para obtener más información.  

 Por último, pero no menos importante, PrestaShop tiene su propia solución de hostingregistrándose en PrestaShop.com, puede crear una tienda 100% gratuita en PrestaShop Cloud, dejando  que sea nuestro equipo técnico profesional el que se encargue de todas las dificultades técnicas relacionadas con el hosting, lo que le permitirá enfocarse directamente en su tienda, clientes y ventas. Visite https://www.prestashop.com/ para obtener mayor información.

Instrucciones rápidas de instalación

Aquí se presenta un conjunto de instrucciones destinadas a aquellos usuarios, que ya tienen experiencia en la instalación de aplicaciones PHP/MySQL en un servidor web . Si la falta de detalles le molesta, encontrará instrucciones detalladas en la siguiente sección de este capítulo.

  1. Descargue y descomprima el paquete PrestaShop si todavía no lo ha hecho.
  2. Cree una base de datos para su tienda PrestaShop  en su servidor web, si es posible. En caso de que no tenga definido ningún usuario MySQL con todos los privilegios para acceder y modificar esta base de datos, cree a éste también.
  3. Suba los archivos y carpetas de PrestaShop a la ubicación elegida en su servidor web. No suba la carpeta raíz /prestashop directamente: tan sólo los archivos y carpetas que contiene.
  4. Ejecute el script de instalación de PrestaShop accediendo a la dirección URL pública de la ubicación elegida en un navegador webEsta debe ser la URL donde ha subido los archivos de PrestaShop.
  5. Siga las instrucciones indicadas por cada uno de los pasos del instalador.
  6. Una vez que la instalación haya sido completada, elimine la carpeta /install y anote el nombre de la nueva carpeta /admin, renombrada a un nombre identificador único para su tienda, por razones de seguridad.

¡PrestaShop debe ahora estar instalado y preparado para ser configurado a sus necesidades!Continúe con el capítulo Primeros pasos con PrestaShop 1.6 de la Guía del usuario.

Instrucciones detalladas

Descargar y descomprimir el archivo PrestaShop

Puede descargar la última versión de PrestaShop desde el siguiente enlace: https://www.prestashop.com/es/descarga.

Tan sólo tiene una opción de descarga: la última versión estable, preparada para toda clase de tiendas online.

Si necesita descargar cualquier versión anterior o previa, diríjase a esta dirección: https://www.prestashop.com/es/developers-versions. Desplácese hacia abajo de esta página, hasta encontrar la sección denominada: "Versiones publicadas anteriormente".

Nota: Tenga en cuenta que no se recomienda el uso de otra versión que no sea la versión actual estable. Le recomendamos encarecidamente utilizar la última versión de PrestaShop para crear una tienda online.

Haga clic en el botón "Descargar ahora", y guarde el archivo en cualquier ubicación de su ordenador (como por ejemplo en el escritorio). Debería obtener un archivo llamado "prestashop_1.6.0.14.zip" (o un equivalente similar, que dependerá del número de versión).

El archivo descargado es un archivo Zip, lo que significa que ahora tiene un archivo que contiene todos los archivos que forman PrestaShop de forma comprimida . Con el fin de continuar con el proceso, debe descomprimir el archivo.

Si su sistema operativo no soporta de forma nativa archivos Zip, puede descargar e instalar una herramienta específica, como por ejemplo:

Utilizando una herramienta Zip, extraiga el contenido del archivo en una ubicación de su disco duro (como por ejemplo en el escritorio ). No cargue/suba el archivo Zip directamente a su servidor web.

El archivo Zip tiene dos elementos en su raíz:

  • La carpeta "prestashop", que contiene todos los archivos de PrestaShop que pronto va a subir en su servidor web.
  • El archivo "Install_PrestaShop.html", que se abre en el navegador predeterminado.

El archivo "Install_PrestaShop.html" no debe ser cargado/subido a su servidor web.

Subir/Cargar PrestaShop utilizando un cliente FTP

En este punto, debería tener un espacio de alojamiento a su disposición (si no lo tiene, lea el capítulo "Lo que necesita para empezar" de esta guía), y una carpeta en su disco duro con el archivo   PrestaShop descomprimido.

Al realizar este paso subirá/cargará  los archivos de PrestaShop en su espacio de alojamiento. Este proceso se realiza mediante la conexión de su computadora a su servidor utilizando una herramienta conocida como "cliente de FTP", que ya debió de haber instalado durante la lectura del capítulo  "L o que necesita para empezar". Nosotros en esta guía vamos a utilizar un cliente FTP gratuito denominado FileZilla (http://filezilla-project.org/).

Conéctese a su espacio de alojamiento utilizando su cliente FTP, utilizando los datos de conexión proporcionados por su proveedor de alojamiento web (si no los conoce, póngase en contacto con su proveedor de alojamiento). Una vez conectado, deberá transferir los archivos PrestaShop desde su ordenador a su servidor.

En FileZilla (o cualquier otro cliente FTP), navegue a través de sus carpetas locales hasta que encuentre la que contiene los archivos de PrestaShop. Manténgala abierta en el panel "Sitio local" de la columna izquierda.

En el panel "Sitio remoto" (a la derecha), diríjase a la ubicación en la que desea que PrestaShop esté disponible públicamente (raíz del dominio, sub-carpeta, sub-dominio...). Esto puede variar mucho, dependiendo tanto de su host (anfitrión) como de sus necesidades:

On FileZilla's left side, you should now have the local folder where you keep the PrestaShop files from the Zip archive, and on the right side, the destination location. If you haven't done it yet, uploading is simple: select all files and folders from the local folder (use Ctrl-A), and either drag & drop them to the remote folder, or right-click on the selection and choose "Upload" in the context menu.

Uploading can take several minutes, as PrestaShop uses more than 7500 files and almost 1000 folders. After a while, all of PrestaShop's files and folders should be online. Great!

Creating a database for your shop

Before you can actually install PrestaShop, you need to make sure your MySQL server has a database ready for PrestaShop's data. If not, you must create one.

Creating a database can be done using any database administration tool. We will be using the free phpMyAdmin tool (http://www.phpmyadmin.net/), which should come pre-installed on most web hosting.

Some hosts prefer to have customers use a graphic control panel, such as cPanel, Plesk or a custom-made one. Make sure you read your host's documentation about handling MySQL databases, and create a database for your shop by following their specific explanations.

Connect to phpMyAdmin using your account credentials, which your host provided you with. It should be accessible through a standard URL, tied to your domain name, or host's domain name.

In the left column, you can see the databases currently available on your MySQL server. Some of them should be left alone, because they are either used by phpMyAdmin or by the host: phpmyadmin, mysql, information_schema, performance_schema and others. Read your host's documentation to know if one of these can be used as a default database.

Either way, you can create a brand new database by going in the "Database" tab and using the central form named "Create new database". Simply enter a unique name, and click "Create". The name of the database will be added to the list on the left. You can now use it to store PrestaShop's data.

Launching the auto-installer

Now comes the part where it all comes together: installing PrestaShop.

The installation process is quite easy, as it is streamlined by PrestaShop's auto-installer. You should be able to browse through it in handful of minutes. Do read each page thoroughly so as to not miss any information.

To launch the installer, simply browse to PrestaShop's location on your web server: the script will automatically detect that PrestaShop is not yet installed, and will take you to the auto-installer.
You can also directly type the address of the /install folder: http://www.example.com/prestashop_folder/install.

If you are making an installation on your own computer, this installation should be done in the PrestaShop folder on your local web server, which should be available at http://127.0.0.1/prestashop.

From there on, you just have to read, click, and fill a few forms.

There are 6 steps. At the top of the page, the installation assistant gives you a visualization of where you are in the process: the gray faces turn into smiling faces after each step that is completed.

Step 1: Welcome page

This page is a quick intro into the installation process. You can choose the language in which the installer will display its instructions.

You also get a link to the documentation site (http://doc.prestashop.com/), and the PrestaShop support phone number. You can learn more about our support service by going to http://support.prestashop.com/en/.

Select the language in which you wish the installer to be, then click the "Next" button. This will also set the default language for your PrestaShop installation – but other languages will also be available for you to enable.

Step 2: PrestaShop's licenses

This second page is a simple requirement: PrestaShop is free and distributed under a certain set of open-source licenses. You simply cannot use this software if you disagree with the terms of the licenses, and this step requires you to explicitly acknowledge them.

Read PrestaShop's licenses:

You must agree to both licenses in order to install PrestaShop.

To access the next step, you must check the "I agree to the above terms and conditions" box, then click "Next". If you do not explicitly agree to the licenses, you cannot install PrestaShop: the "Next" button will not even be clickable.

Step 3 & 4: System compatibility & Store information

The third page makes a quick check of all the server parameters on your host. In most cases, you will not see this page, because if nothing wrong is found, you are taken directly to the fourth page, "Store information". If so, you can still go have a look at the third page by clicking on the "System compatibility" link in the left sidebar.

If something does go wrong during the server check that happens in the third step, the installer displays the "System compatibility" page, where you can see all the checks that failed.

System compatibility

This page checks that everything is OK with your server configuration: PHP settings, permissions on files and folders, third-party tools, etc.

If anything goes wrong, the installer stops you here, enabling you to see the few technical details that need fixing, be it changing the PHP configuration or updating the file permissions.

Here is a list of the checks that are performed during this third step:

CheckHow/where to fix it?
Is PHP 5.1.2 or later installed?Web server
Can PrestaShop upload files?php.ini file (file_uploads)
Can PrestaShop create new files and folders?File browser / FTP client / command line
Is the GD Library installed?php.ini file (extension=php_gd2.so)
Is MySQL support is on?php.ini file (extension=php_pdo_mysql.so)
Recursive write permission on ~/config/File browser / FTP client / command line
Recursive write permission on ~/cache/File browser / FTP client / command line
Recursive write permission on ~/log/File browser / FTP client / command line
Recursive write permission on ~/img/File browser / FTP client / command line
Recursive write permission on ~/mails/File browser / FTP client / command line
Recursive write permission on ~/modules/File browser / FTP client / command line
Recursive write permission on ~/override/File browser / FTP client / command line
Recursive write permission on ~/themes/default/lang/File browser / FTP client / command line
Recursive write permission on ~/themes/default/pdf/lang/File browser / FTP client / command line
Recursive write permission on ~/themes/default/cache/File browser / FTP client / command line
Recursive write permission on ~/translations/File browser / FTP client / command line
Recursive write permission on ~/upload/File browser / FTP client / command line
Recursive write permission on ~/download/File browser / FTP client / command line
Recursive write permission on ~/sitemap.xmlFile browser / FTP client / command line
Can PrestaShop open external URLs? php.in file (allow_url_fopen)
Is PHP's "register global" option off?php.ini file (register_globals)
Is GZIP compression activated?.htaccess file
Is the Mcrypt extension available?php.ini file (see http://php.net/manual/en/mcrypt.setup.php)
Is PHP's "magic quotes" option deactivated?php.ini file (magic_quotes_gpc)
Is the Dom extension loaded?--enable-dom compile time option
Is the PDO MySQL extension loaded?php.ini file (extension=php_pdo_mysql.so)

While changing the PHP configuration can only be done on a case-by-case basis depending on your level of access to your server, and therefore can only be explained in full details, updating the file permissions is easier to explain.

Permissions are the way a filesystem grants access rights to specific users or user groups, controlling their ability to view or make changes to files and folders. The installer needs to make several changes to the files that you uploaded, and if the filesystem does not allow for these changes through proper permissions, then the installer cannot complete its process.

Hence, if the installer shows that some files or folders do not have proper permission, you have to changer these permissions yourself. This will require you to access your files on your web server, and therefore use your FTP client (such as FileZilla) or the command line.

Log-in to your server account using your FTP client, browse to PrestaShop's folder, and find the folders that are marked by the installer as in need of a permission change.

Changing file/folder permission on a Unix/Linux system is called a "CHMOD", after the command of the same name (see: http://en.wikipedia.org/wiki/Chmod – you can find an explanation of file permissions here: http://www.elated.com/articles/understanding-permissions/).
Giving files or folders a "write permission" is called "doing a CHMOD 755" or "a CHMOD 775", depending on the host.

Some hosts might require you to use CHMOD 777, although it is not recommended for anything more than a one-time need.
If you have to use CHMOD 777 in order to install PrestaShop, make sure to switch to a safer setting (for instance, 775 for folders and 664 for files) once you are done installing.
Read your host's documentation carefully.

Thanks to FileZilla (and most FTP clients), you do not have to use any Unix command. Most FTP clients make it possible to change permissions easily and graphically: once you have found a file or folder that needs such a change, right-click on it, and in the context menu choose "File permissions...". It will open a small window.

Depending on your server configuration (which you don't always have a hand at), you will need to check both the "Read" and "Execute" columns of boxes, and at least the "Owner" and "Group" rows for the "Write" column. Some hosts might require you to have the public "Write" box checked, but be careful with that: it is rarely a good thing to have anyone on your server be able to edit the content of your PrestaShop installation.

Some folders might need to have all their files and sub-folders change permissions too. In that case, check the "Recurse into subdirectories" box.

While changing permissions in your FTP client, you should regularly check that you have made the correct changes by running the installer's compatibility checks again: click the installer's "Refresh these settings" button as often as necessary.
Once all indicators are green, you can click "Next". If you cannot have them all green, at least make sure the installer displays the "PrestaShop compatibility with your system environment has been verified!" message at the top of the page.

System information

This is where you can start customizing your shop: give it a name and a logo, indicate its main activity, and indicate the personal information for the shop owner (which has legal binding in most countries)...

Do not use a colon in your store's name, as it might prevent some feature from working (for instance, e-mail sending might fail).

You can replace the colon with a dash if you need to have two sections in the title. For instance, use "MyStore – The best place for items to buy" instead of "MyStore: The best place for items to buy".

Concerning the logo, you should note that it will appear:

Therefore, do not keep the default PrestaShop logo, for obvious reasons.

Click "Next" to continue.

Step 5: System configuration

This page contains a form that enables you to tell PrestaShop where the database server is, and which database it should use, along with a few other details. All this information should have been provided to you by your web host.

Fill all the fields with the database connection information provided by your web-host:

Click the "Test your database connection now!" button in order to check that you did use the correct server information.

Click "Next": the install will start configuring your shop, creating and populating the database tables, etc. This might take a few minutes: please be patient and do not touch your browser!

The installer does the following:

Once it is done, your shop is installed and ready to be configured!

Completing the installation

As you can read right on the final page of the installation process, there are a couple of last actions to perform before you can leave the installer.

An easy way to improve your installation's security is to delete some key files and folders. This is done using your FTP client, directly on the server. The items to delete are:

Click on the "Manage your store" button in order to be taken to your administration area.

Another way to secure your installation is to use a custom name for the administration folder: change the "admin" folder for something unique to you, such as "4dmin-1537" or "MySecReT4dm1n".
Write down the new name for your new "admin" folder
, because from now on you will access your administration pages using this address!

Finally, in order to close all potentially malicious doors, use your FTP client to update the files and folders permissions to 664, or 666 if your host requires it. If it turns out low access rights prevent some modules to work, you should set permissions back to 755.

Congratulations! Installation is now complete.

Log in to the PrestaShop back office by going to your newly-renamed "admin" folder, and start filling your catalog with products, adding carriers and shipping costs, adding manufacturers and suppliers, changing the theme, and generally configuring the many settings to suit your tastes and needs. See the user guide's "First steps with PrestaShop 1.6" chapter for more information: http://doc.prestashop.com/display/PS16/First+steps+with+PrestaShop+1.6.

You should regularly back up your database and files, ideally on more than one computer, in case of problems related to hardware or security.