标签: nginx

  • 服务器折腾日志

    服务器折腾日志

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

    [highlight color=” background_color=”]两站升级到https,全部图片采用OSS[/highlight]
    //2017-11-18
    把两个站都申请了免费的SSL。升级到了https
    图片全部采用阿里云OSS加载。
    DNS从dnspod国际版迁到阿里,现在所有服务都在阿里云了……

     

     

    [highlight color=” background_color=”]安装php加速模块,安装image_magick-7.0[/highlight]
    //2017-11-13

    php-5.4或以下版本使用 eaccx+apcu或memcached,
    php-5.5或以上版本可以选择使用:opcache+apcu或memcached等

    选择了Opcache+apcu
    安装ImageMagick。
    同时需要安装pecl_imagick扩展。都安装成功,但是php里面,Imagick()函数还是不能用。不折腾了。

     

    [highlight color=” background_color=”]设置并发 (PHP-FPM)问题[/highlight]
    //2017-11-13
    安装完网站后两个网站的的并发模式都是  动态模式:1,5,50,50
    结果今天好像是 分镜世界 有了一点的访问量。所有页面都很卡顿。看一下进程数,两个网站的进程都加起来十几个。
    内存都跑慢了,都改回1,2,5,10

     

    [highlight color=” background_color=”]安装LNMP[/highlight]
    //2017-11-08
    安装了纯净lnmp感觉很多设置很烦,安装AMH面板
    ray_lnmp (nginx-1.8 + mysql-generic-5.5 + php-7.1)

     

    [highlight color=” background_color=”]几个网站简单更新[/highlight]
    //2017-11-08
    个人网站和blog整合到了一起。不再自己做网页了。
    分镜世界,WP后台升级和插件更新
    bbs.storyboardworld.com 升级到3.4版本
    lab.rzx.me 几个自己制作的动态网页根据php7.1修改代码

  • 504 Gateway Time-out

    504 Gateway Time-out

    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模式来临时解决这个问题。

  • Lnmp—php5.5编译安装

    Lnmp—php5.5编译安装

    安装版本: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 reinstall the libcurl distribution – easy.h should be in <curl-dir>/include/curl/

    解决方法: yum -y install curl-devel

    QQ20130804-3

  • nginx服务器 wordpress修改固定链接

    nginx服务器 wordpress修改固定链接

    换了主机之后文章页返回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;
    }
    #######添加结束####################

    可以正常打开文章页了