AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1356727
Accepted
Jamie Hutber
Jamie Hutber
Asked: 2021-08-09 07:04:54 +0800 CST2021-08-09 07:04:54 +0800 CST 2021-08-09 07:04:54 +0800 CST

Falha ao abrir necessário 'PhpMyAdmin/MoTranslator/autoload.php'

  • 772

Eu tenho uma nova instalação do 20.04, php 7e acabei de executar apt install phpmyadmintodos os procedimentos e agora ao navegar para localhost/phpmyadminestou vendo:

[Sun Aug 08 14:51:58.410439 2021] [php7:warn] [pid 84550] [client 93.115.195.232:6537] PHP Warning:  require_once(PhpMyAdmin/MoTranslator/autoload.php): failed to open stream: No such file or directory in /usr/share/phpmyadmin/autoload.php on line 2
[Sun Aug 08 14:51:58.410486 2021] [php7:error] [pid 84550] [client 93.115.195.232:6537] PHP Fatal error:  require_once(): Failed opening required 'PhpMyAdmin/MoTranslator/autoload.php' (include_path='/usr/share/phpmyadmin') in /usr/share/phpmyadmin/autoload.php on line 2

Esta é a autoload.phpaparência do meu arquivo:

<?php
require_once 'PhpMyAdmin/MoTranslator/autoload.php';
require_once 'PhpMyAdmin/ShapeFile/autoload.php';
require_once 'PhpMyAdmin/SqlParser/autoload.php';
require_once 'Symfony/Component/ExpressionLanguage/autoload.php';
require_once 'phpseclib/autoload.php';
require_once 'Twig/autoload.php';
require_once 'Twig-Extensions/autoload.php';
require_once 'ReCaptcha/autoload.php';
require_once 'Psr/Container/autoload.php';
@include_once 'tcpdf/tcpdf.php';

Eu abertamente não tenho idéia PhpMyAdminde quais referências?

