Monthly Archives: July 2016

SELECT list is not in GROUP BY clause and contains nonaggregated column

 

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ” which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

 

Lets edit my.cnf

sudo nano /etc/mysql/my.cnf

and add the following lines to it, save and exit nano….

[mysqld]
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Lets restart mysql

sudo service mysql restart

It should work! 😉

 

bad ownership or modes for chroot directory component

 

Jul 14 11:41:18 sd-47XXX systemd-logind[643]: New session 26596 of user wojcatie.
Jul 14 11:41:18 sd-47XXX systemd: pam_unix(systemd-user:session): session opened for user wojcatie by (uid=0)
Jul 14 11:41:18 sd-47XXX sshd[8455]: fatal: bad ownership or modes for chroot directory component "/home/httpd/html/domain.com/"
Jul 14 11:41:18 sd-47XXX sshd[8430]: pam_unix(sshd:session): session closed for user wojcatie
Jul 14 11:41:18 sd-47XXX systemd-logind[643]: Removed session 26596.

/home/httpd/html/domain.com/ has to be owned by root:root and chmod with 755.

sudo chown root:root /home/httpd/html/domain.com/
sudo chmod 755/home/httpd/html/domain.com/