Title Image

nginx Tag

服务器折腾日志

  |   Geek

//2020-09-23 更换服务器,换了20%CPU基线的服务器。感觉还是有点多余。10%应该够用了 升级系统,面板,WP,主题 解决一些网页错误。和兼容性问题 ...

Read More

504 Gateway Time-out

  |   Geek

wordpress 后台更新插件,一直报错504、 nginx配置添加。 fastcgi_buffers 8 128k; send_timeout 60; 暂时解决了问题。 又搜索了一下 发现真的是wp slug translate插件的问题。卸载之后果然没问题了。 AMH的nginx.conf路径 /home/wwwroot/ray_lnmp/vhost 另外就是WDCP,php一直无法自启动,每次要手动开启。还有nginx有时候也会无法启动关闭。靠切换lnmp和lanmp模式来临时解决这个问题。 ...

Read More

Lnmp—php5.5编译安装

  |   Geek   |   No comment

安装版本:php5.5 nginx:1.5.3 PHP:5.5.1 CentOS 5.4 32位   php-fpm编译配置参数: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/ --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic 报错一个: configure: error: Please...

Read More

nginx服务器 wordpress修改固定链接

  |   Geek   |   No comment

换了主机之后文章页返回404无法打开, 因为使用了nginx服务器。所以配置文件更改了。 在里面添加了一段: #######添加开始#################### if (-f $request_filename/index.html){ rewrite (.) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.) $1/index.php; } if (!-f $request_filename){ rewrite (.) /index.php; } #######添加结束#################### 可以正常打开文章页了...

Read More