problem after auto install

Discussion in 'General' started by willoriker, Nov 28, 2022.

  1. willoriker

    willoriker Member

    my sistem 22.04 ubuntu + 3.2.9. everything was perfect, faster and full of new details ( a lot of version of php, last version of aql, phpmyadmin and more) but i find problem with phpmyadmin
    "El $cfg['TempDir'] (/var/lib/phpmyadmin/tmp) es inaccesible. phpMyAdmin es incapaz de almacenar plantillas y será algo lento debido a esto"
    not accesible, cannot store profiles and work slow​
    i check and i find that tmp was misssing, a create it but the problem persist, i suppose is a matter of privilegies
    i search for options in internet and i find
    chown -R apache:apache /usb/share/phpmyadmin/tmp
    chmod -R 0777 /usb/share/phpmyadmin/tmp​
    but first command apache is not valid user
    what do i need to do?
    tx in adance
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The user in the commands is wrong and the path is wrong as well and the chmod should also not be 777. Did you install the system with apache or nginx user?
     
  3. willoriker

    willoriker Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I've just made a test install with the auto-installer, Ubuntu 22.04 with apache. There are no temp dir issues in phpmyadmin on such a system.

    The permissions of the tmp directory are:

    chown www-data:www-data /var/lib/phpmyadmin/tmp
    chmod 0755 /var/lib/phpmyadmin/tmp
     
  5. willoriker

    willoriker Member

    i apply this commands and i still receive same error
    [​IMG] "El $cfg['TempDir'] (/var/lib/phpmyadmin/tmp) es inaccesible. phpMyAdmin es incapaz de almacenar plantillas y será algo lento debido a esto.
    "
     
  6. willoriker

    willoriker Member

    may be some related with language?
     
  7. willoriker

    willoriker Member

    i take a view :
    folder tmp exist
    i can open and create files and folder inside ( but only like my superuser)
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. willoriker

    willoriker Member

    ussualy i use:
    https://server1.example.com/phpmyadmin
    the other option isnt working to me
    my ports 8080 and 8081 are block form isp, i redirect other port for 8080, i need to do the same we 8081?
     
  10. willoriker

    willoriker Member

    i add 8081 rediret and i get the same error
    chmod 0775 /var/lib/phpmyadmin/tmp
    i try after you fost suggest, no success
     
  11. willoriker

    willoriker Member

    till, i use "root" ( sql user) user ( now i make massive moving and is more confortable), maybe is the responsabile?
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    No, the SQL user does not matter in this case.

    Try this:

    chown www-data:www-data /var/lib/phpmyadmin
    chmod 0775 /var/lib/phpmyadmin
     
  13. willoriker

    willoriker Member

    its still there, no changes
     
  14. willoriker

    willoriker Member

    may be this help ypu
    root@$$$$$:/var/lib/phpmyadmin# ls -l
    total 4
    drwxr-xr-x 4 www-data www-data 4096 Nov 28 12:03 tmp
    root@$$$$$/var/lib/phpmyadmin# cd tmp
    root@$$$$$:/var/lib/phpmyadmin/tmp# ls -l
    total 8
    drwxr-xr-x 2 root root 4096 Nov 28 12:03 prueba
    drwxr-x--- 34 ispapps www-data 4096 Nov 26 21:42 twig​

    i create prueba , no twig
    you need to know, i relocate
    $cfg['UploadDir'] = '/var/lib/phpmyadmin/tmp';
    $cfg['SaveDir'] = '/var/lib/phpmyadmin/tmp';​
    and i leave in original location
    $cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';​
    in /usr/share/phpmyadmin/config.inc.php (not now, before to open this thread)
    i won t make more changes and i create perfect server on this saturday. only i use it for transfer data
     
  15. willoriker

    willoriker Member

    nobody have how to help me??
     
  16. willoriker

    willoriker Member

    can i use a diferent folder with the correct rights? i know how to set it
     
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes.
     

Share This Page