Dieses Blog durchsuchen

Samstag, 21. November 2015

First steps. Complete Installation on ubuntu LAMP Stack

Since half a year the community makes a big wind about magento 2.
I successfuly ignored it till November the 17. The day the 2.0 was released.

Now i want to have a look how to get in touch with it.

Magento 2 was released with the notice to use PHP7. But for Ubuntu 15.04 users there are no possibilities to get php7 up and running without to much playing arround. We want to lern magento, not "How to install PHP7 Beta on a not supported OS". Surely you can use vagrant or a VM with ubuntu 14.04 or CentOS.

So i decided to give 2.0 a try on ubuntu 15.04 with php 5.6.11
  

Apache 2.4
sudo apt-get install apache2 

MySql 5.6
sudo apt-get install mysql-server mysql-client

PHP5.5 (Magento)
sudo apt-get install php5 php5-intl libapache2-mod-php5 php5-mcrypt php5-gd php5-mysql php5-tidy php5-xmlrpc php5-xsl php5-curl php5-common php5-cli php5-ldap
service apache2 restart

sendmail
apt-get install sendmail

PHP.ini
At next an incompatibilty to php 7 has to be fixed. For that open
nano /etc/php5/apache2/php.ini
always_populate_raw_post_data =-1

php-mcrypt
a bug on ubuntu needs to be fixed for getting mcrypt running.
Otherwise you will get an installer error on setupscreen of magento2

sudo apt-get install mcrypt php5-mcrypt sudo php5enmod mcrypt sudo service apache2 restart

At next download an unpack magento 2 
https://www.magentocommerce.com/download
- unpack it under /var/www/html/magento

add a hostfile entry if you are on localhost
nano /etc/hosts
127.0.0.1 magento2.local 


Configure your apache 
<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName magento2.local

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/magento2


        <Directory "/var/www/html">
                AllowOverride  All
        </Directory>


        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

</VirtualHost>






After that browser to magent2.local
a readynesssceen will follow up and you can test 

The rest is well known. Follow the intallerscreen, put in your database credential to a existing database, you have created before and setup an adminuser to access adminarea.

New is that magento will suggest a secure unique adminarea url, to prevent hacks on standard routs, happend very often in the past.





 




 

Keine Kommentare:

Kommentar veröffentlichen