I am getting “Internal Server Error” while opening erpnext site in browser.
erpnext is running fine in supervisor
Mysql service is also active(running) with this line
“/etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz”
in log.
There seems to be a permissions error on your mysql conf file - that will not allow the required mysql optimisations (eg. barracuda etc) to be loaded, so the system might not recognise the DB
I have tried these locations
/etc/mysql/my.cnf
/etc/my.cnf
~/.my.cnf
/var/lib/mysql/my.cnf
but could not find my.cnf file…
Though there is mysqld file in /usr/sbin but thats not a config file.
And for /usr/sbin/mysqld --verbose --help | grep -A 1 “Default options” command here is result
grep: options”: No such file or directory
2019-06-17 18:59:01 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4186)
2019-06-17 18:59:01 0 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 (was 151) table_cache: 421 (was 2000)
2019-06-17 18:59:01 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2019-06-17 18:59:01 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
That all looks OK.
The original line indicates an error in the mysql server. Maybe the file
/etc/init.d/mysql
has an error or is not recognising the .cnf files