Discover Centmin Mod today
Register Now

CInfo Issues

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

  1. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    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

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    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

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    latest
    10
    I just installed one about an hour ago and one yesterday and one the day before
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
  8. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Mar 10, 2015
  10. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    latest
    10
    Worked like a charm! Thanks George!
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    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

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what about a simple nprestart to restart both nginx and php-fpm ?
     
  14. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    latest
    10
    Still the same - This needs access to /proc and /sys to work.
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    and if you comment it out from /usr/local/nginx/conf/php.conf again ?
     
  16. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    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

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    3:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ok weird then, guess more testing :)
     
  18. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    latest
    10
    Your the best George!
     
  19. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:45 AM
    latest
    10
    I thought I should let you know that It worked fine on a new 08 beta install on KVM - VULTR