Year: 2025
-
Post Views: 23 1. Error report: call to undefined function common\models\exif_imageType error indicates that php cannot find the EXIF_IMAGETYPE function. EXIF_IMAGEType is a function in the EXIF extension of PHP to detect the type of image file. This error is caused if the extension is not installed or enabled. 2. In LNMP 2.1, install and enable the PHP EXIF extension…
-
Post Views: 17 1. The interface response is 500. as shown in Figure 1 2. Check the error log of nginx. Error report: php message: php warning: require(): open_basedir restriction in effect. file(/home/wwwroot/object/src/vendor/autoload.php) is not within the allowed path(s): as shown in Figure 2 3. Reference:lnmp add and delete virtual host and pseudo-static use tutorial to prevent cross-directory settings View…
-
Post Views: 16 1. Confirm the Web server user with the following command: , confirm as the WWW user. There are root users and WWW users in the system (web server users) 2. Set the owner of the project directory to root user: 3. Set directory permissions: 755: 4. Set the owner of the runtime directory to the WWW user:…
-
Post Views: 23 1. Check the /etc/os-release file, the operating system is CentOS Stream 9. 2. Reference:https://lnmp.org/install.htmlInstall the VPS or server with putty or similar ssh tools; after logging in, run: screen -s lnmp If the screen: command not found command does not exist can be executed: yum install screen Installation, prompt: not found. as shown in Figure 1 3.…
-
Post Views: 18 1. Use puttygen to convert the .pem file to .ppk format: open puttygen. Click Load and select the .pem file. Click Save Private Key to save as a .ppk file. as shown in Figure 1 2. Use putty to log in: open putty. In the Connection > ssh > auth, select the .ppk file. as shown in…
-
Post Views: 22 1. In a custom field (location), it needs to be stored as a JSON format. UI design. as shown in Figure 1 2. In the interface design, the request parameter is longitude and latitude. Since the name of the location needs to be displayed in the details interface, the location name needs to be obtained based on…
-
Post Views: 19 1. View the response data in the interface, and the reasoning is that the checkin_location_coordinates in the response field is the point type of mysql. as shown in Figure 1 2. Decide to adjust the query sql, use mysql spatial functions (such as st_x and st_y) to extract the latitude and longitude, and avoid direct manipulation of…
-
Post Views: 21 1. In Yii2, the SQL generated after the validation rule of the existentiality is written is not as expected. as shown in Figure 1 2. Give up the use of TargetRelation, and use TargetClass and TargetAttribute instead. Generating SQL is as expected.
-
Post Views: 16 1. TortoiseGitPlink Fatal Error No Supported Authentication Methods Available (Server Sent: publicKey). as shown in Figure 1 2. I finally decided to replace the address of the remote origin from git@gitee.com:about/xxx.git withhttps://gitee.com/about/xxx.git。如图2 3. Re-execute the pull, when pulling, enter the user name and password respectively: wang-qiang-shui, private token. The pull is successful, no more errors are reported.…