How to start a PrestaShop Twitter login on your PrestaShop store?

Social media has gained so much popularity in today’s era that imagining a life with it is not possible for the users. In fact, there are several usages of Social media platforms that have come out a service product in the market. From Facebook, Google plus, Pinterest to Twitter, everything is social nowadays. From Social media marketing, social media advertisement, to social login(facebook login, twitter login, google plus login), everything is a part of this huge platform. An additional charm to the social media platforms was added when webmasters developed the way to utilize the user’s information on social media sites to be used for user account registration. I am talking about social login feature on the websites.

Utilizing social media data to register a customer on eCommerce sites-

Social login is a way to register a user on any website by using the information stored in the social account with just a click. This feature saves the users from the burden of lengthy account registration forms. Thus, it improves the overall user experience. Especially on eCommerce sites, social login becomes a very important feature when it comes to provide a seamless checkout process. PrestaShop is one of the most used eCommerce platforms that can be introduced to this social login feature. I have also written a similar article that explains how to get a PrestaShop Facebook login on your site. In this article, I have moved forward to an immensely used social media site- Twitter.

So, let’s see how can you implement a PrestaShop Twitter Login on your site and convert the users using this highly active social media site.

How to get PrestaShop Twitter login for your PrestaShop site?

You can implement a PrestaShop Twitter login on your eCommerce site, by just installing a Twitter login module. However, it is always advised to invest in a module by inspecting all the aspects of it. For example, do you want to invest in a separate Twitter login module if you can get an all in one social login module for the same investment?

Considering this, I am here using the PrestaShop Social loginizer module, which can also be used a PrestaShop Twitter Login module. The PrestaShop social login module provides you an option to enable more than 12 social login options which includes, Facebook login, DropBox login, PayPal login, Twitter login and much more.

You need to follow these steps to implement a PrestaShop Twitter Login on your website:

Step 1: Download the PrestaShop social login module and install it on your PrestaShop site.

Step 2: After installing the Social login module, go to the configuration panel of the module by clicking on “Configure“.

Step 3: Now, it will Open the module configuration page. If the module is not already activated, enable the module by turning the toggle button as “ON”.

Step 4: The module consists of the settings options for 13 other social login options. But we are concerned with the Twitter login here. So, click on Twitter settings now.

Step 5: On the next screen you will find the following interface. You need to fill the valid details here to enable the PrestaShop Twitter login.

First, enable the Twitter login by clicking on the toggle button. After that, you will need your Twitter API key and Twitter API Secret key. That’s it, your website is ready to receive social login via Twitter now.

How to get the Twitter API key and Twitter API Secret key?

While configuring a Twitter login through any PrestaShop module, you will be asked to enter the Twitter API key and Twitter API Secret key. You can get these two details very easily from your twitter account. You can follow these steps:

  • If you are using the Knowband-PrestaShop Social loginizer, you can go to the Twitter page by clicking on the link as shown in the image below. Otherwise, you can directly visit this link:

https://dev.twitter.com/apps

  • In next step, on Twitter Application Management, click on the Create New App button as shown in the image below:

  • In the next step, you will be asked to fill a form to Create an Application. Fill, the details as instructed in the image below:

After filling the form, click on Create your Twitter application button, after accepting the terms and conditions.

Please note:

  • If you have SEO URL enabled on your site then use below callback URL

https://www. yourstore .com/module/socialloginizer/twitter

  • If you don’t have SEO url enabled on your site then use below callback URL

https://www. yourstore .com/index.php?fc=module&module=socialloginizer&controller=twitter

  • In the next step, go to Key and Access Tokens tab. You will find the API key and API secret here as shown in the image below:

Copy both the details.

  • Now, paste the copied details in the respective fields in the module’s Twitter Settings tab. Click Save and you are ready to accept PrestaShop Twitter login now on your store.

This is one of the easiest and pocket-friendly approaches to implementing a PrestaShop Twitter login on your eCommerce site. If you want to implement even further more social login options like PrestaShop Facebook login and PrestaShop Google login, then the Social loginizer module would be great and economical for you.

This Would Also Interest You:

Things to look while adding a Magento 2 social login on your site

I can recall the days when all the websites would ask to fill a very lengthy registration form for accessing a site or buy products from the sites. Moreover, by that time there was no any other option for the owners of the site too. When social login become popular, most of the users found it very interesting and it is still the most popular way to log into a website. Especially, the eCommerce shopping has become very user-friendly with social login options.

Magento is one of the most popular eCommerce platforms which shares a major proportion of eCommerce websites across the world. The recently launched Magento 2 is a more advanced form of this ultimate platform and has come up with a better eCommerce management engine than the former. So like every other eCommerce website, a Magento 2 site too requires a Magento 2 social login option. I am sure that you do not want to ignore the importance of social login for your Magento 2 site.

Magento 2 social login extension

Like every other eCommerce platforms, Magento 2 can extend its basic functionalities by installing a Magento 2 extension. Since social login option is not there in Magento 2 by default, you will need to find a good Magento 2 social login extension for your website.

These tips can be useful in your search for Magento 2 social login extension

  • Choose a standard social login extension – Magento 2 is already a huge platform with a broad range of inbuilt functionalities. Any Magento 2 social login module you choose should not seek heavy resources from the system. If the Social login extension is not properly optimized, it will just counter the conversions by making your front end slow. So make sure that the extension is coded strictly according to the standards laid for Magento 2 platform. Choosing an experienced Magento 2 developer is a wise choice as he/she would have a proper knowledge of the standards.
  • Design and configuration complexity– In order to configure a social login option on any website, typically, the configuration steps are very simple. You just need some details from your social account to be filled in. These details can be retrieved from the social account itself. For example, you can find the steps to get the details for Facebook login in this article. So, you should make sure your Magento 2 social login extension is not complex and provide the easy option to put these details in a user-friendly way.

  • You should be able to enable or disable the social login anytime- Any feature added in your Magento 2 store using an extension should allow the admin to enable and disable the same at anytime. There might be certain occasions when you might not want to allow social login for some time or you might just want to disable a particular social login option. Uninstalling the extension is not a user-friendly approach and takes some time. A good social login extension will always allow the admin to enable or disable the feature anytime. Moreover, it should also allow the admin to enable/disable a certain social login option only. Say, disable the Facebook login and keep Google Login active.
  • Easily discoverable link for social login- There is no use of your Magento 2 social login if your users cannot find them easily. To make sure the users are able to find the social login easily, you can add the options at two places – at regular sign in or sign up page and at the top menu bar (Header link). Something like these:

  • Most important – is it economical? – The price of any Magento extension is a bit higher as compared to the similar module for other eCommerce platforms like OpenCart and PrestaShop. So, you might not want to waste such a huge amount of money on something that can come also in a lesser amount. Most of the social login extension either provide a single option or at most three social login options- Facebook login, Google login, and Twitter login.

Website owners are often forced to purchase the social login extensions for all of these popular options separately. As a result, there is a huge amount of investment that might not be afforded by every business owner.

To counter this, plugin developers have come up with various all in one social login extensions. Knowband’s Magento 2 social loginizer is one such extension that has the option to enable Facebook login, Google Login, and Twitter login using a single Magento 2 extension. Not just that, you can configure a total of 13 social login options using the same extension. Paypal login, WordPress login, Dropbox login are one of them. Thus, saving the money that can buy you 12 other useful modules for your store.

Finally,

While choosing a Magento 2 social login extension, it is very important that you tally the above-discussed factors. Missing these might end you up with either a useless module or a set of extensions costing fortunes. Knowband Magento 2 social login extension could be a wise choice in this regard.

Liked This? You’ll Like These Too

How to install themes on Magento

Installing Magento Themes

This tutorial will guide you how to install the themes on Magento.

Things to do before Installing Magento themes

  • Create an account on Magento Connect. Magento Connect is an extension marketplace, you can find Magento Connect on the link provided below:

