This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"
#1
[Solved] zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"
Hello,

Been using zpanel for a while but recently upgraded to php7. Everything seems to be running smoothly until I tried to add a sub domain last night. It was "pending" for longer than usual so I ran daemon.php manually and received this error.



Code:
PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /etc/zpanel/panel/inc/dbc.inc.php:25
Stack trace:
/etc/zpanel/panel/bin/daemon.php(20): require_once()
Forum Add-ons and Usage {main}
  thrown in /etc/zpanel/panel/inc/dbc.inc.php on line 25

Other posts I found with this error had multiple versions of php installed or no pdo driver enabled. But I've verified I only have php 7 installed and according to phpinfo() the mysql pdo driver is installed.


Hoping someone here has some ideas. Thanks!
Reply
Thanks given by:
#2
[Solved] RE: zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"
Figured it out. Issue was my cli was different than my apache2 php. So even though phpinfo() in the browser showed the php_pdo_mysql extension was installed it wasn't in the cli where I was trying to run the daemon.
Reply
Thanks given by:
#3
[Solved] RE: zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"
craigh
Your server is insecure! You cannot use php7 safely with Sentora yet!
http://forums.sentora.org/showthread.php...1#pid20131
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#4
[Solved] RE: zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"
Good to know! Thanks!
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
[split] uninstall zpanel mikefoust 0 351 01-25-2018, 05:07 AM
Last Post: mikefoust
zpanel theme reset CDill 6 5,301 01-12-2018, 10:53 PM
Last Post: mahabub99
ZPanel can't resolve CNAME entries jmar83 3 1,115 09-03-2017, 10:52 PM
Last Post: jmar83

Forum Jump:


Users browsing this thread: 2 Guest(s)