English 中文(简体)
另一台计算机中的应用技术?
原标题:Access phppgadmin from another computer?
  • 时间:2010-07-26 05:40:01
  •  标签:
  • phppgadmin

我在乌兰巴托服务器上安装了黄灯,希望从另一台电脑进入。

它说,在一类情况下,不准进入:

 http://<ip>/phppgadmin

5432号港口在乌兰巴托服务器开放,但仅供当地人使用。

增 编

最佳回答

The /etc/apache2/conf.d/phppgadmin.conf: Format file by Back, all original localhost from access PhpPgAdmin.

添加一条新允许原则的行文,这样就看:

<Location /phppgadmin>
  Order deny,allow
  Deny from all
  Allow from [Your client IP]
</Location>

这样,这类问题可能更适合留守姐妹网站serverfault.com

问题回答

我知道这是一个老的问题,但由于我 st忙地试图确定“未能装满资源:服务器在试图从另一台计算机进入SandoPgAdmin时,反应了403个(隐蔽的)错误,而给我的答复却不奏效,因此,我要分享我的解决方案。

乌班图:17.04;phpPgAdmin:5.1

Solution: Comment out Require local in /etc/apache2/conf-enabled/phppgadmin.conf and restart apache (sudo service apache2 reload)

<Directory /usr/share/phppgadmin>

<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
AllowOverride None

# Only allow connections from localhost:
# Require local

<IfModule mod_php.c>
  php_flag magic_quotes_gpc Off
  php_flag track_vars On
  #php_value include_path .
</IfModule>
<IfModule !mod_php.c>
  <IfModule mod_actions.c>
    <IfModule mod_cgi.c>
      AddType application/x-httpd-php .php
      Action application/x-httpd-php /cgi-bin/php
    </IfModule>
    <IfModule mod_cgid.c>
      AddType application/x-httpd-php .php
      Action application/x-httpd-php /cgi-bin/php
    </IfModule>
  </IfModule>
</IfModule>

</Directory>

/etc/apache2/conf-enabled/phppgadmin.conf

这是一个海滩(或网络服务器)问题。 You re phppgadminDirectory has a.htaccess file disallowing EVERYONE than localhost.

你们要么把它搁置起来,要么允许(此处插入IP)。

我还要谈谈我的解决方案。

Debian 10.1 with Papa 2.4.38 and phpPgAdmin 5.1 on 64-Bit ARM.

以下会议将允许地方和局域网进入,但(出于安全原因)无广域网。

/etc/apache2/conf-enabled/phppgadmin.conf

<Directory /usr/share/phppgadmin>

<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
AllowOverride None

# Only allow connections from localhost:
#Require local
Order deny,allow
Deny from all
Allow from ::1
Allow from 127.0.0.1
Allow from 192.168.0.0/16
Allow from 172.16.0.0/12
Allow from 10.0.0.0/8

<IfModule mod_php.c>
  php_flag magic_quotes_gpc Off
  php_flag track_vars On
  #php_value include_path .
</IfModule>
<IfModule !mod_php.c>
  <IfModule mod_actions.c>
    <IfModule mod_cgi.c>
      AddType application/x-httpd-php .php
      Action application/x-httpd-php /cgi-bin/php
    </IfModule>
    <IfModule mod_cgid.c>
      AddType application/x-httpd-php .php
      Action application/x-httpd-php /cgi-bin/php
    </IfModule>
  </IfModule>
</IfModule>

</Directory>




相关问题
PhpPgAdmin asks enter login and password

I installed PhpPgAdmin in CentOS. Every time select an object (database, table, schema,..) PhpPgAdmin asks me to enter my login and password. Left side menu (Servers->PostgreSQL) not connected. ...

show executed query in phpPgAdmin

Is there a way to show the SQL query executed by phpPgAdmin as the way phpMyAdmin does? For example, if I modify a column, it should show the ALTER command being executed. If this is not possible, ...

Can I use PostgreSQL 8.3.x for OpenStreetMap?

I m trying to install phpPgAdmin as an XAMPP addon when I encountered an error because the latest phpPgAdmin supports upto PostgreSQL version 8.3.x. So I decided to install PostgreSQL 8.3.11 instead ...

How to import a CSV?

I ve got a CSV file that looks like this: id, name 0, A.D. TRAMONTANA 1, Abarth 2, Abbot-Detroit 3, AC ... I m trying to import it into my table via phpPgAdmin. It gives me this error: SQL error: ...

PhpPgAdmin Syntax error when creating View

I am attempting to create a View in PhpPgAdmin (PostGreSQL db) which has the following SQL statement: DELETE FROM myTable WHERE myTable.error IS NULL; PhpPgAdmin gives me the following error: ...

热门标签