https://www.magentocommerce.com/magento-connect/

Installing Magento Themes

You can follow the below mentioned steps to install the themes:

  • Open the back-end of your store and hover your cursor on the System menu and then on Magento Connect option and then click on the Magento Connect Manager option.

System Menu(menu bar)>>Magento Connect>>Magento Connect Manager.

  • Under Extensions Tab:
  • Make sure that the check-box for “put store on the maintenance mode while installing/upgrading” is marked.
  • You will see a “paste extension key to install” option, paste the extension key on the box provided and click on install.

  • How to get the extension key for themes:
  • Open the magento connect and click on themes on the menu bar.

  • Here you can Refine your results by choosing type of platform(Enterprise or Community), version etc.
  • Select the platform and Version and enter the keyword for the theme which you wish to install(for e.g Fashion,Business service etc).
  • Select the theme that fits beautifully according to your need.
  • You will be directed to a page where you can will see the install option, click on it you will get the extension key for your theme.

  • Copy the extension key and paste it on “paste extension key to install” option at your back-end.
  • Click on Install.
  • If you get this error after clicking on install:
  • Go to Magento connect.
  • Change the Magento connect from Magento Connect 1.0 to 2.0.

  • Click on Get extension Key.
  • Copy the key and paste it.
  • Again click on Install button and then click on Proceed.

  • After completion, click on refresh button below the command window at the bottom of the page.
  • The Theme will be installed after completion of the above mentioned steps.

You Might Also Like:

How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Enterprise Edition ( Paid )
  • Community Edition ( Unpaid )

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

Prerequisites for installing Magento

Before we begin, there are few steps that are needed to be completed in order to install magento. These steps include :

  • You will need at least 2 GB ram for installing magento on Virtual private server (VPS).
  • You will need a LAMP(Linux, Apache, Mysql and PHP) stack installed on your VPS server.
  • Now for installing it you need to first download magento, you can get a community edition version of magento online.

Getting Started

  • After complete download you will see a ZIP folder named mazento.zip on your downloads folder.
  • Copy the Zip Folder to the path provided below :

/var/www/html

  • Extract the files here by right clicking on the zipped folder and then left clicking on the Extract here option.

Creating Database using PHPMyAdmin

For creating a database follow the steps provided below :

  • Open a new tab of your browser and enter the following on the address bar :

localhost/phpmyadmin/

  • Press enter you will see the login page of PHPMyAdmin. Enter the Username and Password and click on Go to login. The login page will look like this.

  • You will see phpmyadmin main page, click on database, you will see a create database option.
  • Enter the name of database( say magento) and click on create option, your database will be created as shown below.

Importing sample database on Your database

After successfully creating the database, you have to import the sample database on your database. Now for that you have to follow the below mentioned steps:

  • Click the import option on phpmyadmin page.

  • Now click on the choose file to upload the sample database on your database.For uploading a file you have to note the following properties of the uploaded file:
  • The maximum size of the file must be 2048 kb.
  • The format of the file must be .sql format.
  • The type of compression used to compress large files must be .zip
  • Now click on Go option and your file containing sample database will be uploaded on your database.You will see that the files are uploaded on your database.

Triggering magento setup file

Now all you have to do is to trigger the magento setup file. Consider the following steps for the same.

  • Now open a new tab of your browser and enter the following path:

Localhost/magento or

localhost/magento/index.php/install

License Agreement

  • You will be directed to Magento’s installation page, accept the agreement’s terms and conditions and click on continue.

Localization

  • Select the Locale(language), Time zone and Default currency and click on continue.

Configuration

  • Here you will encounter the “write permission issue”, you have to fix all these issues before continuing further.

  • For fixing the write permission issue follow the below mentioned steps:
  • Open the terminal of your system.( CTRL+ALT+T )
  • Enter the following command to resolve the permission issues:

sudo chown -R www-data /file path

Eg: sudo chown -R www-data /var/www/html/magento/app/etc

  • It will ask you for the system password, enter your system password and press enter, it will ask the password only once.
  • Enter the command for all the files having same issue, using the example above and then click continue option on the magento installation page.

  • After clicking on the continue option you will encounter php extension loading error. It is shown below:

  • If you encounter this error follow the steps below:
  • Open the terminal and enter the command below :
  • For installing mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

sudo service apache2 restart

  • For installing curl

sudo apt-get install curl libcurl3 php5-curl

sudo service apache2 restart

  • For installing gd

sudo apt-get install php5-gd

sudo service apache2 restart

  • Then click continue on the magento installation page.

Database Connection Page

  • After clicking continue you will be directed to a database connection page where you can:
  • Set a Username and Password.
  • Change the database name.
  • Set the table prefixes. (optional)

Create Admin Account

After Completing all the processes under configuration, you will be directed to create admin account, where you have to :

  • Enter your Personal details:
  • First Name
  • Last Name
  • E-mail Id
  • Enter Login Information:
  • Username
  • Password
  • Confirm Password
  • Enter Encryption Key (Optional)
  • Then click on continue button.

You are all set

This is the last step in the installation process of magento. Here you will be provided with an encryption key which you have to save, as magento uses it to encrypt passwords, credit cards etc.

  • Now you have two options on your screen:
  • Go to Front-End
  • Go to Back-End
  • You can visit either of them.

Front-End And Back-End

When You visit your Front-End, you will notice that there are no logos, banners and images for any product or brand. Therefore for that you have to make some changes from the Back-End to make sure that everything works well before you can work on magento.

Necessary changes

  • For Uploading Images on the front end
  • Copy Media and Skin folders from magento-sample-data and paste them on your setup folder.
  • Setup folder will already contain these folders, just you have to do is replace them.
  • Then go to your Front-End and refresh the page. You will see that the logos, images and banners are uploaded.
  • In some case you will see there is no updation, the Front-End is still blank. In that case follow the below mentioned steps:
  • Open the terminal and type the command:

sudo chown -R www-data/var/www/html/magento/media/

  • Then go to your Back-End, hover your cursor over system menu in the admin panel menu bar and click on the cache management on the drop-down option.

  • After clicking on the cache management option you will be directed to a new page where you will see two options on the top right corner of the page:
  • Flush Magento Cache
  • Flush Cache storage
  • Click on these options to Flush Magento Cache and Cache Storage.
  • Now Go to your Front-end and refresh the page, you will see that all the banners, logos, images are updated, you will get your Front-end ready.
  • Modifying File Index.php
  • Now Open Index.php, you will find index.php at the path provided below:

/var/www/html/magento

  • Click on the Index.php file and open it.
  • You will see a Php code, go to line 73,74 and 75 and place double slash at the beginning of these lines and remove “#” at the beginning of line 77 as shown below:

  • Now save the file and close it.
  • Modifying File Varien.php
  • Now Open Varien.php, you will find Varien.php at the path provided below:

/var/www/html/magento/app/code/core/Mage/Core/Model/Session/

Abstract

  • Click on the Varien.php file and open it.
  • You will see a Php code, go to line 99, 100 and 101 and assign values as shown below:

  • Remove the lines like $cookie->getconfigDomain() from line 99,100 and 101 and place double quotes as shown in the figure.
  • Now save the file and close it.

You Might Also Like:

How to Install Magento In Ubuntu

Informazione generale

Magento è uno dei più popolari Content Management System (CMS) per un sito di e-commerce. È una delle piattaforme di e-commerce più flessibili. Magento usa MySQL come database, PHP come linguaggio di programmazione ed elementi del framework zend. Ha due edizioni una è un'edizione a pagamento e un'altra è un'edizione non pagata:

  • Edizione Enterprise (a pagamento)
  • Community Edition (non pagata)

Prerequisiti per l'installazione di Magento

