[Tutorial] How to fix Run Time Error 19 Problem
#1

Hi, welcome to my first thread.

Many people frequently get Run Time Error 19 bug when they tried to run their samp server on linux server. Then, they tried to use nativechecker plugin, but not fixed their problem. Maybe they will get server_log.txt like this:
Код:
Failed (plugins/PluginName.so: cannot restore segment prot after reloc: Permission denied)
Script[gamemodes/YourGM.amx]: Run time error 19: "File or function is not found"
We can fix it by chmod-ing the files in samp03 folder into 777 and disable SELinux on our server.

Okay, let's we fix it.
  1. First open your SSH and login as root
  2. Chmod all files and the subdirectories in the samp03 folder into 777
    Go into samp03 folder and do this command
    chmod -r 777 *
  3. After that, disable your SELinux
    Do this command
    vi /usr/sbin/setenforce 0
    You will see some lines like this
    Код:
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - No SELinux policy is loaded.
    SELINUX=enforcing
    # SELINUXTYPE= can take one of these two values:
    # targeted - Only targeted network daemons are protected.
    # strict - Full SELinux protection.
    SELINUXTYPE=targeted
    change SELINUX=enforcing to SELINUX=disabled
    Код:
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of these two values:
    # targeted - Only targeted network daemons are protected.
    # strict - Full SELinux protection.
    SELINUXTYPE=targeted
  4. Save it
    Save it by press esc button and type :wq then hit enter button.
  5. The last, reboot your server
    Reboot your server by doing this command
    reboot
  6. Finish! Now, you will get your server start normally after you execute samp03svr file.
If this tutorial still not fix your problem, try to reply this thread. I will help you to fix the problem for free.

Hope this thread will help you to fix your server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)