Article ID: 11135, created on Dec 13, 2013, last review on May 9, 2014

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix

问题

如果您浏览控制面板,Parallels Plesk Panel 显示以下错误。

ERROR:Zend_Db_Statement_Exception
SQLSTATE[HY000]:General error:1 Can't create/write to file '/tmp/#sql_de3_0.MYI' (Errcode:13)

0:Pdo.php:238
    Zend_Db_Statement_Pdo->_execute(array)
1:Statement.php:283
    Zend_Db_Statement->execute(array)
2:Abstract.php:433
    Zend_Db_Adapter_Abstract->query(string 'DESCRIBE `sessions`', array)
3:Abstract.php:230
    Zend_Db_Adapter_Pdo_Abstract->query(string 'DESCRIBE `sessions`')
4:Mysql.php:136
    Zend_Db_Adapter_Pdo_Mysql->describeTable(string 'sessions', NULL null)
5:Abstract.php:696
    Zend_Db_Table_Abstract->_setupMetadata()
6:Abstract.php:722
    Zend_Db_Table_Abstract->_getCols()
7:Abstract.php:762
    Zend_Db_Table_Abstract->_setupPrimaryKey()
8:DbTable.php:517
    Zend_Session_SaveHandler_DbTable->_getPrimary(string '63bb27967cbeefc660a97b01a78f9034')
9:DbTable.php:316
    Zend_Session_SaveHandler_DbTable->read(string '63bb27967cbeefc660a97b01a78f9034')
10:SaveHandler.php:26
    CommonPanel_Session_SaveHandler->read(string '63bb27967cbeefc660a97b01a78f9034')
11::
    session_start()
12: class.Session.php:150
    Session->Session()
13: auth.php3:183

解决方案

请确保 /tmp 目录有完整权限。
# ls -ld /tmp
drwxrwxrwt 3 root root 12288 Mar 16 22:49 /tmp

可通过以下命令配置 /tmp 目录完整权限:
# chmod 1777 /tmp

dd0611b6086474193d9bf78e2b293040 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c e8756e9388aeca36710ac39e739b2b37 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article