Prima di iniziare, sono necessari alcuni passaggi da completare per installare Magento. Questi passaggi includono:

  • Avrai bisogno almeno di ram 2 GB per installare Magento su Virtual Private Server (VPS).
  • Avrai bisogno di uno stack LAMP (Linux, Apache, Mysql e PHP) installato sul tuo server VPS.
  • Ora per installarlo è necessario prima scaricare Magento, è possibile ottenere una versione di edizioni della comunità di Magento online.

Iniziare

  • Dopo il download completo, verrà visualizzata una cartella ZIP denominata mazento.zip nella cartella dei download.
  • Copia la cartella Zip nel percorso fornito di seguito:

/ Var / www / html

  • Estrai qui i file facendo clic con il tasto destro sulla cartella zippata e poi facendo clic con il tasto sinistro sull'opzione Estrai qui.

Creazione del database utilizzando PHPMyAdmin

Per creare un database segui i passaggi forniti di seguito:

  • Apri una nuova scheda del tuo browser e inserisci quanto segue nella barra degli indirizzi:

localhost / phpmyadmin /

  • Premi invio vedrai la pagina di accesso di PHPMyAdmin. Inserire il nome utente e la password e fare clic su Vai per accedere. La pagina di accesso sarà simile a questa.

  • Vedrai la pagina principale di phpmyadmin, fai clic sul database, vedrai un'opzione di creazione del database.
  • Immettere il nome del database (ad esempio Magento) e fare clic sull'opzione di creazione, il database verrà creato come mostrato di seguito.

Importazione di un database di esempio sul tuo database

Dopo aver creato correttamente il database, devi importare il database di esempio sul tuo database. Ora per quello devi seguire i seguenti passaggi:

  • Fare clic sull'opzione di importazione sulla pagina phpmyadmin.

  • Ora fai clic sul file scelto per caricare il database di esempio sul tuo database. Per caricare un file devi notare le seguenti proprietà del file caricato:
  • La dimensione massima del file deve essere 2048 kb.
  • Il formato del file deve essere in formato .sql.
  • Il tipo di compressione utilizzato per comprimere file di grandi dimensioni deve essere .zip
  • Ora fai clic sull'opzione Go e il tuo file contenente il database di esempio verrà caricato nel tuo database. Vedrai che i file sono caricati sul tuo database.

Attivazione del file di installazione di Magento

Ora tutto ciò che devi fare è attivare il file di installazione di Magento. Considerare i seguenti passaggi per lo stesso.

  • Ora apri una nuova scheda del tuo browser e inserisci il seguente percorso:

Localhost / Magento o

localhost / magento / index.php / install

Accordo di licenza

  • Sarai indirizzato alla pagina di installazione di Magento, accetti i termini e le condizioni del contratto e fai clic su Continua.

Localizzazione

  • Seleziona Locale (lingua), Fuso orario e Valuta predefinita e clicca su continua.

Configurazione

  • Qui troverai il "problema dell'autorizzazione alla scrittura", devi risolvere tutti questi problemi prima di continuare.

  • Per risolvere il problema dei permessi di scrittura segui i passaggi riportati sotto:
  • Apri il terminale del tuo sistema. (CTRL + ALT + T)
  • Immettere il seguente comando per risolvere i problemi di autorizzazione:

sudo chown -R www-data / percorso file

Ad esempio: sudo chown -R www-data / var / www / html / magento / app / ecc

  • Ti chiederà la password di sistema, inserisci la tua password di sistema e premi invio, chiederà la password una sola volta.
  • Immettere il comando per tutti i file con lo stesso problema, utilizzando l'esempio precedente e quindi fare clic su Continua opzione nella pagina di installazione di Magento.

  • Dopo aver fatto clic sull'opzione continua, si verificherà l'errore di caricamento dell'estensione php. È mostrato di seguito:

  • Se riscontri questo errore, procedi nel seguente modo:
  • Apri il terminale e inserisci il comando qui sotto:
  • Per l'installazione di mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

Riavviare apache2 sudo service

  • Per l'installazione di arricciatura

sudo apt-get install curl libcurl3 php5-curl

Riavviare apache2 sudo service

  • Per l'installazione di gd

sudo apt-get install php5-gd

Riavviare apache2 sudo service

  • Quindi fare clic su Continua nella pagina di installazione di Magento.

Pagina di connessione al database

  • Dopo aver fatto clic su Continua, sarai indirizzato a una pagina di connessione al database dove puoi:
  • Imposta un nome utente e una password.
  • Cambia il nome del database.
  • Imposta i prefissi della tabella. (opzionale)

Crea account amministratore

Dopo aver completato tutti i processi in fase di configurazione, ti verrà chiesto di creare un account amministratore, in cui devi:

  • Inserisci i tuoi dati personali:
  • Nome
  • Cognome
  • E-mail identificativo utente
  • Inserisci le informazioni di accesso:
  • Nome utente
  • Password
  • Confermare password
  • Immettere la chiave di crittografia (facoltativo)
  • Quindi fare clic sul pulsante Continua.

Siete a posto

Questo è l'ultimo passo nel processo di installazione di Magento. Qui ti verrà fornita una chiave di crittografia che devi salvare, poiché Magento la utilizza per crittografare password, carte di credito, ecc.

  • Ora hai due opzioni sullo schermo:
  • Vai a Front-End
  • Vai a Back-End
  • Puoi visitare entrambi.

Front-End e Back-End

Quando visiti il ​​tuo Front-End, noterai che non ci sono loghi, banner e immagini per qualsiasi prodotto o marca. Pertanto per questo devi apportare alcune modifiche dal back-end per assicurarti che tutto funzioni bene prima di poter lavorare su Magento.

Cambiamenti necessari

  • Per caricare immagini sul front-end
  • Copia le cartelle Media e Skin da magento-sample-data e incollale nella cartella di installazione.
  • La cartella di installazione conterrà già queste cartelle, è sufficiente sostituirle.
  • Quindi vai al tuo front-end e aggiorna la pagina. Vedrai che i loghi, le immagini e i banner sono stati caricati.
  • In alcuni casi vedrai che non ci sono aggiornamenti, il front-end è ancora vuoto. In tal caso, segui i passaggi indicati sotto:
  • Apri il terminale e digita il comando:

sudo chown -R www-data / var / www / html / magento / media /

  • Quindi vai al tuo Back-End, passa con il cursore sul menu di sistema nella barra dei menu del pannello di amministrazione e fai clic sulla gestione della cache sull'opzione a discesa.

  • Dopo aver fatto clic sull'opzione di gestione della cache, sarai indirizzato a una nuova pagina in cui vedrai due opzioni nell'angolo in alto a destra della pagina:
  • Flush Magento Cache
  • Archiviazione di Flush Cache
  • Fare clic su queste opzioni su Flush Magento Cache and Cache Storage.
  • Ora vai al tuo front-end e aggiorna la pagina, vedrai che tutti i banner, i loghi, le immagini sono aggiornati, il tuo front-end sarà pronto.
  • Modifica del file Index.php
  • Ora apri Index.php, troverai index.php nel percorso fornito di seguito:

/ Var / www / html / Magento

  • Clicca sul file Index.php e aprilo.
  • Vedrai un codice Php, vai alla riga 73,74 e 75 e inserisci una doppia barra all'inizio di queste righe e rimuovi "#" all'inizio della riga 77 come mostrato di seguito:

  • Ora salva il file e chiudilo.
  • Modifica del file Varien.php
  • Ora Apri Varien.php, troverai Varien.php nel percorso fornito di seguito:

/ Var / www / html / Magento / app / code / core / Mage / core / Modello / Session /

astratto

  • Clicca sul file Varien.php e aprilo.
  • Vedrai un codice Php, vai alla riga 99, 100 e 101 e assegna i valori come mostrato di seguito:

  • Rimuovere le linee come $ cookie-> getconfigDomain () dalla riga 99,100 e 101 e posizionare le virgolette come mostrato nella figura.
  • Ora salva il file e chiudilo.

Potrebbe piacerti anche:

How to Install Magento In Ubuntu

