Home > Backend Development > PHP Tutorial > Summary of PhpStrom and wamp issues

Summary of PhpStrom and wamp issues

不言
Release: 2023-03-23 06:04:02
Original
2007 people have browsed it

This article brings you a summary of PhpStrom and wamp problems. Friends in need can refer to

for PhpStrom and wamp problem summary, which can be updated at any time during daily development:


1. PhpStrom

1.1. PhpStrom activation failed

Open http://idea.lanyus.com/ to get the code and activate the interface switch Go to Activation Code and enter the code. This license xxxxxxxxxx has been canceled. Need toadd "0.0.0.0 account.jetbrains.com" to hosts file. (C:\Windows\System32\drivers\etc)

#1.2, Error 502 when running PHP: Bad Getway (first time use only)##The error content is as follows:


Solution:

file -> Settings -> Languages ​​& Frameworks -> PHP, add the project php website path (the www path in wamp, the default is in the root directory, Can be modified)


1.3. Error when PHP is run: 404 Not Found (only for first time use)

Error The content is as follows:


Solution:

file -> Settings -> Build,Execution,Deployment -> Deployment, add the following Configuration information




##2 can be whatever you want Fill in, 5 is the www path in wamp, which is in the root directory by default and can be modified. Fill in the others as shown in the picture



##2. wamp


2.1. Modify the default www path

www is the apach project path, and the default is the www folder in the wamp installation directory, for example: C: \wamp64\www

1, modify the wamp

installation directory \scripts\config.inc.php. Open the editing tool and modify the $wwwDir content, for example:

2, modify apach
Installation directory\bin\apache\apache2.4.27\conf\httpd.conf Open the editing tool, modify the path behind DocumentRoot, and search and modify globally. As shown below, two places need to be modified:



##If it prompts Not Found when running, you need to change httpd Comment out Include conf/extra/httpd-vhosts.conf in .conf and add # in front of it.


Do not include Chinese characters in the path, otherwise the service cannot be started. When modifying, it is recommended to close wamp or restart after modification.

Related recommendations:

Detailed explanation of some phpstrom shortcut keys


The above is the detailed content of Summary of PhpStrom and wamp issues. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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