<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>error on Tutes Club</title><link>https://tutes.in/tag/error/</link><description>Recent content in error on Tutes Club</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 12 Feb 2019 18:01:40 +0000</lastBuildDate><atom:link href="https://tutes.in/tag/error/index.xml" rel="self" type="application/rss+xml"/><item><title>How to fix Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI error in SSH?</title><link>https://tutes.in/how-to-fix-composer-should-be-invoked-via-the-cli-version-of-php-not-the-cgi-fcgi-sapi-error-in-ssh/</link><pubDate>Tue, 12 Feb 2019 17:58:38 +0000</pubDate><guid>https://tutes.in/how-to-fix-composer-should-be-invoked-via-the-cli-version-of-php-not-the-cgi-fcgi-sapi-error-in-ssh/</guid><description>&lt;p&gt;Put this in your bash profile and run &lt;strong&gt;source ~/.bashrc&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;alias&lt;/span&gt; &lt;span class="nv"&gt;composer&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;/opt/cpanel/ea-php71/root/usr/bin/php /opt/cpanel/composer/bin/composer&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;p&gt;As Composer is now available via WHM you can use this to find it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;which composer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This returned path “&lt;strong&gt;/opt/cpanel/composer/bin/composer&lt;/strong&gt;” for me. If this returns nothing then disregard the rest of this answer, as Composer is not available to you at system level.&lt;/p&gt;
&lt;p&gt;You can now use &lt;code&gt;php-cli&lt;/code&gt; to call this with Composer’s absolute path:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;php-cli /opt/cpanel/composer/bin/composer install
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;php-cli /opt/cpanel/composer/bin/composer update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;php-cli /opt/cpanel/composer/bin/composer require whatever/example
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You may however need to alias &lt;code&gt;php-cli&lt;/code&gt; if your system claims this isn’t found. It very much depends how PHP has been deployed on the WHM server. &lt;a href="https://tutes.in/fix-magento-2-php-cli-error-on-cpanel-or-other-hostings/"&gt;Learn how to fix PHP CLI error&lt;/a&gt;. You can do this by adding a user alias to the end of your “&lt;strong&gt;.bashrc&lt;/strong&gt;” or “&lt;strong&gt;.bash_profile&lt;/strong&gt;” file as follows:&lt;/p&gt;</description></item><item><title>[SOLVED] PHP must be run as a CLI application error : Content-type: text/html; charset=UTF-8</title><link>https://tutes.in/solved-php-must-be-run-as-a-cli-application-error-content-type-text-html-charsetutf-8/</link><pubDate>Sat, 28 Jul 2018 14:33:39 +0000</pubDate><guid>https://tutes.in/solved-php-must-be-run-as-a-cli-application-error-content-type-text-html-charsetutf-8/</guid><description>&lt;p&gt;php bin/magento cache:clean&lt;br&gt;
Content-type: text/html; charset=UTF-8&lt;br&gt;
bin/magento must be run as a CLI application&lt;/p&gt;
&lt;p&gt;as root user, run the following commands (For php v7.0)&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# yum install ea-php70&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# source /opt/cpanel/ea-php70/enable&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The solution involves fixing php variable’s path. We need to find which php is being used right now, you can find out by&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ which php
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ php -v
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To fix this PHP cli error, see &lt;a href="https://tutes.in/fix-magento-2-php-cli-error-on-cpanel-or-other-hostings/"&gt;how to edit php in bash profile (.bashrc)&lt;/a&gt;&lt;/p&gt;</description></item><item><title>MySQL error 1449: The user specified as a definer does not exist</title><link>https://tutes.in/mysql-error-1449-the-user-specified-as-a-definer-does-not-exist/</link><pubDate>Sat, 28 Jul 2018 12:05:17 +0000</pubDate><guid>https://tutes.in/mysql-error-1449-the-user-specified-as-a-definer-does-not-exist/</guid><description>&lt;p&gt;Why this error happens?&lt;/p&gt;
&lt;p&gt;Most of the times, reason is that your database dump through command line or PhpMyAdmin or even other libraries can have SQL’s Definer statements. Now, as per &lt;a href="https://dev.mysql.com/doc/en/create-procedure.html"&gt;MySQL’s Official Documentation&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The &lt;code&gt;DEFINER&lt;/code&gt; clause specifies the MySQL account to be used when checking access privileges at routine execution time for routines that have the &lt;code&gt;SQL SECURITY DEFINER&lt;/code&gt; characteristic.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://dev.mysql.com/doc/refman/8.0/en/create-procedure.html"&gt;MySQL Reference Manual v8.0&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="solution-mysql-mysqldump-create-a-safe-backup-to-ensure-no-corruption"&gt;Solution: MySQL mysqldump create a safe backup to ensure no corruption&lt;/h2&gt;
&lt;p&gt;Use the following command to create backup of your mysql database. Put the command in terminal&lt;/p&gt;</description></item></channel></rss>