Informacje ogólne

Magento jest jednym z najpopularniejszych systemów zarządzania treścią (CMS) dla witryny handlu elektronicznego. Jest to jedna z najbardziej elastycznych platform e-commerce. Magento używa MySQL jako bazy danych, PHP jako języka programowania i elementów zend Framework. Ma dwie edycje: jedna to płatna, a druga to wersja bezpłatna:

  • Edycja korporacyjna (płatna)
  • Wydanie społecznościowe (nieopłacone)

Wymagania wstępne dotyczące instalacji Magento

Zanim zaczniemy, musimy wykonać kilka kroków, aby zainstalować Magento. Te kroki obejmują:

  • Będziesz potrzebował co najmniej 2 GB RAM do instalacji magento na Virtual Private Server (VPS).
  • Będziesz potrzebował stosu LAMP (Linux, Apache, Mysql i PHP) zainstalowanego na twoim serwerze VPS.
  • Teraz, aby go zainstalować, musisz najpierw pobrać Magento, możesz pobrać wersję Magento w wersji online.

Pierwsze kroki

  • Po zakończeniu pobierania pojawi się folder ZIP o nazwie mazento.zip w folderze pobierania.
  • Skopiuj folder Zip do ścieżki podanej poniżej:

/ Var / www / html

  • Wyodrębnij pliki, klikając prawym przyciskiem myszy folder zip, a następnie klikając lewym przyciskiem myszy opcję Wypakuj tutaj.

Tworzenie bazy danych za pomocą PHPMyAdmin

Aby utworzyć bazę danych, wykonaj następujące czynności:

  • Otwórz nową kartę przeglądarki i wprowadź na pasku adresu:

localhost / phpmyadmin /

  • Naciśnij enter, aby wyświetlić stronę logowania do PHPMyAdmin. Wprowadź nazwę użytkownika i hasło i kliknij Przejdź do logowania. Strona logowania będzie wyglądać następująco.

  • Zobaczysz stronę główną phpmyadmin, kliknij bazę danych, zobaczysz opcję tworzenia bazy danych.
  • Wprowadź nazwę bazy danych (powiedz magento) i kliknij opcję tworzenia, twoja baza danych zostanie utworzona, jak pokazano poniżej.

Importowanie przykładowej bazy danych w bazie danych

Po pomyślnym utworzeniu bazy danych należy zaimportować przykładową bazę danych do bazy danych. Teraz musisz wykonać następujące czynności:

  • Kliknij opcję importu na stronie phpmyadmin.

  • Teraz kliknij na plik, aby przesłać przykładową bazę danych do bazy danych. Aby przesłać plik, musisz zwrócić uwagę na następujące właściwości przesłanego pliku:
  • Maksymalny rozmiar pliku musi wynosić 2048 kb.
  • Format pliku musi być w formacie .sql.
  • Typ kompresji używanej do kompresowania dużych plików musi być .zip
  • Teraz kliknij opcję Przejdź, a plik zawierający przykładową bazę danych zostanie przesłany do Twojej bazy danych. Zobaczysz, że pliki są przesyłane do Twojej bazy danych.

Wywoływanie pliku instalacyjnego magento

Teraz wystarczy wyzwolić plik instalacyjny magento. Rozważ następujące kroki dla tego samego.

  • Teraz otwórz nową kartę przeglądarki i wprowadź następującą ścieżkę:

Localhost / magento lub

localhost / magento / index.php / install

Umowa licencyjna

  • Zostaniesz przekierowany na stronę instalacji Magento, zaakceptuj warunki umowy i kliknij Dalej.

Localization

  • Wybierz Ustawienia regionalne (język), Strefa czasowa i Domyślna waluta i kliknij Kontynuuj.

konfiguracja

  • Tutaj napotkasz "problem uprawnień do zapisu", musisz naprawić wszystkie te problemy, zanim przejdziesz dalej.

  • Aby rozwiązać problem z prawem do zapisu, wykonaj następujące czynności:
  • Otwórz terminal twojego systemu. (CTRL + ALT + T)
  • Wprowadź następujące polecenie, aby rozwiązać problemy z uprawnieniami:

sudo chown -R www-data / ścieżka pliku

Np .: sudo chown -R www-data / var / www / html / magento / app / etc

  • Poprosi cię o hasło systemowe, wpisz hasło systemowe i naciśnij enter, poprosi o hasło tylko raz.
  • Wprowadź polecenie dla wszystkich plików o tym samym numerze, używając powyższego przykładu, a następnie kliknij opcję kontynuuj na stronie instalacji programu magento.

  • Po kliknięciu opcji kontynuuj napotkasz błąd ładowania rozszerzenia php. Pokazano poniżej:

  • Jeśli napotkasz ten błąd, wykonaj następujące czynności:
  • Otwórz terminal i wprowadź poniższe polecenie:
  • Do instalacji mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

Sudo service apache2 restart

  • Do instalacji curl

sudo apt-get install curl libcurl3 php5-curl

Sudo service apache2 restart

  • Do instalacji gd

sudo apt-get install php5-gd

Sudo service apache2 restart

  • Następnie kliknij przycisk kontynuacji na stronie instalacji programu magento.

Strona połączenia z bazą danych

  • Po kliknięciu przycisku Kontynuuj nastąpi przekierowanie do strony połączenia z bazą danych, w której można:
  • Ustaw nazwę użytkownika i hasło.
  • Zmień nazwę bazy danych.
  • Ustaw przedrostki tabeli. (opcjonalny)

Utwórz konto administratora

Po zakończeniu wszystkich procesów w konfiguracji zostaniesz przekierowany do utworzenia konta administratora, w którym musisz:

  • Wprowadź swoje dane osobowe:
  • Imię
  • Nazwisko
  • ID e-mail
  • Wprowadź dane logowania:
  • Nazwą użytkownika
  • Hasło
  • Potwierdź hasło
  • Wprowadź klucz szyfrowania (opcjonalnie)
  • Następnie kliknij przycisk Kontynuuj.

Wszystko gotowe

To jest ostatni krok w procesie instalacji magento. Tutaj dostaniesz klucz szyfrowania, który musisz zapisać, ponieważ magento używa go do szyfrowania haseł, kart kredytowych itp.

  • Teraz masz dwie opcje na ekranie:
  • Idź do Front-End
  • Idź do Back-End
  • Możesz odwiedzić którekolwiek z nich.

Front-end i back-end

Kiedy odwiedzasz swój Front-End, zauważysz, że nie ma logo, banerów i obrazów dla żadnego produktu lub marki. Dlatego musisz wprowadzić pewne zmiany z Back-End, aby upewnić się, że wszystko działa dobrze, zanim będziesz mógł pracować na Magento.

Potrzebne zmiany

  • Przesyłanie obrazów z przodu
  • Skopiuj foldery Media i Skin z danych przykładowych magenta i wklej je w folderze instalacyjnym.
  • Folder Setup będzie już zawierać te foldery, wystarczy je zastąpić.
  • Następnie przejdź do Front-end i odśwież stronę. Zobaczysz, że logo, obrazy i banery są przesyłane.
  • W niektórych przypadkach zobaczysz, że nie ma aktualizacji, Front-End jest nadal pusty. W takim przypadku wykonaj poniższe kroki:
  • Otwórz terminal i wpisz polecenie:

sudo chown -R www-data / var / www / html / magento / media /

  • Następnie przejdź do Back-End, umieść kursor nad menu systemowym na pasku menu panelu administratora i kliknij zarządzanie pamięcią podręczną w rozwijanej opcji.

  • Po kliknięciu opcji zarządzania pamięcią podręczną zostaniesz przekierowany do nowej strony, na której zobaczysz dwie opcje w prawym górnym rogu strony:
  • Opróżnij pamięć podręczną Magento
  • Płukanie pamięci podręcznej
  • Kliknij te opcje, aby opróżnić pamięć podręczną Magento i pamięć podręczną.
  • Teraz przejdź do swojego interfejsu i odśwież stronę, zobaczysz, że wszystkie banery, logo, obrazy są aktualizowane, dostaniesz swój Front-end gotowy.
  • Modyfikowanie pliku Index.php
  • Teraz otwórz Index.php, znajdziesz index.php w ścieżce podanej poniżej:

