<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Magento 2 &#8211; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/tag/magento-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Mon, 24 Dec 2018 23:18:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>Magento 2 &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to magento 2 increase customer session time</title>
		<link>https://selmantunc.com.tr/uncategorized/how-to-magento-2-increase-customer-session-time/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 24 Dec 2018 23:18:51 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/24/how-to-magento-2-increase-customer-session-time/</guid>

					<description><![CDATA[Magento 2.1.x -&#62; Go to Stores &#62; Settings &#62; Configuration &#62; General &#62; Web &#62; Default Cookie Settings &#62; Cookie Lifetime Magento 1 -&#62; System &#62; Configuration &#62; Web &#62;&#8230;]]></description>
										<content:encoded><![CDATA[<p><a href="https://magento.stackexchange.com/questions/62193/how-to-increase-customer-session-time">Magento 2.1.x -&gt; <br></a>Go to Stores &gt; Settings &gt; Configuration &gt; General &gt; Web &gt; Default Cookie Settings &gt; Cookie Lifetime<br></p>
<p>Magento 1 -&gt;</p>
<p>System &gt; Configuration &gt; Web &gt; Session Cookie Management<br><br></p>
<h2><b>Magento 2 backend session timeout</b></h2>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Add A JavaScript Module [magento]</title>
		<link>https://selmantunc.com.tr/uncategorized/how-to-add-a-javascript-module/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 20:52:43 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/16/how-to-add-a-javascript-module/</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<figure class="tmblr-embed tmblr-full" data-provider="youtube" data-orig-width="540" data-orig-height="304" data-url="https%3A%2F%2Fwww.youtube.com%2Fwatch%3Ftime_continue%3D117%26v%3D4q43-auwAbU"></figure>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>magento 2 image size</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-image-size/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 17:23:19 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[Magento Tutorials]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/16/magento-2-image-size/</guid>

					<description><![CDATA[https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html Command usage: php bin/magento catalog:images:resize]]></description>
										<content:encoded><![CDATA[<p><a href="https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html">https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html</a>
<br></p>
<p>Command usage:</p>
<p><code>php bin/magento catalog:images:resize</code></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>magento 2 top header</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-top-header/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 05 Dec 2018 13:44:53 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Magento 2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/05/magento-2-top-header/</guid>

					<description><![CDATA[app/design/frontend/Smartwave/porto/Magento_Theme/layout/default.xml                        FAQ            faq            ]]></description>
										<content:encoded><![CDATA[<p>app/design/frontend/Smartwave/porto/Magento_Theme/layout/default.xml</p>
<pre><br>    <br>        <br>            FAQ<br>            faq<br>        <br>    <br></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Magento 2 how to configure Nginx to allow execute other php files in root folder</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-how-to-configure-nginx-to-allow-execute/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 26 Nov 2018 07:55:32 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[magento fix]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/11/26/magento-2-how-to-configure-nginx-to-allow-execute/</guid>

					<description><![CDATA[if you use the official Nginx config (nginx.conf.sample file in the Magento 2 distribution) then you need change the line 109 from : location ~ (index&#124;get&#124;static&#124;report&#124;404&#124;503).php$ { to : location&#8230;]]></description>
										<content:encoded><![CDATA[<p>if you use the official Nginx config (<code>nginx.conf.sample</code> file in the Magento 2 distribution) then you need change the <a href="https://github.com/magento/magento2/blob/1.0.0-beta/nginx.conf.sample#L109">line 109</a> from :</p>
<pre><code>location ~ (index|get|static|report|404|503).php$ {</code></pre>
<p>to :</p>
<pre><code>location ~ (index|get|static|report|404|503|phpinfo).php$ {</code></pre>
<p>and place <code>phpinfo.php</code> to the <code>pub</code> subfolder because <code>pub</code> declared as document root at <a href="https://github.com/magento/magento2/blob/1.0.0-beta/nginx.conf.sample#L21">line 21</a>:</p>
<p>root $MAGE_ROOT/pub;</p>
<p>I use <a href="https://mage2.pro/t/topic/24">my own Nginx config</a> for Magento 2 and it permits <code>phpinfo.php</code> in the root folder.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install Magento with Nginx on Ubuntu 18.04 (LEMP)</title>
		<link>https://selmantunc.com.tr/uncategorized/how-to-install-magento-with-nginx-on-ubuntu-1804/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 20 Nov 2018 11:17:51 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[magento fix]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/11/20/how-to-install-magento-with-nginx-on-ubuntu-1804/</guid>

					<description><![CDATA[Prerequisites Ubuntu 18.04 2GB or more RAM memory Root privileges What we will do Install PHP Composer Download Magento 2 Install Magento Components Generate SSL Letsencrypt Configure Nginx Virtual Host&#8230;]]></description>
										<content:encoded><![CDATA[<h2>Prerequisites</h2>
<ul><li>Ubuntu 18.04</li>
<li>2GB or more RAM memory</li>
<li>Root privileges</li>
</ul>
<h2>What we will do</h2>
<ol><li>Install PHP Composer</li>
<li>Download Magento 2</li>
<li>Install Magento Components</li>
<li>Generate SSL Letsencrypt</li>
<li>Configure Nginx Virtual Host for Magento</li>
<li>Magento Post-Installation</li>
</ol>
<h2>Step 1 &#8211; Install Nginx on Ubuntu 18.04 LTS</h2>
<p>In this tutorial, we will be using the Nginx web server for our Magento installation.</p>
<p>Log in to the server, update the repository, and upgrade all packages.</p>
<pre><code>sudo apt update&lt;br&gt;sudo apt upgrade</code></pre>
<p>Now install the Nginx web server using the apt command below.</p>
<pre><code>sudo apt install nginx -y</code></pre>
<p>After the installation is complete, start the Nginx service and enable it to launch every time at system boot.</p>
<pre><code>systemctl start nginx&lt;br&gt;systemctl enable nginx</code></pre>
<p>Nginx web server has been installed, check it using netstat command
and make sure the HTTP port 80 is on the ‘LISTEN’ state. Another way is
by using curl command as below.</p>
<pre><code>netstat -plntu&lt;br&gt;curl -I localhost</code></pre>
<h2>Step 2 &#8211; Install and Configure PHP-FPM 7.1</h2>
<p>After the Nginx web server installation, we will install PHP 7.1 on
the server as Magento does not support PHP 7.2 yet. We will install
PHP-FPM with all extensions needed by Magento 2.</p>
<p>List of PHP extensions needed for Magento 2 installation:</p>
<ul><li>bc-math</li>
<li>ctype</li>
<li>curl</li>
<li>dom</li>
<li>gd, ImageMagick 6.3.7 (or later) or both</li>
<li>intl</li>
<li>mbstring</li>
<li>mcrypt</li>
<li>hash</li>
<li>openssl</li>
<li>PDO/MySQL</li>
<li>SimpleXML</li>
<li>soap</li>
<li>spl</li>
<li>libxml</li>
<li>xsl</li>
<li>zip</li>
<li>json</li>
<li>iconv</li>
</ul>
<p>For this guide, we will install PHP-FPM packages from the PPA repository. We will be using the &#8216;ondrej/php’ repository.</p>
<p>Install the &#8216;software-properties-common’ package and add the &#8216;ondrej/php’ repository using commands below.</p>
<pre><code>sudo apt install software-properties-common -y&lt;br&gt;</code>
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update
sudo apt-get install -y php7.1</pre>
<p>Now install PHP-FPM 7.1 with all extensions needed.</p>
<pre><code>sudo apt install php7.1-fpm php7.1-mcrypt php7.1-curl php7.1-cli php7.1-mysql php7.1-gd php7.1-xsl php7.1-json php7.1-intl php-pear php7.1-dev php7.1-common php7.1-mbstring php7.1-zip php7.1-soap php7.1-bcmath -y</code></pre>
<p>After the installation is complete, check the PHP version and installed extensions using PHP commands.</p>
<pre><code>php -v&lt;br&gt;php -me</code></pre>
<p>Next, we will configure the php.ini file for the PHP-FPM and PHP-CLI.</p>
<p>Edit the php.ini files using nano</p>
<pre><code>vim /etc/php/7.1/fpm/php.ini&lt;br&gt;vim /etc/php/7.1/cli/php.ini</code></pre>
<p>Change the value of those lines as below.</p>
<pre>memory_limit = 512M
max_execution_time = 180
zlib.output_compression = On</pre>
<p>Save and exit.</p>
<p>or </p>
<pre>sed -i "s/memory_limit = .*/memory_limit = 512M/" <code>/etc/php/7.1/fpm/php.ini</code>
sed -i "s/upload_max_filesize = .*/upload_max_filesize = 128M/" <code>/etc/php/7.1/fpm/php.ini</code>
sed -i "s/zlib.output_compression = .*/zlib.output_compression = on/" <code>/etc/php/7.1/fpm/php.ini</code>
sed -i "s/max_execution_time = .*/max_execution_time = 18000/" <code>/etc/php/7.1/fpm/php.ini</code>

sed -i "s/memory_limit = .*/memory_limit = 512M/" <code>/etc/php/7.1/cli/php.ini</code>
sed -i "s/upload_max_filesize = .*/upload_max_filesize = 128M/" <code>/etc/php/7.1/cli/php.ini</code>
sed -i "s/zlib.output_compression = .*/zlib.output_compression = on/" <code>/etc/php/7.1/cli/php.ini</code>
sed -i "s/max_execution_time = .*/max_execution_time = 18000/" <code>/etc/php/7.1/cli/php.ini</code></pre>
<p>Now restart the PHP-fpm service and enable it to launch every time at system boot.<br></p>
<pre><code>systemctl restart php7.1-fpm&lt;br&gt;systemctl enable php7.1-fpm</code></pre>
<p>The PHP-FPM 7.1 installation and configuration has been completed, check the service using netstat command.</p>
<pre><code>netstat -pl | grep php</code></pre>
<p>And you will get the PHP-fpm socks file as below.<br><br>WARNING</p>
<p><a href="https://stackoverflow.com/questions/16002268/prevent-nginx-504-gateway-timeout-using-php-set-time-limit">https://stackoverflow.com/questions/16002268/prevent-nginx-504-gateway-timeout-using-php-set-time-limit</a>
<br></p>
<h2>or Step 2.1 &#8211; Install and Configure PHP-FPM 7.0</h2>
<pre><code>sudo apt install software-properties-common -y&lt;br&gt;sudo add-apt-repository ppa:ondrej/php -y</code></pre>
<p>Now install PHP-FPM 7.0 with all extensions needed.</p>
<pre><code>sudo apt install php7.0-fpm php7.0-mcrypt php7.0-curl php7.0-cli php7.0-mysql php7.0-gd php7.0-xsl php7.0-json php7.0-intl php-pear php7.0-dev php7.0-common php7.0-mbstring php7.0-zip php7.0-soap php7.0-bcmath -y&lt;br&gt;</code></pre>
<p>After the installation is complete, check the PHP version and installed extensions using PHP commands.</p>
<pre><code>php -v&lt;br&gt;php -me</code></pre>
<p>Next, we will configure the php.ini file for the PHP-FPM and PHP-CLI.</p>
<p>Edit the php.ini files using nano</p>
<pre><code>vim /etc/php/7.0/fpm/php.ini&lt;br&gt;vim /etc/php/7.0/cli/php.ini</code></pre>
<p>Change the value of those lines as below.</p>
<pre>memory_limit = 512M
max_execution_time = 180
zlib.output_compression = On</pre>
<p>Save and exit.</p>
<p>or </p>
<pre>sed -i "s/memory_limit = .*/memory_limit = 512M/" <code>/etc/php/7.0/fpm/php.ini</code>
sed -i "s/upload_max_filesize = .*/upload_max_filesize = 128M/" <code>/etc/php/7.0/fpm/php.ini</code>
sed -i "s/zlib.output_compression = .*/zlib.output_compression = on/" <code>/etc/php/7.0/fpm/php.ini</code>
sed -i "s/max_execution_time = .*/max_execution_time = 18000/" <code>/etc/php/7.0/fpm/php.ini</code>

sed -i "s/memory_limit = .*/memory_limit = 512M/" <code>/etc/php/7.0/cli/php.ini</code>
sed -i "s/upload_max_filesize = .*/upload_max_filesize = 128M/" <code>/etc/php/7.0/cli/php.ini</code>
sed -i "s/zlib.output_compression = .*/zlib.output_compression = on/" <code>/etc/php/7.0/cli/php.ini</code>
sed -i "s/max_execution_time = .*/max_execution_time = 18000/" <code>/etc/php/7.0/cli/php.ini</code></pre>
<p>Now restart the PHP-fpm service and enable it to launch every time at system boot.<br></p>
<pre><code>systemctl restart php7.0-fpm&lt;br&gt;systemctl enable php7.0-fpm</code></pre>
<p>The PHP-FPM 7.0 installation and configuration has been completed, check the service using netstat command.</p>
<pre><code>netstat -pl | grep php</code></pre>
<p>And you will get the PHP-fpm socks file as below.</p>
<h2>Step 3 &#8211; Install and Configure MySQL Server</h2>
<p>The Magento software requires MySQL 5.6.x, and the Magento 2.1.2 or
later require the MySQL 5.7.x. In this tutorial, we will install latest
MySQL server 5.8 on the Ubuntu 18.04 system.</p>
<p>Install MySQL 5.8 using the apt command below.</p>
<pre><code>sudo apt install mysql-server mysql-client -y</code></pre>
<p>After the installation is complete, start the MySQL service and enable it to launch every time at system boot.</p>
<pre><code>systemctl start mysql&lt;br&gt;systemctl enable mysql</code></pre>
<p>Now we will configure the MySQL root password using &#8216;mysql_secure_installation’ command.</p>
<pre><code>mysql_secure_installation</code></pre>
<p>In this MySQL 5.8 version, there is a security improvement for the
MySQL password policy. You need to choose the password policy &#8211; 0 for
the LOW policy, 1 for the MEDIUM policy, and 2 for a STRONG password
policy.</p>
<p>For this guide, we will be using the &#8216;MEDIUM’ password policy, and it’s recommended to use the &#8216;STRONG’ password policy on the </p>
<p>Choose number &#8216;1’ and press Enter, then type your new MySQL &#8216;root’ password.</p>
<pre> Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y<br> Disallow root login remotely? (Press y|Y for Yes, any other key for No) : Y<br> Remove test database and access to it? (Press y|Y for Yes, any other key for No) : Y<br> Reload privilege tables now? (Press y|Y for Yes, any other key for No) : Y</pre>
<p>The MySQL root password has been set up.</p>
<p>You can increase the value for packet which is larger than Magento default by opening <b>/etc/mysql/mysql.cnf</b> in a text editor and navigate to <b>max_allowed_packet</b>.  </p>
<p>Then, save to <b>mysql.cnf</b> and restart MySQL by entering <b>service mysql restart</b>.</p>
<p>Run the following command at a <b>mysql&gt;</b> prompt to verify your set value:</p>
<pre>SHOW VARIABLES LIKE 'max_allowed_packet';
</pre>
<p>Next, we will create a new database for our Magento installation. We
will create a new database named  &#8216;magentodb’ with user &#8216;magentouser’
and the password is &#8216;Magento0463@#’.</p>
<p>Login to the MySQL shell using the root user.</p>
<pre><code>mysql -u root -p</code></pre>
<p>Now run MySQL queries below to create the database and user.</p>
<pre><code>create database magentodb;&lt;br&gt;create user magentouser@localhost identified by 'Magento0463@#';&lt;br&gt;grant all privileges on magentodb.* to magentouser@localhost identified by 'Magento0463@#';&lt;br&gt;flush privileges;</code></pre>
<p>The MySQL server installation and configuration for the Magento installation has been completed.</p>
<h2>Step 4 &#8211; Install and Configure Magento 2</h2>
<p>In this step, we will install Magento 2.2.4 latest version from
Github repository. We will install the PHP composer for installing the
Magento components, download Magento from Github repository, configure
Nginx virtual host for Magento, and install Magento using the web-based
post installation.</p>
<p>
&#8211; Install PHP Composer
</p>
<p>Install PHP Composer on ubuntu 18.04 using the apt command below.</p>
<pre><code>sudo apt install composer -y</code></pre>
<p>After the installation is complete, check the composer version installed on the system.</p>
<pre><code>composer -V</code></pre>
<p>The latest version PHP Composer has been installed.</p>
<p><b>
&#8211; Download Magento 2
</b></p>
<p>Go to the ’/var/www’ directory and download the Magento archive source code from Github using wget command.</p>
<pre><code>cd /var/www/&lt;br&gt;wget &lt;a href=&quot;https://github.com/magento/magento2/archive/2.2.6.tar.gz&quot;&gt;https://github.com/magento/magento2/archive/2.2.6.tar.gz&lt;/a&gt;</code></pre>
<p>Now extract the Magento archive file and rename the directory to &#8216;magento2’.</p>
<pre><code>tar -xf 2.2.6.tar.gz;&lt;br&gt;mv magento2-2.2.6/ magento2/;</code></pre>
<p>The Magento source code has been downloaded, and the ’/var/www/magento2’ directory will be the web root for the Magento site.</p>
<p>
&#8211; Install Magento Components
</p>
<p>Install Magento components using the PHP composer. Go to the
&#8216;magento2’ directory and install all the PHP components needed by
Magento using the &#8216;composer’ command.</p>
<pre><code>cd /var/www/magento2;&lt;br&gt;composer install -v;</code></pre>
<p>If you plan to install Sample data – refer to this <a href="http://devdocs.magento.com/guides/v1.0/install-gde/install/sample-data.html">link</a> for details. As for now Magento 2 is still under development, the best variant is to read the latest documentation at Magento <a href="http://devdocs.magento.com/guides/v1.0/install-gde/bk-install-guide.html">docs</a>.</p>
<h2>File permissions</h2>
<p>‘Admin’ user is the owner of all magento files on our server, and
Apache web server runs on behalf of ‘www-data’ user. Magento 2
documentation <a href="http://devdocs.magento.com/guides/v1.0/install-gde/install/composer-clone.html#instgde-prereq-compose-access">describes</a>
 the access permission settings for files and directories on the
principle that the web server runs on behalf of the user which is the
owner of all Magento files. Our opinion is: it’s not the best decision,
as it can lead to security issues (as the web server has permissions to
write and run the code) as well as issues with setting access
permissions for third party developers (as you’re not logging in as
www-data user). We normally use the following access permissions:</p>
<pre>cd /var/www/magento2
find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} ;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} ;
chmod u+x bin/magento</pre>
<p>If you’re going to install Magento from the web interface, then add write permissions for app/etc/ and vendor/:</p>
<p><code>chmod</code> <code>-R g+w /</code><code>var</code><code>/www/magento2/{app/etc,vendor}</code>

<br></p>
<h2> Configure nginx</h2>
<ol><li> Run the line to create a new virtual host for your Magento site:</li></ol>
<pre>vim /etc/nginx/sites-available/magento
</pre>
<ol><li> Make the following configuration:</li></ol>
<pre>upstream fastcgi_backend {
     server  unix:/run/php/php7.1-fpm.sock;
 }

 server {

    listen 80;
    #listen [::]:80;
    index  index.php index.html index.htm;
    server_name  example.com <a href="http://www.example.com">www.example.com</a>;
    set $MAGE_ROOT /var/www/magento2;
    #client_max_body_size 200M;
    #set $MAGE_MODE developer;
    include /var/www/magento2/nginx.conf.sample;
 }<b>
</b></pre>
<ol><li> Match your domain name with the base URL you chose when installing Magento.</li>
<li> Save and exit the editor.</li>
<li> Activate host by creating a symlink:</li></ol>
<pre>ln -s /etc/nginx/sites-available/magento /etc/nginx/sites-enabled
</pre>
<ol><li>Delete the default configuration:<br><br></li>
<li><b>sudo rm -f /etc/nginx/sites-enabled/default</b></li>
<li>Verify if the syntax is correct:<br><br></li></ol>
<p><i>nginx -t</i>
<br><br>Run the command to restart nginx:</p>
<pre>systemctl restart nginx</pre>
<h2>Verify the installation</h2>
<p>Now try your site’s URL on a web browser to verify the site yourself.</p>
<h2><b><a href="http://selmantunc.tumblr.com/post/180581648617/magento-2-if-you-would-like-to-ssl">If you would like to SSL </a> (<a href="http://selmantunc.tumblr.com/post/180581648617/magento-2-if-you-would-like-to-ssl">click</a>)</b></h2>
<p><b>Sample DATA INSTALL</b>
<br></p>
<p>install magento </p>
<p>cd /var/www/<br></p>
<pre><code>wget &lt;a href=&quot;https://t.umblr.com/redirect?z=https%3A%2F%2Fgithub.com%2Fmagento%2Fmagento2%2Farchive%2F2.2.6.tar.gz&amp;t=YWYxZWE0NTk4Y2YyYjJmYTU5OWYxYWM3NzI4MTBkMzU0ZDgyMDcyMixNcDNIejBZVA%3D%3D&amp;b=t%3AusB6gIQUr-9iJ_hZdVo9xw&amp;p=http%3A%2F%2Fselmantunc.tumblr.com%2Fpost%2F180306101827%2Fmagento-2-setup&amp;m=1&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/magento/magento2-sample-data/archive/2.2.tar.gz&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;https://codeload.github.com/magento/magento2-sample-data/zip/2.2.6&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/magento/magento2/archive/2.2-develop.zip&quot;&gt;https://github.com/magento/magento2/archive/2.2-develop.zi&lt;/a&gt;p</code></pre>
<pre><code>&lt;a href=&quot;https://github.com/magento/magento2/archive/2.2-develop.zip&quot;&gt;unzip 2.2-develop.zip&lt;br&gt;&lt;/a&gt;</code>cd magento2-2.2-develop/<br><code>mv * ../</code>

</pre>
<pre>wget <a href="https://github.com/magento/magento2-sample-data/archive/2.2.6.zip">https://github.com/magento/magento2-sample-data/archive/2.2.6.zip</a>
<br></pre>
<pre><code>unzip 2.2.6.zip
cd magento2-sample-data-2.2.6/
mv * ../&lt;br&gt;</code></pre>
<p>Enable sample data modules (it’s important!):</p>
<pre><code>php bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData
</code></pre>
<p>Remove old files:</p>
<pre><code>rm -rf var/cache/* var/page_cache/* var/generation/*
</code></pre>
<p>Upgrade magento files:</p>
<pre><code>bin/magento setup:upgrade
</code></pre>
<p>Recompile files:</p>
<pre><code>php bin/magento setup:di:compile
</code></pre>
<p>Do reindex:</p>
<pre><code>php bin/magento indexer:reindex
</code></pre>
<p>Deploy static content:</p>
<pre><code>php bin/magento setup:static-content:deploy</code></pre>
<h2>FİXED BUGS </h2>
<p>Note: right now (15.05.2015) Magento Sample data can’t be install due to an unknown bug.</p>
<p>[Progress: 269 / 272]<br>Installing sample data:</p>
<p>[MagentoFrameworkExceptionLocalizedException]<br>Area code is already set</p>
<p>Thus, we advise to monitor <a href="https://github.com/magento/magento2/issues">known Magento 2 issues</a> and submit bugs if you notice any.</p>
<p>“””sample data error Fatal error: Cannot use &#8216;Void’ as class name as it is reserved in ….”</p>
<p><a href="https://magento.stackexchange.com/questions/128460/classnames-void-inside-vendor-magento">https://magento.stackexchange.com/questions/128460/classnames-void-inside-vendor-magento</a>
<br></p>
<h2>magento 2 Error “An error has happened during application run. See exception log for detail</h2>
<p>In my case this happens when runing a command as root user which is changes the file permissions.</p>
<p>A simple owner corecction can solve this:</p>
<p>chown -R www-data:www-data /var/www/magento2/</p>
<p>For me this was worked.</p>
<p>———————————————-</p>
<p>

php bin/magento maintenance:enable;<br>php bin/magento setup:upgrade;<br>php bin/magento setup:di:compile;<br>php bin/magento setup:static-content:deploy -f;<br>php bin/magento cache:clean;<br>php bin/magento maintenance:disable

<br></p>
<p>———</p>
<h2><b>Magento 2 first install –   How to fix Magento 500 Internal Server Errors

</b></h2>
<p>chown -R www-data:www-data /var/www/magento2/ </p>
<p> chmod 777 -R var<br>chmod 777 -R generated<br>chmod 777 -R app/etc<br></p>
<p>or  <a href="https://www.simicart.com/blog/magento-2-file-permissions/">https://www.simicart.com/blog/magento-2-file-permissions/</a></p>
<p>———-</p>
<p><b>

Adjusting Child Processes For PHP-FPM Nginx – Fix Server Reached pm.max_children Setting</b></p>
<p><a href="https://www.tecklyfe.com/adjusting-child-processes-php-fpm-nginx-fix-server-reached-pm-max_children-setting/">https://www.tecklyfe.com/adjusting-child-processes-php-fpm-nginx-fix-server-reached-pm-max_children-setting/</a>
<br></p>
<p>magento and varnish install </p>
<p><a href="https://www.rosehosting.com/blog/how-to-install-magento-2-with-apache-varnish-and-memcache/">https://www.rosehosting.com/blog/how-to-install-magento-2-with-apache-varnish-and-memcache/</a>
<br></p>
<p>PROBLEM  = in correct datetime value:</p>
<pre><code>
 SET sql_mode = 'NO_ZERO_DATE';

</code></pre>
<p><a href="https://askubuntu.com/questions/928191/how-to-open-a-closed-port-in-ubuntu">https://askubuntu.com/questions/928191/how-to-open-a-closed-port-in-ubuntu</a>
<br></p>
<p><b>sudo bin/magento setup:store-config:set –base-url=”<a href="https://www.google.com/url?q=https://ww.Site.com&amp;sa=D&amp;source=hangouts&amp;ust=1544219727399000&amp;usg=AFQjCNEHkDX2YWcngvwHb0nNwdTUR0qpmg">https://ww.Site.com</a>“</b></p>
<p><b>Source:</b>
<br></p>
<p><a href="https://websiteforstudents.com/a-very-quick-and-easy-way-to-install-magento-2-with-nginx-on-ubuntu/">https://websiteforstudents.com/a-very-quick-and-easy-way-to-install-magento-2-with-nginx-on-ubuntu/</a>
<br></p>
<p><a href="https://www.howtoforge.com/tutorial/how-to-install-magento-with-nginx-on-ubuntu/">https://www.howtoforge.com/tutorial/how-to-install-magento-with-nginx-on-ubuntu/</a>
<br></p>
<p><a href="https://www.rosehosting.com/blog/magento-2-with-redis-varnish-and-nginx-as-ssl-termination/">https://www.rosehosting.com/blog/magento-2-with-redis-varnish-and-nginx-as-ssl-termination/</a>
<br></p>
<p><a href="https://www.simicart.com/blog/magento-2-nginx/">https://www.simicart.com/blog/magento-2-nginx/</a></p>
<p><a href="https://gist.github.com/okovalov/37fa0ededf8878c616df7faab99afed7">https://gist.github.com/okovalov/37fa0ededf8878c616df7faab99afed7</a>
<br></p>
<p><a href="https://doc.zooextension.com/magento/magento-hosting/#/install-configure-php-fpm">https://doc.zooextension.com/magento/magento-hosting/#/install-configure-php-fpm</a>
<br></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Magento 2 Something went wrong with processing the default view and  &#8230; error (fixed)</title>
		<link>https://selmantunc.com.tr/uncategorized/magento-2-something-went-wrong-with-processing-the/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 17 Nov 2018 14:06:06 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[magento fix]]></category>
		<category><![CDATA[Magento2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/11/17/magento-2-something-went-wrong-with-processing-the/</guid>

					<description><![CDATA[Problem: Something went wrong with processing the default view and we have restored the filter to its original state. Fixed: File open: vendormagentoframeworkViewElementUiComponentDataProviderFulltextFilter.php Function change: public function apply(Collection $collection, Filter&#8230;]]></description>
										<content:encoded><![CDATA[<p><b>Problem:</b> Something went wrong with processing the default view and we have restored the filter to its original state.</p>
<p><b>Fixed:</b></p>
<p>File open: vendormagentoframeworkViewElementUiComponentDataProviderFulltextFilter.php</p>
<p>Function change:</p>
<pre>public function apply(Collection $collection, Filter $filter)<br>{<br>    if (!$collection instanceof AbstractDb) {<br>        throw new InvalidArgumentException('Database collection required.');<br>    }<br><br>    /** @var SearchResult $collection */<br>    $mainTable = $collection-&gt;getMainTable();<br>    $columns = $this-&gt;getFulltextIndexColumns($collection, $mainTable);<br>    if (!$columns) {<br>        return;<br>    }<br><br>    $columns = $this-&gt;addTableAliasToColumns($columns, $collection, $mainTable);<br>    $collection-&gt;getSelect()<br>        -&gt;where(<br>            'MATCH(' . implode(',', $columns) . ') AGAINST(?)',<br>          //  $filter-&gt;getValue()<br>            $this-&gt;escapeAgainstValue($filter-&gt;getValue())<br>        );<br>}</pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Neden Magento 2</title>
		<link>https://selmantunc.com.tr/uncategorized/neden-magento-2/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 12 Nov 2018 15:52:13 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[Magento 2]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/11/12/neden-magento-2/</guid>

					<description><![CDATA[Daha iyi geliştirilmiş bir test ortamı ,birim test,unit,test,arayüz testi Entegrasyon Testi ve JavaScript Ünite Testi için kusursuz test çerçevesine sahiptir. Prototype js yerine jquery ve knockout kullanır. Modern PHP 7&#8230;]]></description>
										<content:encoded><![CDATA[<p>Daha iyi geliştirilmiş bir test ortamı ,birim test,unit,test,arayüz testi</p>
<p>Entegrasyon Testi ve JavaScript Ünite Testi için kusursuz test çerçevesine sahiptir.</p>
<p>Prototype js yerine jquery ve knockout kullanır.</p>
<p>Modern PHP 7 yi ve composer kullanır.</p>
<p>Performans iyileştirmesi yapılmıştır.</p>
<p>Yazılım geliştiriciler için daha iyi hale gelmiş zend 2 ile namespace mantığına geçilmiştir, daha fazla api arayüzü bulunur.</p>
<p>Yeni Dosya Yapısı: Magento&#8217;nun temel teması tamamen yeni bir dosya yapısıyla değiştirildi. Geliştiriciler, modül yapısındaki tüm temel görünümü görebilir.<br></p>
<p><br>Hizmet Sözleşmeleri: Hizmet sözleşmeleri, çeşitli modüllere yönelik API&#8217;lerin kullanımını geliştirmek ve basitleştirmek için bir dizi farklı PHP Arabirimine dayanmaktadır. </p>
<p>Geliştiricilere kamu API uç noktaları ile yeni bir çalışma yöntemi sağlar.<br>Diğer platformlarla mükemmel uyumluluk: Magento 2.0, Zend framework ve PHP 5.3 ile en iyi şekilde desteklenir. Ayrıca Oracle, MSSQL ve diğer veritabanı için de desteği vardır.</p>
<p><br>Daha İyi Esneklik: Magento 2, her bileşenin devre dışı bırakılmasına veya etkinleştirilmesine izin verir ve kod tabanını temiz tutar. Ayrıca bileşen odaklı bir yapıya sahiptir.</p>
<p><br>Bileşen ve Modüller : Magento 2.0&#8217;da, config.xml dosyasının yeni bir versiyonunu % 20&#8217;nin üzerinde azaltmaya yönelik gelişmiş bir ödeme seçeneği ve bu sayede geliştiriciler, daha az süre içinde özelleştirilebilir çözümler sunar.</p>
<p><br>Görünüm Kavramı: Tümü, karmaşıklığı ve genel geliştirme süresini azaltan “Modülde Görünüm” konsepti sayesinde. Ayrıca, geliştiricilerin öngörülen zaman dilimi içinde bir çalışma görünümü geliştirmelerini sağlar.</p>
<p><br>Sorunsuz Olmayan Yükseltmeler ve Kurulum: Magento 2, bir kurulum ve güncellemeler için önceki sürümlerden daha dostça. Hatta kullanıcılar, en yeni Magento 2 sürümüne geçmek için uygun bir format kullanabilirler.</p>
<p><br>Üstün Güvenlik: Magento 2, geliştiricilerin kodları farklı güvenlik ihlallerinden korumalarını sağlayan yeni bir dizinle birlikte “pub” ile daha güvenlidir.</p>
<p><br>Magento Topluluğu: Magento Topluluğu, Magento 2 ile ortaya konan herhangi bir sorun için sorunsuz bir destek sunuyor.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
