Want more timely Centmin Mod News Updates?
Become a Member

IP.Board IPB v4.1.x Files

Discussion in 'Forum software usage' started by Jimmy, Nov 9, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    55,156
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you can try the official site vhost generator at Generate Centmin Mod Nginx Vhost - CentminMod.com LEMP Nginx web stack for CentOS and do a http and non-https generation of 2 vhost configs and use a file compare tool to see what differs generally between a http and non-https vhost config to see in general terms which settings aren't needed for non-https

     
  2. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
  3. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Update to the files if you're managing your server files with PHP Storm.
    1. Open New Project.
    2. Goto File / Settings / Build, Execution, Deployment / Deployment and create a server
    3. Open Remote Host - Tools / Deployment / Browse Remote Host
    4. Right click on items (Exclude Path) and exclude all folders except ones below.

    Code:
    Setting up VC for Centminmod exclude all directories except the ones listed below.
    
    #### SERVER MANAGEMENT
    
    # backup [if available]
    
    # etc/centminmod all
    
    # etc/cron.d all
    # etc/cron.daily all
    # etc/cron.hourly all
    # etc/cron.monthly all
    # etc/cron.weekly all
    
    # etc/csf csf.allow
    # etc/csf csf.blocklists
    # etc/csf csf.conf
    # etc/csf csf.deny
    # etc/csf csf.ignore
    
    # etc/sysconfig/network-scripts all
    # etc/sysconfig/sshd
    
    # etc/yum/yum-cron.conf
    # etc/yum/yum-cron-hourly.conf
    
    # etc/aliases
    # etc/GeoIP.conf
    # etc/host.conf
    # etc/hostname
    # etc/hosts
    # etc/my.cnf
    # etc/resolv.conf
    
    # root/.ssh all
    # root/centminlogs all
    # root/tools/ all
    # root/.my.cnf
    # root/mysql_history
    
    # usr/local/etc all
    # usr/local/lib/php.ini
    
    # usr/local/nginx/conf all
    # usr/local/nginx/html all
    # usr/local/nginx/logs all
    
    # usr/local/nginxbackup all [WARNING CAN BE VERY LARGE]
    # usr/local/src/centminmod all but .git
    
    # var/log/clamav all
    # var/log/nginx all
    # var/log/php-fpm all
    
    # var/log all base files not in folders
    
    #### SITE MANAGEMENT
    Setup a new project to upload the files to your specific project.
    
    # home/nginx/domains - specific domain.
    # usr/local/nginx/conf/autoprotect/ - specific domain.
    # usr/local/nginx/conf/conf.d/ - specific domain.
    # usr/local/nginx/conf/ssl/ - specific domain folder.
    # usr/local/nginx/conf - all separate files in directory (will be included with other sites otherwise omit).
    
    5. Right click on your server in Remote Host and click on Sync with Local. Box will popup with all the files to be transferred. Click on the green fast forward button at top to download all the files.
     
    Last edited: Feb 20, 2017
  4. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
  5. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Anyone having an issue with the Block Manager in IPB 4.1.18.2?

    I just uploaded a blank test install on centmin mod. The only issue I have is some weirdness with the Block Manager (see image) it seems to display the forum code where the blocks should be. I've tried just about everything in the vhost conf file. Can't seem to resolve the issue.

    IPS.png.48c6a15934eff29402ee00ac52764647.png

    Here are some outputs from the error_log. Getting a lot of permission denied.

    Code:
    2017/02/23 17:11:29 [crit] 4415#4415: *2 open() "/home/nginx/domains/10.0.0.121/public/" failed (13: Permission denied), client: 10.0.0.45, server: 10.0.0.121, request: "GET /?app=core&module=system&controller=ajax&do=instantNotifications&csrfKey=0dba4669b8d0115b9bfad3d9e89a21ad&notifications=0&messages=0 HTTP/2.0", host: "10.0.0.121", referrer: "https://10.0.0.121/"
    2017/02/23 17:11:29 [crit] 4415#4415: *2 open() "/home/nginx/domains/10.0.0.121/public/" failed (13: Permission denied), client: 10.0.0.45, server: 10.0.0.121, request: "GET /?app=core&module=system&controller=ajax&do=instantNotifications&csrfKey=0dba4669b8d0115b9bfad3d9e89a21ad&notifications=0&messages=0 HTTP/2.0", host: "10.0.0.121", referrer: "https://10.0.0.121/"
    2017/02/23 17:11:52 [crit] 4415#4415: *2 open() "/home/nginx/domains/10.0.0.121/public/" failed (13: Permission denied), client: 10.0.0.45, server: 10.0.0.121, request: "GET /?app=core&module=system&controller=widgets&do=getBlockList&csrfKey=0dba4669b8d0115b9bfad3d9e89a21ad&pageApp=forums HTTP/2.0", host: "10.0.0.121", referrer: "https://10.0.0.121/"
    2017/02/23 17:11:52 [crit] 4415#4415: *2 open() "/home/nginx/domains/10.0.0.121/public/" failed (13: Permission denied), client: 10.0.0.45, server: 10.0.0.121, request: "GET /?app=core&module=system&controller=widgets&do=getBlockList&csrfKey=0dba4669b8d0115b9bfad3d9e89a21ad&pageApp=forums HTTP/2.0", host: "10.0.0.121", referrer: "https://10.0.0.121/"

    Anyone have any ideas? IPS support was worthless, the site doesn't have an htaccess file.
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    10:29 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    It may don't like the ip there?

    Code:
    10.0.0.121
    Maybe using localhost or a domain and point to it using the hosts file?

    You may want to try to create the vhost without using an ip....
     
  7. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    I would think if that was the issue there would be more stuff broken on the site. Everything else works perfect. I can even move existing blocks around with the block manager open (there was only 1 existing block - the default announcement block). Using an IP has worked in the past without issue.
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    10:29 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Maybe files/folders permissions don't set as nginx:nginx?
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,156
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Try enabling nginx debug mode for your ISP ip only and see if logs reveal more.

    To enable, add to persistent config file /etc/centminmod/custom_config.inc the variable NGINX_DEBUG=y and recompile Nginx via centmin.sh menu option 4 and then setting error_log in nginx vhosts to debug as outlined at nginx.org/en/docs/debugging_log.html & wiki.nginx.org/Debugging.

    You do not want to leave Nginx debug mode running forever, so after debugging, set NGINX_DEBUG=n or remove the variable from the persistent config file /etc/centminmod/custom_config.inc and recompile Nginx again via centmin.sh menu option 4 and remove error_log debugging mode to disable Nginx debug mode again.

    To update your Centmin Mod builds code for Nginx debug mode support if you do not have a NGINX_DEBUG variable in centmin.sh, follow instructions at centminmod.com/upgrade.html and respective version threads below:
    Centmin Mod is provided as is, but you can try debugging mode for Nginx for further troubleshooting if you have problems with Nginx (i.e. segfaults / signal 11 issues) as outlined at nginx.org/en/docs/debugging_log.html & wiki.nginx.org/Debugging.
     
  10. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Already tried that. Permissions are correct. Also took a look at autoprotect seeing if that might have created something conflicting... nope.

    I'm spinning up a local 08 Stable to see if it's 09 that's the issue or a setting I changed somewhere.

    What bugs me is that only the Block Manager display is the issue. I've tried to find something else that isn't working, but I can't.

    I do have an old version of 4.1.12.2 which I might test out because I know that's working from the last time I tested it.
     
  11. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    10:29 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Maybe Block Manager uses a .js file and if you have enabled ngx_pagespeed will break it ?
     
  12. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Hmm... I do have pagespeed enabled in the custom config, but I don't have it enabled in the conf files.

    I'll give that a shot.
     
  13. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    10:29 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    There is no related setting to enable it specific on IPB as it is working globally like Zend Opcache......or you mean the vhost file related to IPB?

    So try to disable it from ssh by running:
    Code:
    pscontrol off

    Then run:
    Code:
    nprestart
    At the end clear browser data and try again :)
     
  14. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Recompiled without pagespeed. Disabled it (just in case). Cleared cache.

    Still not working.
     
  15. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Looking at the chrome console I do see this. Not sure if it's something related or not.

    Code:
    Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

    The above doesn't show up if I'm logged out.
     
  16. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    10:29 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    As a guest on IPB 4 you get almost all data from cache so that's maybe the reason that you don't see that error....

    But i don't have any other idea why you have that issue so you it will be better to follow the eva2000 recommendations as he is the expert :)
     
  17. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Yup, as soon as I open the Block Manager that error pops up. So, I'm assuming that this might be the issue. A lot of my errors in the error_log are open() which is listed on the above error API website: XMLHttpRequest Standard
     
  18. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    10:29 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Info online report that this problem is related to the flag async=false and they recommend to set it as true but as you are using default code from IPB i don't think that they have done something like this on their code....

    Last idea for this is if you have disabled a function related to open() at:

    Code:
    /usr/local/etc/php-fpm.conf
    ?
     
  19. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Haven't really touched the php-fpm.conf file at all. I would imagine that if open() was disabled, I'd have other issues around the site.
     
  20. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    3:29 PM
    Ran a test (fresh install) on 08 Stable (fresh install) without CURL and upgraded to 5.6.30 - 08 Stable has 5.5.x as default. Everything works.

    So, it looks like the issue is with 09 beta or the modifications I did (which weren't too many) on 09 beta. Next test is on stock 09 beta.
     
    Last edited: Feb 24, 2017