/ var / www / html / magento

  • Kliknij plik Index.php i otwórz go.
  • Zobaczysz kod PHP, przejdź do linii 73,74 i 75 i umieść podwójny ukośnik na początku tych linii i usuń "#" na początku linii 77, jak pokazano poniżej:

  • Teraz zapisz plik i zamknij go.
  • Modyfikowanie pliku Varien.php
  • Teraz otwórz Varien.php, znajdziesz Varien.php w ścieżce podanej poniżej:

/ var / www / html / magento / app / code / core / Mage / Core / Model / Session /

Abstrakcyjny

  • Kliknij plik Varien.php i otwórz go.
  • Zobaczysz kod PHP, przejdź do linii 99, 100 i 101 i przypisz wartości jak pokazano poniżej:

  • Usuń linie takie jak $ cookie-> getconfigDomain () z linii 99,100 i 101 i umieść podwójne cudzysłowy, jak pokazano na rysunku.
  • Teraz zapisz plik i zamknij go.

Zobacz także:

How to Install Magento In Ubuntu

Informação geral

Magento é um dos mais populares Content Management System (CMS) para um site de comércio eletrônico. É uma das plataformas de comércio eletrônico mais flexíveis. Magento usa o MySQL como seu banco de dados, PHP como a linguagem de programação e elementos do framework zend. Tem duas Edições uma é uma edição paga e outra é uma edição não paga:

  • Enterprise Edition (pago)
  • Community Edition (não pago)

Pré-requisitos para instalar o Magento

Antes de começarmos, há algumas etapas que precisam ser concluídas para instalar o magento. Essas etapas incluem:

  • Você precisará de pelo menos 2 GB para instalar o magento no Virtual private server (VPS).
  • Você precisará de uma pilha LAMP (Linux, Apache, Mysql e PHP) instalada no seu servidor VPS.
  • Agora, para instalá-lo, você precisa primeiro fazer o download do magento, você pode obter uma versão de edição comunitária do magento online.

Começando

  • Após o download completo, você verá uma pasta ZIP chamada mazento.zip na sua pasta de downloads.
  • Copie a pasta Zip para o caminho fornecido abaixo:

/ Var / www / html

  • Extraia os arquivos clicando com o botão direito do mouse na pasta zipada e clicando com o botão esquerdo na opção Extrair aqui.

Criando banco de dados usando o PHPMyAdmin

Para criar um banco de dados, siga as etapas fornecidas abaixo:

  • Abra uma nova guia do seu navegador e digite o seguinte na barra de endereço:

localhost / phpmyadmin /

  • Pressione enter, você verá a página de login do PHPMyAdmin. Digite o nome de usuário e senha e clique em Ir para login. A página de login ficará assim.

  • Você verá a página principal do phpmyadmin, clique no banco de dados, você verá uma opção de criação de banco de dados.
  • Digite o nome do banco de dados (digamos magento) e clique na opção create, seu banco de dados será criado como mostrado abaixo.

Importando banco de dados de amostra em seu banco de dados

Depois de criar com êxito o banco de dados, você precisa importar o banco de dados de amostra no banco de dados. Agora, para isso, você precisa seguir as etapas abaixo mencionadas:

  • Clique na opção de importação na página do phpmyadmin.

  • Agora clique no arquivo de escolha para fazer o upload do banco de dados de amostra no banco de dados. Para fazer o upload de um arquivo, observe as seguintes propriedades do arquivo enviado:
  • O tamanho máximo do arquivo deve ser 2048 kb.
  • O formato do arquivo deve ser o formato .sql.
  • O tipo de compactação usado para compactar arquivos grandes deve ser .zip
  • Agora clique na opção Go e seu arquivo contendo banco de dados de amostra será carregado em seu banco de dados.Você verá que os arquivos são carregados em seu banco de dados.

Acionando o arquivo de configuração do magento

Agora tudo que você precisa fazer é acionar o arquivo de configuração do magento. Considere os seguintes passos para o mesmo.

  • Agora abra uma nova aba do seu navegador e digite o seguinte caminho:

Localhost / magento ou

localhost / magento / index.php / install

Termos de licença

  • Você será direcionado para a página de instalação do Magento, aceite os termos e condições do contrato e clique em continuar.

Localização

  • Selecione o local (idioma), fuso horário e moeda padrão e clique em continuar.

Configuração

  • Aqui você vai encontrar o "problema de permissão de gravação", você tem que corrigir todos esses problemas antes de continuar.

  • Para corrigir o problema de permissão de gravação, siga as etapas abaixo mencionadas:
  • Abra o terminal do seu sistema. (CTRL + ALT + T)
  • Digite o seguinte comando para resolver os problemas de permissão:

sudo chown -R www-data / caminho do arquivo

Por exemplo: sudo chown -R www-data / var / www / html / magento / app / etc

  • Ele pedirá a senha do sistema, digite a senha do seu sistema e pressione enter, ele pedirá a senha apenas uma vez.
  • Digite o comando para todos os arquivos com o mesmo problema, usando o exemplo acima e clique na opção continue na página de instalação do magento.

  • Depois de clicar na opção continuar, você encontrará o erro de carregamento da extensão do php. É mostrado abaixo:

  • Se você encontrar esse erro, siga as etapas abaixo:
  • Abra o terminal e digite o comando abaixo:
  • Para instalar o mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

sudo service apache2 reiniciar

  • Para instalar o curl

sudo apt-get instalar curl libcurl3 php5-curl

sudo service apache2 reiniciar

  • Para instalar o gd

sudo apt-get instala php5-gd

sudo service apache2 reiniciar

  • Em seguida, clique em continuar na página de instalação do magento.

Página de conexão do banco de dados

  • Depois de clicar em continuar, você será direcionado para uma página de conexão com o banco de dados, onde poderá:
  • Definir um nome de usuário e senha.
  • Altere o nome do banco de dados.
  • Defina os prefixos da tabela. (opcional)

Criar conta de administrador

Depois de completar todos os processos em configuração, você será direcionado para criar uma conta de administrador, onde você deve:

  • Digite seus dados pessoais:
  • Nome
  • Sobrenome
  • Identificação do email
  • Insira as informações de login:
  • Nome de usuário
  • Senha
  • Confirmar senha
  • Digite a chave de criptografia (opcional)
  • Em seguida, clique no botão continuar.

Estás pronto

Este é o último passo no processo de instalação do magento. Aqui você será fornecido com uma chave de criptografia que você tem que salvar, como o Magento usa para criptografar senhas, cartões de crédito etc.

  • Agora você tem duas opções na sua tela:
  • Ir para o front-end
  • Ir para o back-end
  • Você pode visitar qualquer um deles.

Front-end e back-end

Quando você visita seu front-end, você notará que não há logotipos, banners e imagens para qualquer produto ou marca. Portanto, para isso, você precisa fazer algumas alterações no Back-End para garantir que tudo funcione bem antes de poder trabalhar no magento.

Mudanças necessárias

  • Para carregar imagens no front end
  • Copie as pastas Media e Skin de magento-sample-data e cole-as na sua pasta de configuração.
  • A pasta de instalação já conterá essas pastas, basta você substituí-las.
  • Em seguida, vá para o seu Front-End e atualize a página. Você verá que os logotipos, imagens e banners são enviados.
  • Em alguns casos, você verá que não há updation, o Front-End ainda está em branco. Nesse caso, siga as etapas abaixo mencionadas:
  • Abra o terminal e digite o comando:

