Discover Centmin Mod today
Register Now

Wordpress New WP installation issue

Discussion in 'Blogs & CMS usage' started by Andy, Mar 30, 2017.

  1. Andy

    Andy Active Member

    333
    48
    28
    Aug 6, 2014
    Ratings:
    +57
    Local Time:
    4:03 PM
    Installed latest centmin and use option 22 to create new WP vhost

    When I tried to do a nprestart, I got this error

    Code:
    systemctl status nginx.service -l
    ‚óŹ nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Wed 2017-03-29 22:19:43 UTC; 1min 5s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 5733 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    
    Mar 29 22:19:43 webmfe1v.test.com systemd[1]: Starting SYSV: Nginx is anHTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Mar 29 22:19:43 webmfe1v.xxx.com nginx[5733]: Starting nginx: nginx: [emerg] unknown directive "application/x-font-ttf" in /usr/local/nginx/conf/mime.types:1
    Mar 29 22:19:43 webmfe1v.test.com nginx[5733]: [FAILED]
    Mar 29 22:19:43 webmfe1v.test.com systemd[1]: nginx.service: control process exited, code=exited status=1
    Mar 29 22:19:43 webmfe1v.test.com systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Mar 29 22:19:43 webmfe1v.test.com systemd[1]: Unit nginx.service enteredfailed state.
    Mar 29 22:19:43 webmfe1v.test.com systemd[1]: nginx.service failed.

     
  2. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:03 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. Andy

    Andy Active Member

    333
    48
    28
    Aug 6, 2014
    Ratings:
    +57
    Local Time:
    4:03 PM
    It was a 09beta latest everything.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:03 AM
    Nginx 1.13.x
    MariaDB 5.5
    What does output of say ?
    Code (Text):
    nginx -t
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:03 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah see it there

    what's contents of /usr/local/nginx/conf/mime.types look like ?
    Code (Text):
    cat /usr/local/nginx/conf/mime.types
    

    Code (Text):
    cat /usr/local/nginx/conf/mime.types
    
    types {
        text/html                             html htm shtml;
        text/css                              css;
        text/xml                              xml;
        image/gif                             gif;
        image/jpeg                            jpeg jpg;
        application/javascript                js;
        application/atom+xml                  atom;
        application/rss+xml                   rss;
    
        text/mathml                           mml;
        text/plain                            txt;
        text/vnd.sun.j2me.app-descriptor      jad;
        text/vnd.wap.wml                      wml;
        text/x-component                      htc;
    
        image/png                             png;
        image/tiff                            tif tiff;
        image/vnd.wap.wbmp                    wbmp;
        image/x-icon                          ico;
        image/x-jng                           jng;
        image/x-ms-bmp                        bmp;
        image/svg+xml                         svg svgz;
        image/webp                            webp;
    
        application/font-woff                 woff;
        application/java-archive              jar war ear;
        application/json                      json;
        application/mac-binhex40              hqx;
        application/msword                    doc;
        application/pdf                       pdf;
        application/postscript                ps eps ai;
        application/rtf                       rtf;
        application/vnd.apple.mpegurl         m3u8;
        application/vnd.ms-excel              xls;
        application/vnd.ms-fontobject         eot;
        application/vnd.ms-powerpoint         ppt;
        application/vnd.wap.wmlc              wmlc;
        application/vnd.google-earth.kml+xml  kml;
        application/vnd.google-earth.kmz      kmz;
        application/x-7z-compressed           7z;
        application/x-cocoa                   cco;
        application/x-java-archive-diff       jardiff;
        application/x-java-jnlp-file          jnlp;
        application/x-makeself                run;
        application/x-perl                    pl pm;
        application/x-pilot                   prc pdb;
        application/x-rar-compressed          rar;
        application/x-redhat-package-manager  rpm;
        application/x-sea                     sea;
        application/x-shockwave-flash         swf;
        application/x-stuffit                 sit;
        application/x-tcl                     tcl tk;
        application/x-x509-ca-cert            der pem crt;
        application/x-xpinstall               xpi;
        application/xhtml+xml                 xhtml;
        application/xspf+xml                  xspf;
        application/zip                       zip;
    
        application/octet-stream              bin exe dll;
        application/octet-stream              deb;
        application/octet-stream              dmg;
        application/octet-stream              iso img;
        application/octet-stream              msi msp msm;
    
        application/vnd.openxmlformats-officedocument.wordprocessingml.document    docx;
        application/vnd.openxmlformats-officedocument.spreadsheetml.sheet          xlsx;
        application/vnd.openxmlformats-officedocument.presentationml.presentation  pptx;
    
        audio/midi                            mid midi kar;
        audio/mpeg                            mp3;
        audio/ogg                             ogg;
        audio/x-m4a                           m4a;
        audio/x-realaudio                     ra;
    
        video/3gpp                            3gpp 3gp;
        video/mp2t                            ts;
        video/mp4                             mp4;
        video/mpeg                            mpeg mpg;
        video/quicktime                       mov;
        video/webm                            webm;
        video/x-flv                           flv;
        video/x-m4v                           m4v;
        video/x-mng                           mng;
        video/x-ms-asf                        asx asf;
        video/x-ms-wmv                        wmv;
        video/x-msvideo                       avi;
    
        application/x-font-ttf                  ttf;
    
        font/opentype                           otf;
    
        application/font-woff2                  woff2;
        text/cache.manifest       manifest;
        text/cache.manifest       appcache;
    }
     
    Last edited: Mar 30, 2017
  6. Andy

    Andy Active Member

    333
    48
    28
    Aug 6, 2014
    Ratings:
    +57
    Local Time:
    4:03 PM
    Code (Text):
       
    cat /usr/local/nginx/conf/mime.types
        application/x-font-ttf                  ttf;
    
        font/opentype                           otf;
    
        application/font-woff2                  woff2;
        text/cache.manifest       manifest;
        text/cache.manifest       appcache;
    }
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:03 AM
    Nginx 1.13.x
    MariaDB 5.5
    seems the mime.types file is messed up, previous post of mine has a full working version you can replace with
     
  8. Andy

    Andy Active Member

    333
    48
    28
    Aug 6, 2014
    Ratings:
    +57
    Local Time:
    4:03 PM
    That fixed it. Thank you. Not sure what caused the file to be corrupted.
     
    • Like Like x 1
  9. envmar

    envmar New Member

    10
    3
    3
    Apr 9, 2017
    Ratings:
    +4
    Local Time:
    1:03 PM
    I had the same problem today. My mime.types looked exactly like Andy's.

    Using: Fresh install of CentOS 7 with GUI option. Trying it out on my local machine using VirtualBox. CentOS fully updated and using the latest centmin mod beta. Updated PHP to 7.1.

    That wasn't the only issue for me though. Had to re-install Nginx (by using update option) and CSF didn't install for some reason. I finally got Lynx to connect to the WordPress install (option 22) but couldn't get local Firefox to connect. Will try again in the morning on another fresh install.
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:03 AM
    Nginx 1.13.x
    MariaDB 5.5
    i
    if you get get it again, might want to start a new thread in Install & Upgrades or Pre-Install Questions forums
    with info outlined at https://community.centminmod.com/threads/how-to-troubleshoot-centmin-mod-initial-install-issues.102/