Category: Programming Language
-
Post Views: 16 1. A total of 4 environment variables are configured in Rancher. as shown in Figure 1 2. Check the log of the container, there are 2 environment variables missing. as shown in Figure 2 3. The result is that the missing 2 environment variables in the configuration file are not replaced. as shown in Figure 3 4.…
-
Post Views: 13 1. Request an HTTPS URL in OpenResty and report an error: Unable to get local issuer certificate. as shown in Figure 1 2. Reference URL:https://github.com/ledgetech/lua-resty-http/issues/68. client:request_uri(url, { ssl_verify = False, }). 3. Edit the request client code, add ssl_verify = False when initiated a request in lua-resty-http. as shown in Figure 2 4. Request an HTTPS URL…
-
Post Views: 14 1. Run the Lua program, and report an error: 500 Internal Server Error Openresty/1.19.9.1. as shown in Figure 1 2. Check the nginx log file, morefunresty.dev.chinamcloud.cn.error.log, modulelib.redisNot found: no field package.preload[‘lib.redis’]. as shown in Figure 2 3. Edit the nginx file and add lua_package_path to configure the file addressing path of openresty 4. After restarting the Nginx…
-
Post Views: 15 1. Error report in PHP environment: Notice: unknown: file created in the systems Temporary directory in unknown on line 0. as shown in Figure 1 2. Check the php.ini file, because the temporary directory used to store the file when the file is uploaded does not exist. After creating the corresponding directory, no more errors will be…
-
Post Views: 15 1. Report an error in Windows 10, Nginx 1.10, and PHP 7.4: 413 Request Entity Too Large. The size of the uploaded file: 286MB. as shown in Figure 1 2. Check phpinfo, the size of the uploaded file is limited to 1024M. as shown in Figure 2 3. Add to nginx’s server: client_max_body_size 1024M; 4. Restart nginx…
-
Post Views: 12 1. Report an error in Laravel 5.4: call to undefined function app\\app\\services\\exif_read_data(). as shown in Figure 1 2. EXIF_READ_DATA — Read the EXIF header information from an image file. is an EXIF function that depends on the extension: EXIF. Check out phpinfo . Extension not installed: EXIF. as shown in Figure 2 3. The local environment is…
-
Post Views: 16 1. URL:https://www.php.net/manual/zh/features.commandline.introduction.php. The file name of the CGI version is php-cli.exe. It should be modified to: the file name of the CGI version is php-cgi.exe. as shown in Figure 1 2. Switch to the English page, the CGI version is Distributed as php-cgi.exe. Therefore, you can determine the Chinese page error. as shown in Figure 2 3.…
-
Post Views: 18 1. Composer installs Workerman successfully. as shown in Figure 1 2. The Linux system can use the following script to test whether the local PHP environment meets the workerman operation requirements. curl-sshttp://www.workerman.net/check.php| PHP. All display OK, it means that the Workerman requirements are met. as shown in Figure 2 3. Refer to the implementation of colleagues, edit…
-
Post Views: 19 1. Execute the command line in Windows 10 and report an error: Call to undefined function App\Console\Commands\POSIX_Getpid(). as shown in Figure 1 2. Reference URL:https://www.php.net/manual/zh/intro.posix.php. This extension is not available on Windows platforms. You can also try using getMyPid() instead. as shown in Figure 2 3. POSIX_GETPID — Returns the current process ID. Decide to replace with:…