sudo chown -R www-data / var / www / html / magento / media /

  • Em seguida, vá para o seu Back-End, passe o cursor sobre o menu do sistema na barra de menus do painel de administração e clique no gerenciamento de cache na opção suspensa.

  • Depois de clicar na opção de gerenciamento de cache, você será direcionado para uma nova página, onde verá duas opções no canto superior direito da página:
  • Flush Magento Cache
  • Armazenamento de cache nivelado
  • Clique nestas opções para Limpar o Cache do Magento e o Armazenamento do Cache.
  • Agora vá para o seu front-end e atualize a página, você verá que todos os banners, logotipos, imagens são atualizadas, você terá seu Front-end pronto.
  • Modificando o arquivo Index.php
  • Agora, abra Index.php, você encontrará index.php no caminho abaixo:

/ var / www / html / magento

  • Clique no arquivo Index.php e abra-o.
  • Você verá um código Php, vá para a linha 73,74 e 75 e coloque uma barra dupla no início dessas linhas e remova "#" no início da linha 77 como mostrado abaixo:

  • Agora salve o arquivo e feche-o.
  • Modificando o arquivo Varien.php
  • Agora abra Varien.php, você encontrará Varien.php no caminho abaixo:

/ var / www / html / magento / app / código / core / Mage / Core / Modelo / Sessão /

Abstrato

  • Clique no arquivo Varien.php e abra-o.
  • Você verá um código php, vá para a linha 99, 100 e 101 e atribua valores como mostrado abaixo:

  • Remova as linhas como $ cookie-> getconfigDomain () da linha 99,100 e 101 e coloque aspas duplas como mostrado na figura.
  • Agora salve o arquivo e feche-o.

Também poderá gostar de:

How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Enterprise Edition ( Paid )
  • Community Edition ( Unpaid )

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

Prerequisites for installing Magento

Before we begin, there are few steps that are needed to be completed in order to install magento. These steps include :

  • You will need at least 2 GB ram for installing magento on Virtual private server (VPS).
  • You will need a LAMP(Linux, Apache, Mysql and PHP) stack installed on your VPS server.
  • Now for installing it you need to first download magento, you can get a community edition version of magento online.

Empezando

  • After complete download you will see a ZIP folder named mazento.zip on your downloads folder.
  • Copy the Zip Folder to the path provided below :

/ Var / www / html

  • Extract the files here by right clicking on the zipped folder and then left clicking on the Extract here option.

Creating Database using PHPMyAdmin

For creating a database follow the steps provided below :

  • Open a new tab of your browser and enter the following on the address bar :

localhost/phpmyadmin/

  • Press enter you will see the login page of PHPMyAdmin. Enter the Username and Password and click on Go to login. The login page will look like this.

  • You will see phpmyadmin main page, click on database, you will see a create database option.
  • Enter the name of database( say magento) and click on create option, your database will be created as shown below.

Importing sample database on Your database

After successfully creating the database, you have to import the sample database on your database. Now for that you have to follow the below mentioned steps:

  • Click the import option on phpmyadmin page.

  • Now click on the choose file to upload the sample database on your database.For uploading a file you have to note the following properties of the uploaded file:
  • The maximum size of the file must be 2048 kb.
  • The format of the file must be .sql format.
  • The type of compression used to compress large files must be .zip
  • Now click on Go option and your file containing sample database will be uploaded on your database.You will see that the files are uploaded on your database.

Triggering magento setup file

Now all you have to do is to trigger the magento setup file. Consider the following steps for the same.

  • Now open a new tab of your browser and enter the following path:

Localhost/magento or

localhost/magento/index.php/install

Acuerdo de licencia

  • You will be directed to Magento’s installation page, accept the agreement’s terms and conditions and click on continue.

Localización

  • Select the Locale(language), Time zone and Default currency and click on continue.

configuración

  • Here you will encounter the “write permission issue”, you have to fix all these issues before continuing further.

  • For fixing the write permission issue follow the below mentioned steps:
  • Open the terminal of your system.( CTRL+ALT+T )
  • Enter the following command to resolve the permission issues:

sudo chown -R www-data /file path

Eg: sudo chown -R www-data /var/www/html/magento/app/etc

  • It will ask you for the system password, enter your system password and press enter, it will ask the password only once.
  • Enter the command for all the files having same issue, using the example above and then click continue option on the magento installation page.

  • After clicking on the continue option you will encounter php extension loading error. It is shown below:

  • If you encounter this error follow the steps below:
  • Open the terminal and enter the command below :
  • For installing mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

Sudo service apache2 restart

  • For installing curl

sudo apt-get install curl libcurl3 php5-curl

Sudo service apache2 restart

  • For installing gd

sudo apt-get install php5-gd

Sudo service apache2 restart

  • Then click continue on the magento installation page.

Database Connection Page

  • After clicking continue you will be directed to a database connection page where you can:
  • Set a Username and Password.
  • Change the database name.
  • Set the table prefixes. (optional)

Crear cuenta de administrador

After Completing all the processes under configuration, you will be directed to create admin account, where you have to :

  • Enter your Personal details:
  • Nombre
  • Apellido(s)
  • E-mail Id
  • Enter Login Information:
  • Nombre de usuario
  • Contraseña
  • Confirmar contraseña
  • Enter Encryption Key (Optional)
  • Then click on continue button.

You are all set

This is the last step in the installation process of magento. Here you will be provided with an encryption key which you have to save, as magento uses it to encrypt passwords, credit cards etc.

  • Now you have two options on your screen:
  • Go to Front-End
  • Go to Back-End
  • You can visit either of them.

Front-End And Back-End

When You visit your Front-End, you will notice that there are no logos, banners and images for any product or brand. Therefore for that you have to make some changes from the Back-End to make sure that everything works well before you can work on magento.

Necessary changes

  • For Uploading Images on the front end
  • Copy Media and Skin folders from magento-sample-data and paste them on your setup folder.
  • Setup folder will already contain these folders, just you have to do is replace them.
  • Then go to your Front-End and refresh the page. You will see that the logos, images and banners are uploaded.
  • In some case you will see there is no updation, the Front-End is still blank. In that case follow the below mentioned steps:
  • Open the terminal and type the command:

sudo chown -R www-data/var/www/html/magento/media/

  • Then go to your Back-End, hover your cursor over system menu in the admin panel menu bar and click on the cache management on the drop-down option.

  • After clicking on the cache management option you will be directed to a new page where you will see two options on the top right corner of the page:
  • Flush Magento Cache
  • Flush Cache storage
  • Click on these options to Flush Magento Cache and Cache Storage.
  • Now Go to your Front-end and refresh the page, you will see that all the banners, logos, images are updated, you will get your Front-end ready.
  • Modifying File Index.php
  • Now Open Index.php, you will find index.php at the path provided below:

/var/www/html/magento

  • Click on the Index.php file and open it.
  • You will see a Php code, go to line 73,74 and 75 and place double slash at the beginning of these lines and remove “#” at the beginning of line 77 as shown below:

  • Now save the file and close it.
  • Modifying File Varien.php
  • Now Open Varien.php, you will find Varien.php at the path provided below:

/var/www/html/magento/app/code/core/Mage/Core/Model/Session/

Resumen

  • Click on the Varien.php file and open it.
  • You will see a Php code, go to line 99, 100 and 101 and assign values as shown below:

  • Remove the lines like $cookie->getconfigDomain() from line 99,100 and 101 and place double quotes as shown in the figure.
  • Now save the file and close it.

También puede interesarte:

Your license is inactive or expired, please subscribe again!

How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Enterprise Edition ( Paid )
  • Community Edition ( Unpaid )

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

Prerequisites for installing Magento

Before we begin, there are few steps that are needed to be completed in order to install magento. These steps include :

  • You will need at least 2 GB ram for installing magento on Virtual private server (VPS).
  • You will need a LAMP(Linux, Apache, Mysql and PHP) stack installed on your VPS server.
  • Now for installing it you need to first download magento, you can get a community edition version of magento online.

