phpmyadmin - 将文件保存到磁盘

发布于 2024-07-10 01:08:44 字数 296 浏览 4 评论 0 原文

当我将浏览器指向 http://localhost/phpmyadmin 时,它没有显示其首页,而是显示“另存为”对话框。

我在跑: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 服务器

我已经重新安装了 apache2 和 php5。 重新安装后我没有 httpd.conf 文件,如何找回它? 是否有一个标准文件可以复制到 /etc/apache2 中?

我做了一个locate httpd.conf,我得到的唯一文件是我在/etc/apache2/下创建的空文件。

when i point my browser to http://localhost/phpmyadmin, instead of showing me its front page, it comes up with save as dialog.

I'm running:
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 Server

I've reinstalled both apache2 and php5.
After re-install i don't have httpd.conf file, how can i get it back? Is there a standard file which i can just copy into /etc/apache2?

I did a locate httpd.conf and the only file i got was the empty file i have under /etc/apache2/ which i made.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

那片花海 2024-07-17 01:08:44

您是否配置了 php 扩展来发送 http 标头?

在 httpd.conf 中:
AddType application/x-httpd-php .php

编辑
该文件不一定名为 httpd.conf,这只是默认名称。 尝试在 Apache 目录中搜索其他配置文件 - 扩展名可能是 .conf 但也可能是其他文件...
如果您在 debian 上使用 apt-get 安装 apache2,请尝试 /etc/apache2/apche2.conf
/编辑

Did you configure the php extension to send an http header?

In httpd.conf:
AddType application/x-httpd-php .php

EDIT
The file is not necessarily named httpd.conf, that's just the default name. Try searching for other configuration files in the Apache directory -- the extension probably is .conf but it might be something else...
If you used apt-get on debian to install apache2, try /etc/apache2/apche2.conf
/EDIT

小姐丶请自重 2024-07-17 01:08:44

我在安装ISPconfig时也遇到这个问题。 我通过本教程解决了这个问题:
http://www.howtoforge.com /perfect-server-debian-wheezy-apache2-bind-dovecot-ispconfig-3-p4

我认为主要代码是更改 suphp.conf 配置。

sudo nano /etc/apache2/mods-available/suphp.conf

注释掉 部分并添加行 AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml - 否则所有 PHP 文件都将由 SuPHP 运行

<IfModule mod_suphp.c>
    #<FilesMatch "\.ph(p3?|tml)$">
    #    SetHandler application/x-httpd-suphp
    #</FilesMatch>
        AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
        suPHP_AddHandler application/x-httpd-suphp

    <Directory />
        suPHP_Engine on
    </Directory>

    # By default, disable suPHP for debian packaged web applications as files
    # are owned by root and cannot be executed by suPHP because of min_uid.
    <Directory /usr/share>
        suPHP_Engine off
    </Directory>

# # Use a specific php config file (a dir which contains a php.ini file)
#       suPHP_ConfigPath /etc/php5/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
#       suPHP_RemoveHandler <mime-type>
</IfModule>

希望我可以帮助某人:)

I also get this problem when I install ISPconfig. I solved the problem by this tutorial:
http://www.howtoforge.com/perfect-server-debian-wheezy-apache2-bind-dovecot-ispconfig-3-p4

I think the main code is change suphp.conf config.

sudo nano /etc/apache2/mods-available/suphp.conf

comment out the <FilesMatch "\.ph(p3?|tml)$"> section and add the line AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml - otherwise all PHP files will be run by SuPHP

<IfModule mod_suphp.c>
    #<FilesMatch "\.ph(p3?|tml)$">
    #    SetHandler application/x-httpd-suphp
    #</FilesMatch>
        AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
        suPHP_AddHandler application/x-httpd-suphp

    <Directory />
        suPHP_Engine on
    </Directory>

    # By default, disable suPHP for debian packaged web applications as files
    # are owned by root and cannot be executed by suPHP because of min_uid.
    <Directory /usr/share>
        suPHP_Engine off
    </Directory>

# # Use a specific php config file (a dir which contains a php.ini file)
#       suPHP_ConfigPath /etc/php5/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
#       suPHP_RemoveHandler <mime-type>
</IfModule>

Hope I can help someone :)

云之铃。 2024-07-17 01:08:44

我认为您只是不知道该配置文件在哪里。 我认为没有 httpd.conf apache 就无法运行。 您可以通过以下方式找到您的配置:
$>找到httpd.conf
/etc/httpd/conf/httpd.conf
$>vim /etc/httpd/conf/httpd.conf

找到它后,找到其他 AddType 所在的位置并添加
AddType application/x-httpd-php .php

您需要做的最后一件事是重新启动 httpd,这取决于安装,但是 apachectl restart 可以解决问题。 您可能必须像处理 httpd.conf 文件一样找到它,并输入该文件的完整路径。

之后,您的 phpmyadmin 应该会出现。

I think you just do not know where that config file is. I don't think apache can run without httpd.conf. Here is how you can find your config:
$>locate httpd.conf
/etc/httpd/conf/httpd.conf
$>vim /etc/httpd/conf/httpd.conf

Once you located it, find where other AddType reside and add
AddType application/x-httpd-php .php

Last thing you need to do is restart your httpd, it depends on install, but doing apachectl restart does the trick. You might have to locate it just like you did with httpd.conf file and type in the entire path to the file.

Afterwords, your phpmyadmin should come up.

鯉魚旗 2024-07-17 01:08:44

我对此一无所知,但是...是否有人知道 javascript 中下载所选文件的方法,例如我通过复选框选择 2 个文件,然后单击一个按钮以下载这 2 个文件,选择我所在的路径将保存档案

I dont know anything about this but... does someone knows a way in javascript to download selected files, for example I select through checkboxes 2 files, and then I click on a button in order to download these 2 files choosing the route where i will save the archives

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文