-rw-r--r--   1 root root  1560 Mar 21  2020 ajax.php
-rw-r--r--   1 root root 44058 Aug  8 15:02 autoload.php
-rw-r--r--   1 root root  1750 Mar 21  2020 browse_foreigners.php
-rw-r--r--   1 root root  3194 Mar 21  2020 changelog.php
-rw-r--r--   1 root root   856 Mar 21  2020 chk_rel.php
-rw-r--r--   1 root root  4516 Mar 21  2020 config.sample.inc.php
-rw-r--r--   1 root root  5674 Mar 21  2020 db_central_columns.php
-rw-r--r--   1 root root  5878 Mar 21  2020 db_datadict.php
-rw-r--r--   1 root root  7706 Mar 21  2020 db_designer.php
-rw-r--r--   1 root root   271 Mar 21  2020 db_events.php
-rw-r--r--   1 root root  4631 Mar 21  2020 db_export.php
-rw-r--r--   1 root root   899 Mar 21  2020 db_import.php
-rw-r--r--   1 root root  1038 Mar 21  2020 db_multi_table_query.php
-rw-r--r--   1 root root  9860 Mar 21  2020 db_operations.php
-rw-r--r--   1 root root  4859 Mar 21  2020 db_qbe.php
-rw-r--r--   1 root root   365 Mar 21  2020 db_routines.php
-rw-r--r--   1 root root  1997 Mar 21  2020 db_search.php
-rw-r--r--   1 root root   746 Mar 21  2020 db_sql_autocomplete.php
-rw-r--r--   1 root root   485 Mar 21  2020 db_sql_format.php
-rw-r--r--   1 root root   952 Mar 21  2020 db_sql.php
-rw-r--r--   1 root root  1011 Mar 21  2020 db_structure.php
-rw-r--r--   1 root root  4415 Mar 21  2020 db_tracking.php
-rw-r--r--   1 root root   273 Mar 21  2020 db_triggers.php
drwxr-xr-x   2 root root  4096 Aug  8 14:50 doc/
-rw-r--r--   1 root root  4608 Mar 21  2020 error_report.php
-rw-r--r--   1 root root 15919 Mar 21  2020 export.php
-rw-r--r--   1 root root 22486 Mar 21  2020 favicon.ico
-rw-r--r--   1 root root 15984 Mar 21  2020 gis_data_editor.php
-rw-r--r--   1 root root 23976 Mar 21  2020 import.php
-rw-r--r--   1 root root  3463 Mar 21  2020 import_status.php
-rw-r--r--   1 root root 20259 Mar 21  2020 index.php
drwxr-xr-x   7 root root  4096 Aug  8 14:50 js/
drwxr-xr-x   6 root root  4096 Aug  8 14:50 libraries/
-rw-r--r--   1 root root   894 Mar 21  2020 license.php
-rw-r--r--   1 root root  1430 Mar 21  2020 lint.php
drwxr-xr-x  47 root root  4096 Aug  8 14:50 locale/
-rw-r--r--   1 root root   311 Mar 21  2020 logout.php
-rw-r--r--   1 root root  2309 Mar 21  2020 navigation.php
-rw-r--r--   1 root root  4143 Mar 21  2020 normalization.php
-rw-r--r--   1 root root   507 Mar 21  2020 phpinfo.php
-rw-r--r--   1 root root   740 Mar 21  2020 phpmyadmin.css.php
-rw-r--r--   1 root root  2493 Mar 21  2020 prefs_forms.php
-rw-r--r--   1 root root 14356 Mar 21  2020 prefs_manage.php
-rw-r--r--   1 root root  1594 Mar 21  2020 prefs_twofactor.php
-rw-r--r--   1 root root  1213 Mar 21  2020 print.css
-rw-r--r--   1 root root   653 Mar 21  2020 schema_export.php
-rw-r--r--   1 root root   785 Mar 21  2020 server_binlog.php
-rw-r--r--   1 root root   818 Mar 21  2020 server_collations.php
-rw-r--r--   1 root root   798 Mar 21  2020 server_databases.php
-rw-r--r--   1 root root   784 Mar 21  2020 server_engines.php
-rw-r--r--   1 root root  1085 Mar 21  2020 server_export.php
-rw-r--r--   1 root root   634 Mar 21  2020 server_import.php
-rw-r--r--   1 root root   784 Mar 21  2020 server_plugins.php
-rw-r--r--   1 root root 14184 Mar 21  2020 server_privileges.php
-rw-r--r--   1 root root  2432 Mar 21  2020 server_replication.php
-rw-r--r--   1 root root   698 Mar 21  2020 server_sql.php
-rw-r--r--   1 root root   862 Mar 21  2020 server_status_advisor.php
-rw-r--r--   1 root root  2962 Mar 21  2020 server_status_monitor.php
-rw-r--r--   1 root root   897 Mar 21  2020 server_status.php
-rw-r--r--   1 root root  1879 Mar 21  2020 server_status_processes.php
-rw-r--r--   1 root root  1423 Mar 21  2020 server_status_queries.php
-rw-r--r--   1 root root  1562 Mar 21  2020 server_status_variables.php
-rw-r--r--   1 root root  1872 Mar 21  2020 server_user_groups.php
-rw-r--r--   1 root root   798 Mar 21  2020 server_variables.php
-rw-r--r--   1 root root  1089 Mar 21  2020 show_config_errors.php
drwxr-xr-x   2 root root  4096 Aug  8 14:50 sql/
-rw-r--r--   1 root root  6352 Mar 21  2020 sql.php
-rw-r--r--   1 root root  3754 Mar 21  2020 tbl_addfield.php
-rw-r--r--   1 root root  6334 Mar 21  2020 tbl_change.php
-rw-r--r--   1 root root   972 Mar 21  2020 tbl_chart.php
-rw-r--r--   1 root root  3365 Mar 21  2020 tbl_create.php
-rw-r--r--   1 root root  2431 Mar 21  2020 tbl_export.php
-rw-r--r--   1 root root   999 Mar 21  2020 tbl_find_replace.php
-rw-r--r--   1 root root  1763 Mar 21  2020 tbl_get_field.php
-rw-r--r--   1 root root  1540 Mar 21  2020 tbl_gis_visualization.php
-rw-r--r--   1 root root   684 Mar 21  2020 tbl_import.php
-rw-r--r--   1 root root  1401 Mar 21  2020 tbl_indexes.php
-rw-r--r--   1 root root 15446 Mar 21  2020 tbl_operations.php
-rw-r--r--   1 root root   452 Mar 21  2020 tbl_recent_favorite.php
-rw-r--r--   1 root root  2375 Mar 21  2020 tbl_relation.php
-rw-r--r--   1 root root 16972 Mar 21  2020 tbl_replace.php
-rw-r--r--   1 root root  5005 Mar 21  2020 tbl_row_action.php
-rw-r--r--   1 root root  1130 Mar 21  2020 tbl_select.php
-rw-r--r--   1 root root  1176 Mar 21  2020 tbl_sql.php
-rw-r--r--   1 root root  2042 Mar 21  2020 tbl_structure.php
-rw-r--r--   1 root root  5797 Mar 21  2020 tbl_tracking.php
-rw-r--r--   1 root root   141 Mar 21  2020 tbl_triggers.php
-rw-r--r--   1 root root  1049 Mar 21  2020 tbl_zoom_select.php
drwxr-xr-x  19 root root  4096 Aug  8 14:50 templates/
drwxr-xr-x   4 root root  4096 Aug  8 14:50 themes/
-rw-r--r--   1 root root   956 Mar 21  2020 themes.php
-rw-r--r--   1 root root  1910 Mar 21  2020 transformation_overview.php
-rw-r--r--   1 root root  4617 Mar 21  2020 transformation_wrapper.php
-rw-r--r--   1 root root  1296 Mar 21  2020 url.php
-rw-r--r--   1 root root  1934 Mar 21  2020 user_password.php
-rw-r--r--   1 root root  1085 Mar 21  2020 version_check.php
-rw-r--r--   1 root root  6604 Mar 21  2020 view_create.php
-rw-r--r--   1 root root  3866 Mar 21  2020 view_operations.php
apache2
  • 2 2 respostas
  • 1116 Views

