Home > Backend Development > PHP Tutorial > The server cannot access the php file

The server cannot access the php file

WBOY
Release: 2023-03-01 21:12:01
Original
2249 people have browsed it

How to set up a php environment in a server connected via remote desktop?
The php file cannot be accessed now.
System Windows Server 2008 R2
Tips:

<code>服务器错误

404 - 找不到文件或目录。
您要查找的资源可能已被删除,已更改名称或者暂时不可用。</code>
Copy after login
Copy after login

Reply content:

How to set up a php environment in a server connected via remote desktop?
The php file cannot be accessed now.
System Windows Server 2008 R2
Tips:

<code>服务器错误

404 - 找不到文件或目录。
您要查找的资源可能已被删除,已更改名称或者暂时不可用。</code>
Copy after login
Copy after login

If you are not familiar with environment construction, you can consider using XAMPP to build it with one click. After setting up, place your PHP project in the htdoc folder in the root directory. At this time, the remote access IP can be read.

You can use the integrated environment phpstudy and you can also switch the php version with one click and more than 20 combination modes

The server cannot access the php file

What kind of system server is it?

404 The file must not be found. Please confirm the situation again and look at the document.

Is there something wrong with the configuration of the web server?

In your case, there are two solutions:

1. Search for tutorials online. In Windows servers, the environment is generally built using iis+PHP+MySQL. This method may be more expensive.

Second, install using one-click installation packages such as xampp, phpstudy, etc., which can also be found online. Compared with the previous one, this method is obviously much simpler, and it will be much more convenient to modify the configuration and switch expansion in the future.

Note: No matter which method is used, if it is used as a production environment, for security reasons, some necessary configurations need to be modified, such as disabling certain functions of PHP, etc.

I really can’t stand it. If you build an environment on windows, why don’t you use Linux? Docker is now popular

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template