Open terminal or cmd and put following command
apt install php7.2-soap
apt install php7.2-bcmath
Shopify, Shopify Apps, Magento, WordPress, Codeigniter, Joomla, Big Commerce | PHP
apt install php7.2-soap
apt install php7.2-bcmath
#1055 - Expression #24 of SELECT list is not in GROUP BY clause
and contains nonaggregated column 'customers.first_name' which is not
functionally dependent on columns in GROUP BY clause; this is
incompatible with sql_mode=only_full_group_by
$this->db->query("SET sql_mode=(SELECT REPLACE(@@sql_mode, 'ONLY_FULL_GROUP_BY', ''));");
$this->db->select('*, customers.first_name, customers.last_name, customers.id');
$this->db->select("(SELECT count(video_id) FROM customer_videos WHERE c.customer_id = customer_videos.customer_id AND (created_at >= '$from' OR created_at <= '$todate')) as seen");
$this->db->join('customers', 'customers.id = c.customer_id', 'left');
$this->db->group_by('c.customer_id');
$this->db->from('customer_videos as c');
$query = $this->db->get();
echo "<pre/>"; print_r($query->result());exit;
return $query->result_array();
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head
df -hCheck file size
find /home/ -size +100M
Check INODES in server (Inode mean total files into server)
df -i
for i in /var/www/html/*; do echo $i; find $i |wc -l; doneCheck INODES into specific directory
ls -l /var/lib/php/sessions | wc -lRemove all files from specific directory
rm -r /var/lib/php/sessions/If you are using PHP so you can create code in any existing file
$path = '/var/lib/php/sessions/';
$dir = opendir($path);
$i = 0;
while ($dir && ($file = readdir($dir)) !== false) {
unlink($path.$file);
echo $i.' - '.$path.$file.'<br>';
if($i == 50000){
exit;
}
$i++;
}
For your ref : https://www.youtube.com/watch?v=W89C_OqlOwE
1. Open Terminal
2. Paste the text, change email address. $ ssh-keygen -t rsa -b 4096 -C "jaydipkansagra@example.com"
3. Enter a file in which to save the key (/root/.ssh/id_rsa): [Press enter] (Recommend press enter)
4. Enter passphrase (empty for no passphrase): [Type password] (Recommend keep blank)
5. Enter same passphrase again: [Type password again] (Recommend keep blank)
6. For ubuntu
Start the ssh-agent - $ eval "$(ssh-agent -s)"
For windows
1. $ ssh-agent bash
2. $ eval "$(ssh-agent -s)"
7. $ ssh-add ~/.ssh/id_rsa
8. Open ssh-keygen.pub
9. Copy key from ssh-keygen.pub
10. Add into ssh-agent
11. Now, get data from your repository : git clone git@github.com:whatever
Open : /var/www/html/magento/jaydip kansagra/app/etc/di.xml
Find
<preference for="Magento\Framework\DB\LoggerInterface"
Replace
<preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\File"/>
<type name="Magento\Framework\DB\Logger\File">
<arguments>
<argument name="logAllQueries" xsi:type="boolean">true</argument>
<argument name="debugFile" xsi:type="string">log/sql.log</argument>
</arguments>
</type>
Open : /var/www/html/magento/frye-magento/var/log/sql.log