2 respostas

  • Voted
  1. Best Answer
    Robin G
    2022-01-12T16:27:26+08:002022-01-12T16:27:26+08:00

    Eu tive o mesmo problema em um Ubuntu 20.04 com um PHP 7.4.3. O módulo autoload.php está localizado em /usr/share/php/PhpMyAdmin/MoTranslator/ mas este caminho é desconhecido pelo PHP (no seu caso o caminho de inclusão tem apenas isso conforme sua mensagem de erro: include_path='/usr/share/ phpmyadmin').

    Para corrigir isso, editei o php include_path no arquivo php.ini em (/etc/php/7.4/apache2/php.ini) para que inclua /usr/share/php/ no final. por exemplo:

    include_path = ".:/php/includes:/usr/share/pear/:/usr/lib/php/ :/usr/share/php/ "

    (acabei de adicionar :/usr/share/php/ à minha string include_path existente)

    Então, após uma reinicialização do servidor apache, minha página phpmyadmin foi carregada corretamente

    • 2
  2. MS Berends
    2022-05-08T12:46:05+08:002022-05-08T12:46:05+08:00

    Isso aconteceu comigo desde que eu tinha uma configuração antiga do Apache (eu estava restaurando do Debian 11 para o Ubuntu 22.04).

    Eu precisei:

    Alias /phpmyadmin /usr/share/phpmyadmin
    
    <Directory /usr/share/phpmyadmin>
        Options SymLinksIfOwnerMatch
        DirectoryIndex index.php
    
        # limit libapache2-mod-php to files and directories necessary by pma
        <IfModule mod_php7.c>
            php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
            php_admin_value open_basedir /usr/share/phpmyadmin/:/usr/share/doc/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/:/usr/share/javascript/
        </IfModule>
    
    </Directory>
    
    # Disallow web access to directories that don't need it
    <Directory /usr/share/phpmyadmin/templates>
        Require all denied
    </Directory>
    <Directory /usr/share/phpmyadmin/libraries>
        Require all denied
    </Directory>
    
    • 0

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve