Want to subscribe to topics you're interested in?
Become a Member

Deleting /usr/local/nginx/html

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Elm918, Dec 7, 2020.

  1. Elm918

    Elm918 New Member

    3
    1
    3
    Dec 7, 2020
    Ratings:
    +1
    Local Time:
    10:05 AM
    Hello all. I've been configuring CentminMod to use it with Cloudflare and IPS Community. I want to thank you all for your efforts in maintaining this handy tool.

    I deleted `/usr/local/nginx/html` and I'm wondering if I should care about it (I don't want to do a reinstall if there's something else to do). Also, are the pre-static-files supposed to be generated automatically?

    Thanks in advance.
    • CentOS Version: CentOS 7 64-bit
    • Centmin Mod Version Installed: 123.09beta01.b628
    • Nginx Version Installed: 1.19.5
    • PHP Version Installed: 7.4
    • MariaDB MySQL Version Installed: 10.3.27
    • When was last time updated Centmin Mod code base ? : The moment I installed it. :)
    • Persistent Config:
      Code (Text):
      VHOST_PRESTATICINC='y'       # add pre-staticfiles-local.conf & pre-staticfiles-global.conf include files
      
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,238
    10,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,293
    Local Time:
    11:05 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    /usr/local/nginx/html is important and should not be deleted. You can see outline of structure of Centmin Mod on official config file page at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    Directory is also where all the default admin side statistic pages go as well as the default main hostname vhost web root directory PHP Opcode and Memcached statistics pages

    For VHOST_PRESTATICINC via forum search would eventually land on Beta Branch - add VHOST_PRESTATICINC='y' additional include files. They will only be added automatically if you set VHOST_PRESTATICINC='y' in persistent config file at /etc/centminmod/custom_config.inc BEFORE running centmin.sh menu option 2, 22 or nv command line. If you set it after running, it won't do anything for any prior created nginx vhost. In which case you'd need to manually create the files.

     
  3. Elm918

    Elm918 New Member

    3
    1
    3
    Dec 7, 2020
    Ratings:
    +1
    Local Time:
    10:05 AM
    I guess I'll do a reinstall then. Thank you.