Get the most out of your Centmin Mod LEMP stack
Become a Member

CInfo Issues

Discussion in 'Add Ons' started by Matt Williams, Mar 10, 2015.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    When I install the cinfo ( add-on ) I get this

    This needs access to /proc and /sys to work.

    How can I fix this?
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    Centmin mod 08 beta - openVZ CentOS 6.6 | That is the full error message when I access IP/cinfo - It's installs fine - Brand new install

    I've installed it on every VPS I've put up and never has been an issue except for these last 2
     
  4. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
  5. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    I just installed one about an hour ago and one yesterday and one the day before
     
  7. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    yup confirmed it's open_basedir related as PHP doesn't have permissions to access /proc and /sys due to tighter security via open_basedir

    I suppose, you can just allow default nginx vhost at /usr/local/nginx/conf/conf.d/virtual.conf to have a separate php.conf include file without open_basedir

    create a new php.conf includes at /usr/local/nginx/conf/phpallowed.conf
    Code:
    cp -a /usr/local/nginx/conf/php.conf /usr/local/nginx/conf/phpallowed.conf
    edit /usr/local/nginx/conf/phpallowed.conf and comment out

    Code:
    #fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php/:/tmp/;
    then change the default nginx vhost's /usr/local/nginx/conf/conf.d/virtual.conf include

    from

    Code:
    include /usr/local/nginx/conf/php.conf;
    to

    Code:
    #include /usr/local/nginx/conf/php.conf;
    include /usr/local/nginx/conf/phpallowed.conf;
    restart nginx and php-fpm via command shortcut

    Code:
    nprestart
    edit: might have to make that the default on .08 if i stick with enabling open_basedir
     
    Last edited: Mar 10, 2015
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah easier way include new phpallowed.conf in cinfo include itself at /usr/local/nginx/conf/cinfo.conf
    Code:
                location /cinfo/ {
            auth_basic "Private";
            auth_basic_user_file /usr/local/nginx/conf/cinfo_htpasswd;
            include /usr/local/nginx/conf/phpallowed.conf;
                }
    
    probably best approach as i can just edit addons/linfo.sh :)
     
  9. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Mar 10, 2015
  10. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    Worked like a charm! Thanks George!
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    no probs.

    thanks for the heads up.. also good to update the linfo version to 2.0.2 too (was hoping for a more spiffy modern default theme for linfo though heh)
     
  12. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    Does this need a vHost to work properly? I setup a remote DB server only, using 08 beta / openVZ Container but have not setup a vHost for a website because it wont have one.

    The cInfo addon still gives me the "This needs access to /proc and /sys to work". - this is a fresh install ( 08 beta ) just using MariaDB/phpmyadmin as a remote DB server.

    I ran the new CInfo addon script Centmin Mod Addons for Menu based Nginx installer for CentOS servers Checked the /usr/local/nginx/conf/cinfo.conf and it shows the changes/updates you made, then checked /usr/local/nginx/conf/phpallowed.conf and the
    #fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php/:/tmp/;
    is commented out...

    Strange....
     
  13. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    what about a simple nprestart to restart both nginx and php-fpm ?
     
  14. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    Still the same - This needs access to /proc and /sys to work.
     
  15. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    and if you comment it out from /usr/local/nginx/conf/php.conf again ?
     
  16. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    Works just fine now that I commended out the #fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php/:/tmp/;
    from /usr/local/nginx/conf/php.conf
     
  17. eva2000

    eva2000 Administrator Staff Member

    33,644
    7,448
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,449
    Local Time:
    9:04 AM
    Nginx 1.13.x
    MariaDB 5.5
    ok weird then, guess more testing :)
     
  18. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    Your the best George!
     
  19. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    7:04 PM
    latest
    10
    I thought I should let you know that It worked fine on a new 08 beta install on KVM - VULTR
     
    • Like Like x 1
..