Commencer

  • After complete download you will see a ZIP folder named mazento.zip on your downloads folder.
  • Copy the Zip Folder to the path provided below :

/ Var / www / html

  • Extract the files here by right clicking on the zipped folder and then left clicking on the Extract here option.

Creating Database using PHPMyAdmin

For creating a database follow the steps provided below :

  • Open a new tab of your browser and enter the following on the address bar :

localhost/phpmyadmin/

  • Press enter you will see the login page of PHPMyAdmin. Enter the Username and Password and click on Go to login. The login page will look like this.

  • You will see phpmyadmin main page, click on database, you will see a create database option.
  • Enter the name of database( say magento) and click on create option, your database will be created as shown below.

Importing sample database on Your database

After successfully creating the database, you have to import the sample database on your database. Now for that you have to follow the below mentioned steps:

  • Click the import option on phpmyadmin page.

  • Now click on the choose file to upload the sample database on your database.For uploading a file you have to note the following properties of the uploaded file:
  • The maximum size of the file must be 2048 kb.
  • The format of the file must be .sql format.
  • The type of compression used to compress large files must be .zip
  • Now click on Go option and your file containing sample database will be uploaded on your database.You will see that the files are uploaded on your database.

Triggering magento setup file

Now all you have to do is to trigger the magento setup file. Consider the following steps for the same.

  • Now open a new tab of your browser and enter the following path:

Localhost/magento or

localhost/magento/index.php/install

Accord de licence

  • You will be directed to Magento’s installation page, accept the agreement’s terms and conditions and click on continue.

Localisation

  • Select the Locale(language), Time zone and Default currency and click on continue.

configuration

  • Here you will encounter the “write permission issue”, you have to fix all these issues before continuing further.

  • For fixing the write permission issue follow the below mentioned steps:
  • Open the terminal of your system.( CTRL+ALT+T )
  • Enter the following command to resolve the permission issues:

sudo chown -R www-data /file path

Eg: sudo chown -R www-data /var/www/html/magento/app/etc

  • It will ask you for the system password, enter your system password and press enter, it will ask the password only once.
  • Enter the command for all the files having same issue, using the example above and then click continue option on the magento installation page.

  • After clicking on the continue option you will encounter php extension loading error. It is shown below:

  • If you encounter this error follow the steps below:
  • Open the terminal and enter the command below :
  • For installing mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

service sudo apache2 redémarre

  • For installing curl

sudo apt-get install curl libcurl3 php5-curl

service sudo apache2 redémarre

  • For installing gd

sudo apt-get install php5-gd

service sudo apache2 redémarre

  • Then click continue on the magento installation page.

Database Connection Page

  • After clicking continue you will be directed to a database connection page where you can:
  • Set a Username and Password.
  • Change the database name.
  • Set the table prefixes. (optional)

Create Admin Account

After Completing all the processes under configuration, you will be directed to create admin account, where you have to :

  • Enter your Personal details:
  • Prénom
  • Nom
  • E-mail Id
  • Enter Login Information:
  • Nom d’utilisateur
  • Mot de passe :
  • Confirme votre nouveau mot de passe:
  • Enter Encryption Key (Optional)
  • Then click on continue button.

You are all set

This is the last step in the installation process of magento. Here you will be provided with an encryption key which you have to save, as magento uses it to encrypt passwords, credit cards etc.

  • Now you have two options on your screen:
  • Go to Front-End
  • Go to Back-End
  • You can visit either of them.

Front-End And Back-End

When You visit your Front-End, you will notice that there are no logos, banners and images for any product or brand. Therefore for that you have to make some changes from the Back-End to make sure that everything works well before you can work on magento.

Necessary changes

  • For Uploading Images on the front end
  • Copy Media and Skin folders from magento-sample-data and paste them on your setup folder.
  • Setup folder will already contain these folders, just you have to do is replace them.
  • Then go to your Front-End and refresh the page. You will see that the logos, images and banners are uploaded.
  • In some case you will see there is no updation, the Front-End is still blank. In that case follow the below mentioned steps:
  • Open the terminal and type the command:

sudo chown -R www-data/var/www/html/magento/media/

  • Then go to your Back-End, hover your cursor over system menu in the admin panel menu bar and click on the cache management on the drop-down option.

  • After clicking on the cache management option you will be directed to a new page where you will see two options on the top right corner of the page:
  • Vider le cache Magento
  • Flush Cache storage
  • Click on these options to Flush Magento Cache and Cache Storage.
  • Now Go to your Front-end and refresh the page, you will see that all the banners, logos, images are updated, you will get your Front-end ready.
  • Modifying File Index.php
  • Now Open Index.php, you will find index.php at the path provided below:

/var/www/html/magento

  • Click on the Index.php file and open it.
  • You will see a Php code, go to line 73,74 and 75 and place double slash at the beginning of these lines and remove “#” at the beginning of line 77 as shown below:

  • Now save the file and close it.
  • Modifying File Varien.php
  • Now Open Varien.php, you will find Varien.php at the path provided below:

/var/www/html/magento/app/code/core/Mage/Core/Model/Session/

Abstrait

  • Click on the Varien.php file and open it.
  • You will see a Php code, go to line 99, 100 and 101 and assign values as shown below:

  • Remove the lines like $cookie->getconfigDomain() from line 99,100 and 101 and place double quotes as shown in the figure.
  • Now save the file and close it.

Vous aimerez aussi:

Your license is inactive or expired, please subscribe again!

How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Enterprise Edition (kostenpflichtig)
  • Community Edition (unbezahlt)

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

Voraussetzungen für die Installation von Magento

Bevor wir beginnen, gibt es einige Schritte, die abgeschlossen werden müssen, um Magento zu installieren. Diese Schritte umfassen:

  • Sie benötigen mindestens 2 GB RAM für die Installation von Magento auf Virtual Private Server (VPS).
  • Sie benötigen einen LAMP-Stack (Linux, Apache, Mysql und PHP), der auf Ihrem VPS-Server installiert ist.
  • Jetzt für die Installation müssen Sie zunächst Magento herunterladen, können Sie eine Community-Edition-Version von Magento online bekommen.

Anfangen

  • Nach dem vollständigen Download sehen Sie in Ihrem Download-Ordner einen ZIP-Ordner namens mazento.zip.
  • Kopieren Sie den ZIP-Ordner in den folgenden Pfad:

/ Var / www / html

  • Extrahieren Sie die Dateien hier, indem Sie mit der rechten Maustaste auf den gezippten Ordner klicken und dann mit der linken Maustaste auf die Option Hier extrahieren klicken.

Datenbank mit PHPMyAdmin erstellen

Befolgen Sie für das Erstellen einer Datenbank die folgenden Schritte:

  • Öffnen Sie einen neuen Tab Ihres Browsers und geben Sie Folgendes in die Adressleiste ein:

localhost / phpmyadmin /

  • Drücken Sie die Eingabetaste, um die Login-Seite von PHPMyAdmin zu sehen. Geben Sie den Benutzernamen und das Passwort ein und klicken Sie auf Gehe zu Login. Die Anmeldeseite wird so aussehen.

  • Sie werden die Hauptseite von phpmyadmin sehen, klicken Sie auf Datenbank, Sie werden eine Datenbank erstellen Option sehen.
  • Geben Sie den Namen der Datenbank ein (zB Magento) und klicken Sie auf die Option create, Ihre Datenbank wird wie unten gezeigt erstellt.

Beispieldatenbank in Ihre Datenbank importieren

