Tag: OneinStack
-
Post Views: 26 Background my site www.shuijingwanwq.com It is a WordPress-based content station, with about 20,000 pages, and the average daily traffic is gradually increasing. The server uses Alibaba Cloud ECS (1 core 2GB), and the Web environment uses OneInStack (NGINX + PHP-FPM + Redis + Alibaba Cloud RDS MySQL). The website has been running smoothly until a large area…
-
Post Views: 27 The background of the problem I run a WordPress-based bilingual website (Chinese/English), using polylang Plugins to manage multilingual content. In order to create corresponding English translations for existing Chinese categories/labels in batches, I wrote a php script polylang-batch-zh-to-en-tags.php. However, when executing the script, the terminal suddenly reported a fatal error: The script crashes directly and cannot continue…
-
Post Views: 19 1. The current domain name is:https://learn-php-app-0605-prod.shuijingwanwq.com. Plan to switch to:https://learn-php-app-0605-prod.wangqiang.store. as shown in Figure 1 2. Add the DNS resolution of learn-php-app-0605-prod.wangqiang.store. as shown in Figure 2 3. Based on the virtual host before OneInStack delete: learn-php-0605-prod.shuijingwanwq.com, the directory should not be deleted. 4. Based on OneInstack Add a new virtual host: learn-php-app-0605-prod.wangqiang.store, the directory still uses…
-
Post Views: 155 1. There is a Shopify PHP application, which can already be previewed in the development environment. as shown in Figure 1 2. Now it is ready to be deployed to the production environment. Shopify recommends creating a separate application if you need to deploy the application to the production environment. This application shares the code base with…
-
Post Views: 28 1. Reference:Based on Alibaba Cloud’s ECS and RDS, the personal blog migration has been upgraded to: Docker (based on budget considerations, ultimately not realized), LNMP (CentOS 7.7, Nginx 1.16, MySQL 5.7, PHP 7.4), the process of HTTPS , the previous environment was based on the automatic installation of OneInstack. PHP version 7.4 is no longer eligible for…
-
Post Views: 17 1. When installing the php extension, it is stuck at –php_extensions fileinfo. My ECS memory is 1 GB config. Compiling FileInfo takes up a lot of memory, which is the direct cause of incompilation. It was finally decided to improve the configuration of the ECS, and the memory was increased to 2 GB. as shown in Figure…
-
Post Views: 19 1. Enter the CentOS server based on Xshell 6, compress and package the website program directory, execute the compression command, and the execution result is shown in Figure 1 2. Connect to the FTP server based on FlashFXP, download the compressed package: shuijingwanwq.com-20191203.zip to the local, as shown in Figure 2 3. Connect to the MySQL server…
-
Post Views: 12 1. The first connection is selected, as shown in Figure 1: 2. Due to the instance type: I/O optimization, disk type: SSD cloud disk, so refer to the URL:https://help.aliyun.com/knowledge_detail/6689611.html 3. The download link of auto_fdisk_ssd.sh, as shown in Figure 2: http://aliyun_portal_storage.oss-cn-hangzhou.aliyuncs.com/help%2Fecs%2Fauto_fdisk_ssd.zip?spm=5176.776689611.0.0.DmH9za&file=help%2Fecs%2Fauto_fdisk_ssd.zip 4. Download tool: auto_fdisk_ssd.sh, after pasting the download link, you need to modify it, as shown…
-
Post Views: 12 1. Continue to the previous article:https://www.shuijingwanwq.com/2016/04/16/1006/ 2. Execute the command, as shown in Figure 1, and report an error, indicating that yum has failed to execute. The following methods can be solved: yum -y install wget screen python #for centos/redhat 3. According to the analysis, it should be the error caused by the network connection failure, execute…