我正在使用Fedora 20与apache 2.4.9,php 5.5.11和mysql 5.16.17运行。不幸的是,我无法访问phpmyadmin。我尝试在/etc/php.ini中添加extension = mysqli.so以及mbstring,即使重新启动apache后也无法正常工作。然后我使用yum install php-mysqli和php-mbstring ...安装成功后,没有用。我看看php.info,我没有看到安装了mysqli或mbstring。我一直在研究......我找不到任何线索如何解决这个问题。 127.0.0.1/phpmyadmin/的输出显示:
/ phpmyadmin的索引
Parent Directory
.coveralls.yml
CONTRIBUTING.md
ChangeLog
LICENSE
README
RELEASE-DATE-4.1.12
browse_foreigners.php
changelog.php
chk_rel.php
composer.json
config.sample.inc.php
config/
db_create.php
db_datadict.php
db_events.php
db_export.php
db_import.php
db_operations.php
db_printview.php
db_qbe.php
db_routines.php
db_search.php
db_sql.php
db_structure.php
db_tracking.php
db_triggers.php
doc/
error_report.php
examples/
export.php
favicon.ico
file_echo.php
gis_data_editor.php
import.php
import_status.php
index.php
js/
libraries/
license.php
navigation.php
phpinfo.php
phpmyadmin.css.php
phpunit.xml.nocoverage
pmd_display_field.php
pmd_general.php
pmd_pdf.php
pmd_relation_new.php
pmd_relation_upd.php
pmd_save_pos.php
prefs_forms.php
prefs_manage.php
print.css
querywindow.php
robots.txt
schema_edit.php
schema_export.php
server_binlog.php
server_collations.php
server_databases.php
server_engines.php
server_export.php
server_import.php
server_plugins.php
server_privileges.php
server_replication.php
server_sql.php
server_status.php
server_status_advisor.php
server_status_monitor.php
server_status_queries.php
server_status_variables.php
server_user_groups.php
server_variables.php
setup/
show_config_errors.php
sql.php
tbl_addfield.php
tbl_change.php
tbl_chart.php
tbl_create.php
tbl_export.php
tbl_find_replace.php
tbl_get_field.php
tbl_gis_visualization.php
tbl_import.php
tbl_indexes.php
tbl_move_copy.php
tbl_operations.php
tbl_printview.php
tbl_relation.php
tbl_replace.php
tbl_row_action.php
tbl_select.php
tbl_sql.php
tbl_structure.php
tbl_tracking.php
tbl_triggers.php
tbl_zoom_select.php
themes.php
themes/
transformation_overview.php
transformation_wrapper.php
url.php
user_password.php
version_check.php
view_create.php
view_operations.php
webapp.php
有关为什么phpmyadmin的输出显示此内容的任何建议?
答案 0 :(得分:0)
试试http://127.0.0.1/phpmyadmin/index.php
。我怀疑它会起作用,在这种情况下,安装PHP时没有为PHP文件配置DirectoryIndex。
DirectoryIndex是一个Apache配置指令,它告诉Apache在请求目录时要加载哪些文件名(以及以哪种顺序加载)。因此,如果加载http://example.com/并且DirectoryIndex行包含index.html home.html,Apache将首先尝试加载index.html,如果缺少它将尝试home.html,如果那样&#39 ; s缺失,它将(取决于configuration),只显示目录列表。这就是你在这里看到的。
因此,正确的修复可能会将index.php添加到DirectoryIndex指令中。它可能看起来像DirectoryIndex index.html index.htm home.html
,您可以在其他行之前或之后添加index.php
(导致类似DirectoryIndex index.php index.html index.htm home.html
)。请注意,这只是一个示例,我建议您只需编辑现有的行,而不是复制和粘贴我的。