Nach dem erfolgreichen Erstellen der Datenbank müssen Sie die Beispieldatenbank in Ihre Datenbank importieren. Dazu müssen Sie die folgenden Schritte ausführen:

  • Klicken Sie auf die Importoption auf der Seite phpmyadmin.

  • Klicken Sie nun auf die Datei auswählen, um die Beispieldatenbank in Ihre Datenbank hochzuladen. Zum Hochladen einer Datei müssen Sie folgende Eigenschaften der hochgeladenen Datei beachten:
  • Die maximale Größe der Datei muss 2048 kb sein.
  • Das Format der Datei muss das Format .sql haben.
  • Die Art der Komprimierung, die zum Komprimieren großer Dateien verwendet wird, muss .zip sein
  • Klicken Sie nun auf die Option Go und Ihre Datei mit der Beispieldatenbank wird in Ihre Datenbank hochgeladen. Sie werden sehen, dass die Dateien in Ihre Datenbank hochgeladen werden.

Magento Setup-Datei auslösen

Jetzt müssen Sie nur noch die Magento Setup-Datei auslösen. Berücksichtigen Sie die folgenden Schritte für dasselbe.

  • Öffnen Sie nun einen neuen Tab Ihres Browsers und geben Sie folgenden Pfad ein:

Localhost / Magento oder

localhost / magento / index.php / installieren

Lizenzvereinbarung

  • Sie werden zur Magento-Installationsseite weitergeleitet, akzeptieren die Allgemeinen Geschäftsbedingungen des Vertrags und klicken auf Weiter.

Lokalisierung

  • Wählen Sie das Gebietsschema (Sprache), die Zeitzone und die Standardwährung aus und klicken Sie auf Weiter.

Konfiguration

  • Hier stoßen Sie auf das Problem der "Schreibberechtigung". Sie müssen alle diese Probleme beheben, bevor Sie fortfahren.

  • Befolgen Sie die folgenden Schritte, um das Problem mit der Schreibberechtigung zu beheben:
  • Öffne das Terminal deines Systems (STRG + ALT + T)
  • Geben Sie den folgenden Befehl ein, um die Berechtigungsprobleme zu beheben:

sudo chown -R www-data / Dateipfad

ZB: sudo chown -R www-data / var / www / html / magento / app / etc

  • Sie werden nach dem Systemkennwort gefragt, geben Ihr Systemkennwort ein und drücken die Eingabetaste. Das Kennwort wird nur einmal abgefragt.
  • Geben Sie den Befehl für alle Dateien mit demselben Problem ein, indem Sie das obige Beispiel verwenden und dann auf der Magento-Installationsseite auf die Option "Weiter" klicken.

  • Nach einem Klick auf die Option continue wird der Ladefehler der PHP-Erweiterung angezeigt. Es ist unten gezeigt:

  • Wenn dieser Fehler auftritt, führen Sie die folgenden Schritte aus:
  • Öffnen Sie das Terminal und geben Sie den folgenden Befehl ein:
  • Für die Installation von Mcrypt

sudo apt-get installieren php5-mcrypt

sudo php5 enmod mcrypt

Sudo service apache2 neu starten

  • Zum Installieren von Curl

sudo apt-get installieren curl libcurl3 php5-curl

Sudo service apache2 neu starten

  • Für die Installation von gd

sudo apt-get installieren php5-gd

Sudo service apache2 neu starten

  • Klicken Sie dann auf der Magento-Installationsseite auf Weiter.

Datenbankverbindungsseite

  • Nachdem Sie auf "Weiter" geklickt haben, werden Sie zu einer Datenbankverbindungsseite weitergeleitet, auf der Sie Folgendes tun können:
  • Legen Sie einen Benutzernamen und ein Passwort fest.
  • Ändern Sie den Datenbanknamen.
  • Legen Sie die Tabellenpräfixe fest. (wahlweise)

Erstellen Sie ein Administratorkonto

Nachdem Sie alle Prozesse unter Konfiguration abgeschlossen haben, werden Sie aufgefordert, ein Administratorkonto zu erstellen, in dem Sie Folgendes tun müssen:

  • Geben Sie Ihre persönlichen Daten ein:
  • Vorname
  • Nachname
  • E-Mail-ID
  • Login-Informationen eingeben:
  • Benutzername
  • Kennwort
  • Passwort bestätigen
  • Verschlüsselungsschlüssel eingeben (optional)
  • Dann klicken Sie auf die Schaltfläche Weiter.

Sie sind fertig

Dies ist der letzte Schritt in der Installation von Magento. Hier erhalten Sie einen Verschlüsselungsschlüssel, den Sie speichern müssen, da er von Magento zur Verschlüsselung von Passwörtern, Kreditkarten etc. verwendet wird.

  • Jetzt haben Sie zwei Möglichkeiten auf Ihrem Bildschirm:
  • Gehe zum Frontend
  • Gehe zum Back-End
  • Sie können beide besuchen.

Front-End und Back-End

Wenn Sie Ihr Front-End besuchen, werden Sie feststellen, dass es keine Logos, Banner und Bilder für ein Produkt oder eine Marke gibt. Daher müssen Sie einige Änderungen am Back-End vornehmen, um sicherzustellen, dass alles gut funktioniert, bevor Sie mit Magento arbeiten können.

Notwendige Änderungen

  • Zum Hochladen von Bildern am Frontend
  • Kopiere Media- und Skin-Ordner aus Magento-Sample-Daten und füge sie in deinen Setup-Ordner ein.
  • Der Setup-Ordner enthält diese Ordner bereits, Sie müssen sie nur ersetzen.
  • Gehe dann zu deinem Front-End und aktualisiere die Seite. Sie werden sehen, dass die Logos, Bilder und Banner hochgeladen werden.
  • In einigen Fällen wird es keine Aktualisierung geben, das Front-End ist noch leer. In diesem Fall folgen Sie den unten aufgeführten Schritten:
  • Öffne das Terminal und gib den Befehl ein:

sudo chown -R www-daten / var / www / html / magento / media /

  • Gehen Sie dann zu Ihrem Back-End, bewegen Sie den Mauszeiger über das Systemmenü in der Menüleiste des Admin-Steuerfelds und klicken Sie auf die Cache-Verwaltung in der Drop-Down-Option.

  • Nach dem Klicken auf die Cache-Management-Option werden Sie zu einer neuen Seite weitergeleitet, auf der Sie rechts oben auf der Seite zwei Optionen sehen:
  • Magento-Cache leeren
  • Flush-Cache-Speicher
  • Klicken Sie auf diese Optionen, um Magento Cache und Cache Storage zu leeren.
  • Jetzt gehen Sie zu Ihrem Front-End und aktualisieren Sie die Seite, Sie werden sehen, dass alle Banner, Logos, Bilder aktualisiert werden, Sie werden Ihr Front-End fertig bekommen.
  • Ändern der Datei Index.php
  • Jetzt öffnen Sie Index.php, Sie finden index.php unter dem folgenden Pfad:

/ var / www / html / Magento

  • Klicken Sie auf die Datei Index.php und öffnen Sie sie.
  • Sie werden einen PHP-Code sehen, gehen Sie zur Zeile 73,74 und 75 und setzen Sie einen doppelten Schrägstrich am Anfang dieser Zeilen und entfernen Sie "#" am Anfang der Zeile 77, wie unten gezeigt:

  • Speichern Sie die Datei und schließen Sie sie.
  • Änderung der Datei Varien.php
  • Öffnen Sie jetzt Varien.php, Sie finden Varien.php auf dem unten angegebenen Pfad:

/ var / www / html / magento / app / code / kern / Mage / Core / Model / Session /

Abstrakt

  • Klicke auf die Datei Varien.php und öffne sie.
  • Sie sehen einen PHP-Code, gehen zu den Zeilen 99, 100 und 101 und weisen die Werte wie folgt zu:

  • Entfernen Sie die Zeilen wie $ cookie-> getconfigDomain () aus der Zeile 99,100 und 101 und setzen Sie doppelte Anführungszeichen, wie in der Abbildung gezeigt.
  • Speichern Sie die Datei und schließen Sie sie.

Sie konnten auch mögen:

Your license is inactive or expired, please subscribe again!