Category: Web Framework
-
Post Views: 57 1. Install Nginx Proxy Manager, open the Windows Terminal command line, and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Enter the user root directory, create a new directory: proxy-manager, enter the directory: proxy-manager, create a file: docker-compose.yml. as shown in Figure 2 3. Edit the file: docker-compose.yml, save and…
-
Post Views: 16 1. In the Ubuntu system in WSL2, execute the command: sudo apt install php7.4-cli, report an error: e: failed to fetchhttp://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-common_7.4.3-4ubuntu2.5_amd64.deb404 Not Found[IP: 91.189.88.152 80]. as shown in Figure 1 2. Based on the prompt information, run apt-get update. as shown in Figure 2 3. Execute the command again: sudo apt install php7.4-cli, no error is reported.…
-
Post Views: 16 1. Use Composer to create an application called weibo. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Ubuntu, as a Windows subsystem, can access the hard disk under the main system. In order to facilitate the management code, I have already created the…
-
Post Views: 111 1. Laravel Sail requires Windows 10 systems that support WSL 2. The 2004 version released in May 2020 only supports the WSL 2 function, so our system needs to be updated to the 2004 version equal to or greater than the 2004 version. To view the system version, you can use the winver command, refer to Windows…
-
Post Views: 15 1. After the basic image of the container is replaced, when the RANCHER environment variable, CHANNEL_PUB_API_CFG_MIGrate=true, the container starts failure. Error: php core warningYii\Base\ErrorExceptionwith messagemoduleGDalready loaded. as shown in Figure 1 2. When the RANCHER environment variable, channel_pub_api_cfg_migrate=false, the container starts successfully. as shown in Figure 2 3. When the RANCHER environment variable, channel_pub_api_cfg_migrate=true, is essentially executing…
-
Post Views: 16 1. At this stage, there are two environments in the public cloud. They are COM environments and CSP environments, respectively. COM environment container, as shown in Figure 1 2. Containers in the CSP environment. In the CSP environment, the 2 containers of the COM environment have been merged into one container. And a new container has been…
-
Post Views: 17 1. The error is reported when uploading the picture file, because the picture in GIF format is uploaded, which is treated as a JPEG format. as shown in Figure 1 2. Check the corresponding code implementation. 3. Decide to judge the extension of the file after receiving the request. Reference URL:https://github.com/symfony/symfony/blob/3.0/src/Symfony/Component/HttpFoundation/File/UploadedFile.php. Returns the original file extension. How…
-
Post Views: 16 1. In Laravel 8.6.3, Laravel Breeze is installed, and when executing npm run dev, an error is reported: You are using an unsupported version of node. Please update to at least node v12.14. as shown in Figure 1 2. Check the version of Node.js: v8.10.0. The required version is at least: Node v12.14. as shown in Figure…
-
Post Views: 18 1. At this stage, there is a requirement, and it is necessary to send the corresponding operation logs generated to the log system of the middle platform in an interface call. The log system interface of Zhongtai supports multiple log records at the same time. Therefore, it is decided to plan to first save the generated N…