Clean installation od 1.2.11 - Can't create database

  • Distro - Debian 8 x86_64
    IMSPCP: 1.2.11
    Mode: php5-fpm


    After clean installation i can't create database from panel.

    Debug log of imspcp does not contain any information about error, mysql log too.


    I can create users, domains, ftp and mail accounts, problem is only with database.

  • @LordRuthwen


    Any plugin in use?


    Something is really weird in the mail you received...


    First we have:


    Code
    1. SQLSTATE[HY000]: General error: 1006 Can't create database'biblioteka' (errno: 13)


    and then after, we have


    Code
    1. CREATE DATABASE IF NOT EXISTS `testdb`


    So please, what the name of the database you tried to create exactly?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @LordRuthwen


    I cannot reproduce the problem anyway with my branch. I would be curious to see the content of your /var/www/imscp/gui/public/client/sql_database_add.php script.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @LordRuthwen


    You should check that your /var/lib/mysql directory and its content has correct permissions (e.g mysql as owner and group).


    For instance:

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • And that solved problem, I have database on different location.
    Before:

    Code
    1. drwx------ 2 mysql root 4096 sty 8 09:50 mysql-rw------- 1 root root 6 sty 8 09:50 mysql_upgrade_info

    Now:

    Code
    1. drwx------ 2 mysql mysql 4096 sty 8 09:50 mysql
    2. -rw------- 1 mysql mysql 6 sty 8 09:50 mysql_upgrade_info

    And work.

  • @LordRuthwen


    We are maybe to curious but why you move all your data to other locations?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206