phpMyAdmin
 sql >> Cơ Sở Dữ Liệu >  >> Database Tools >> phpMyAdmin

Truy cập các tệp trang web và phpmyadmin trong wamp từ một máy tính khác trên lan

Theo mặc định, WAMPServer được định cấu hình để trở thành một hệ thống phát triển độc lập để chạy trên máy trạm của bạn.

Nếu bạn muốn chạy Wamp trên một PC và truy cập nó từ một PC khác, bạn phải thay đổi cấu hình bảo mật Apache.

Bạn không đề cập đến bất kỳ điều gì hữu ích như phiên bản WampServer bạn đang chạy, vì vậy tôi đoán tôi sẽ phải ghi lại cả hai tùy chọn

Chỉnh sửa httpd.conf (sử dụng menu wampmanager)

Nếu Apache 2.2.x

Tìm phần này, tôi đã xóa tất cả các nhận xét vì mục đích ngắn gọn.

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1     
</Directory>

Thay đổi thành:

<Directory "c:/wamp/www/">

    Options Indexes FollowSymLinks
    AllowOverride all

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 ::1 localhost

    ## Add an ip range that matches your routers first 3 quartiles
    ## So if your router subnet is 192.168.0 ( use ipconfig to find out what your router is set to )
    ## This will allow any PC on your internal network to access the www folder and subfolders
    Allow from 192.168.0

    ## Or you can specify a specific ip or set of ip's like this
    ## Allow from 192.168.0.10 192.168.0.11 192.168.0.12 ....
</Directory>

Nếu Apache 2.4.x Tìm phần này

<Directory "c:/wamp/www">
    Options Indexes FollowSymLinks
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
# onlineoffline tag - do not remove
    Require local
</Directory>

Thay đổi thành:

<Directory "c:/wamp/www">
    Options Indexes FollowSymLinks
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
# onlineoffline tag - do not remove
    Require local
    Require ip 192.168.0
    ## Apply the same logic as above for specific ip's or a set of ip's
    ## i.e. Require ip 192.168.0.10 192.168.0.11 .....
</Directory>

Bây giờ để có quyền truy cập vào phpMyAdmin, bạn phải chỉnh sửa tệp cấu hình này

Chỉnh sửa C:\ wamp \ alias \ phpmyadmin.conf

Bạn cần tạo cùng một loại khay ở đây như bạn đã làm ở trên

Apache 2.2.x Thay đổi điều này

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 ::1
</Directory>

Tới

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 ::1
    Allow from 192.168.0
</Directory>

Apache 2.4.x

Thay đổi điều này

<Directory "c:/wamp/apps/phpmyadmin4.0.4/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
   Require local
</Directory>

Tới

<Directory "c:/wamp/apps/phpmyadmin4.0.4/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
   Require local
   Require ip 192.168.0
</Directory>

Nếu bạn có thể làm theo tất cả những gì bạn có thể truy cập trang web và phpmyadmin từ mạng nội bộ của bạn.

Để chỉnh sửa nguồn trang web của bạn, bạn sẽ phải chia sẻ thư mục c:\ wamp \ www trên máy chủ của mình và sau đó ánh xạ phần chia sẻ đó trên PC bạn đang làm việc.




  1. DBeaver
  2.   
  3. phpMyAdmin
  4.   
  5. Navicat
  6.   
  7. SSMS
  8.   
  9. MySQL Workbench
  10.   
  11. SQLyog
  1. MySQL Hiển thị Kết quả Null trong Truy vấn - Với INNER JOIN

  2. Truy vấn MySQL hoạt động trong PhpMyAdmin nhưng không hoạt động trong JAVA Eclipse

  3. MySql phpMyAdmin:Tự động nhân bản / Synchronizng hai Cơ sở dữ liệu

  4. Làm thế nào để đạt được kết quả tương tự bằng cách sử dụng Mysql Joins thay vì các truy vấn con lồng nhau?

  5. Cách xóa khóa duy nhất trên trường bảng mysql cụ thể