1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved VPS: Permission denied

Discussion in 'Help' started by armagadon159753, Sep 21, 2017.

  1. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753

    Attached Files:

  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Don't tun PocketMine as root, never run any program as root unless you have to.

    About that problem though:
    Code:
    chmod +x start.sh
    A simple Google search would've brought you to a similar result too
     
    armagadon159753 likes this.
  3. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    I discovered not very long ago the world of vps. thanks for your help
     
  4. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    They are nothing
     

    Attached Files:

  5. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    It's supposed to not output anything, but it works.

    (you can put -v at the end if you want to see the verbose process)
     
  6. sharletsings123

    sharletsings123 Baby Zombie

    Messages:
    116
    GitHub:
    sharletk
    Yes, what @HimbeersaftLP mentioned is correct, never run anything as root as it gives all permissions which it shouldn't ask for in your VPS.
     
  7. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753

    Console say: root@taslor:/home/Arma# chmod +x start.sh -v mode of 'start.sh' retained as 0755 (rwxr-xr-x)
     
  8. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Yeah, and? Why do you have to tell me that?
     
  9. sharletsings123

    sharletsings123 Baby Zombie

    Messages:
    116
    GitHub:
    sharletk
    LOL
     
  10. sharletsings123

    sharletsings123 Baby Zombie

    Messages:
    116
    GitHub:
    sharletk
    You have to understand file permissions.

    You have a 755 permission there.

    So...
    Code:
    7=rwx 5=r-x 5=r-x
    
    This means that the directory has the default permissions -rwxr-xr-x (represented in octal notation as 0755).
     
  11. sharletsings123

    sharletsings123 Baby Zombie

    Messages:
    116
    GitHub:
    sharletk
    You probably didn't get why all the r's etc are there let me give you a short intro into file permissions...

    There are three types of access restrictions:
    Code:
    Permission    Action      chmod option
    ======================================
    read          (view)      r or 4
    write         (edit)      w or 2
    execute       (execute)   x or 1
    
    There are also three types of user restrictions:
    Code:
    User    ls output
    ==================
    owner   -rwx------
    group   ----rwx---
    other   -------rwx
    
    Folder/Directory Permissions
    Code:
    Permission    Action                               chmod option
    ===============================================================
    read          (view contents: i.e., ls command)      r or 4
    write         (create or remove files from dir)      w or 2
    execute       (cd into directory)                    x or 1
    
    Numeric Notation..
    This notation consists of at least three digits. Each of the three rightmost digits represents a different component of the permissions: owner, group, and others.

    Eg: Like what you got.

    Code:
    Symbolic Notation    Octal Notation    English
    ============================================================
    ----------            0000               no permissions
    ---x--x--x            0111               execute
    --w--w--w-            0222               write
    --wx-wx-wx            0333               write & execute
    -r--r--r--            0444               read
    -r-xr-xr-x            0555               read & execute
    -rw-rw-rw-            0666               read & write
    -rwxrwxrwx            0777               read. write & execute
    
     
  12. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    so then... run ./start.sh and see what happens?
     
  13. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    After réinstalle PHP 7.2 console say

    root@taslor:/home/arma# ./start.sh
    ./bin/php7/bin/php: error while loading shared libraries: /home/arma/bin/php7/bin/../lib/libz.so.1: file too short
     
  14. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    The Linux installation using Composer (Source Code Version) or normal .phar installation from Jenkins should be pretty straightforward. I don't know why you are struggling. Can you try to start everything clean? Like delete the existing PMMP Files and then clone it back from GitHub?
     
    armagadon159753 likes this.
  15. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    Now its solved
    Code:
    Download the latest 7.2 php tar.gz here: https://jenkins.pmmp.io/job/PHP-7.2-Linux-x86_64/12/, and put it in the server root in the same directory as the plugins folder and stuff.
    2. Open your console screen and execute the command rm -r bin
    3. Enter the following command: tar -xvzf PHP_Linux-x86_64.tar.gz It should create a new bin folder.
    4. Download the latest phar file from here: https://jenkins.pmmp.io/job/PocketMine-MP/ and replace the current PocketMine-MP.phar file with it.
    5. Execute the command: bin/php7/bin/php bin/composer.phar install to initialize the composer.
    6. Turn on the server and voila. Be careful that all plugins will break.
    
    Thx for the help ^~^
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.