search
HomeOperation and MaintenancephpstudyHow to quickly build a website with phpstudy so that others can access it

Making the website accessible to the outside world through PHP Study requires the following steps: configure port mapping and change the server port to an externally accessible port. Add a firewall rule making sure "php-cgi.exe" is selected under both "Private" and "Public" networks. Get the public IP. Inform visitors of the public IP, server port, and website subdirectory (if any).

How to quickly build a website with phpstudy so that others can access it

Achieving external access to the website through PHP Study

How to let others access the website built through PHP Study ?

Step 1: Configure port mapping

  • Open PHP Study, click the "Tools" menu > "Configuration" > "Port Mapping" .
  • Change the "Server Port" to an externally accessible port, such as 8080.
  • Change the "Local Server" port to the default port of PHP Study, such as 80.

Step 2: Add firewall rules

  • Open Windows Defender Firewall and click "Allow an app or feature through Windows Defender Firewall".
  • Click the "Change Settings" button.
  • In the "Allowed apps and features" list, find "php-cgi.exe" and make sure it is selected under both "Private" and "Public" networks.

Step 3: Get the public IP

  • Visit whatismyipaddress.com in your browser to get your public IP address.

Step 4: Inform others of your public IP address

  • Indicate your public IP address, server port and subdirectory of your website ( If so) inform visitors. For example, if your website is at "http://localhost/mywebsite", tell it as "http://[your public IP]:[server port]/mywebsite".

How do visitors get to your website?

Visitors can use the URL you provide to access your website in the browser, such as:

<code>http://[你的公网IP]:[服务器端口]/mywebsite</code>

Note:

  • Make sure the server port is consistent with the port specified in the firewall rule.
  • If your router has a firewall, you will also need to enable the server port in it.
  • If your Internet Service Provider (ISP) blocks server ports, you will need to contact them for assistance.

The above is the detailed content of How to quickly build a website with phpstudy so that others can access it. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How do I configure Xdebug in phpStudy to work with my IDE (PhpStorm, VS Code, etc.)?How do I configure Xdebug in phpStudy to work with my IDE (PhpStorm, VS Code, etc.)?Mar 13, 2025 pm 12:38 PM

This article guides configuring Xdebug within phpStudy for use with IDEs like PhpStorm & VS Code. It details Xdebug installation, php.ini configuration (including xdebug.mode, xdebug.client_host, xdebug.client_port), IDE setup, and troubleshooti

How do I configure phpStudy to handle HTTP authentication in a secure manner?How do I configure phpStudy to handle HTTP authentication in a secure manner?Mar 17, 2025 pm 06:02 PM

The article discusses configuring phpStudy for secure HTTP authentication, detailing steps like enabling HTTPS, setting up .htaccess and .htpasswd files, and best practices for security.Main issue: Ensuring secure HTTP authentication in phpStudy thro

How do I set up a custom session handler in phpStudy?How do I set up a custom session handler in phpStudy?Mar 17, 2025 pm 06:07 PM

Article discusses setting up custom session handlers in phpStudy, including creation, registration, and configuration for performance improvement and troubleshooting.

How do I use phpStudy to test different database connection options?How do I use phpStudy to test different database connection options?Mar 17, 2025 pm 06:02 PM

phpStudy enables testing various database connections. Key steps include installing servers, enabling PHP extensions, and configuring scripts. Troubleshooting focuses on common errors like connection failures and extension issues.Character count: 159

How do I configure phpStudy to use a specific version of PHP?How do I configure phpStudy to use a specific version of PHP?Mar 11, 2025 pm 05:56 PM

This article explains how to configure phpStudy to use specific PHP versions. It details selecting and switching between multiple installed PHP versions via the phpStudy control panel, emphasizing the necessity of server restarts. Troubleshooting st

How do I use phpStudy to test cookies in PHP?How do I use phpStudy to test cookies in PHP?Mar 17, 2025 pm 06:11 PM

The article details using phpStudy for PHP cookie testing, covering setup, cookie verification, and common issues. It emphasizes practical steps and troubleshooting for effective testing.[159 characters]

How do I use phpStudy to test file uploads in PHP?How do I use phpStudy to test file uploads in PHP?Mar 17, 2025 pm 06:09 PM

Article discusses using phpStudy for PHP file uploads, addressing setup, common issues, configuration for large files, and security measures.

How do I back up and restore my phpStudy environment?How do I back up and restore my phpStudy environment?Mar 13, 2025 pm 12:43 PM

This article details backing up and restoring phpStudy environments. It covers creating full backups (compressed archives, file copies, system images), restoring from these backups, and best practices for configuration file backups. The article als

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!