25.04.2013, 05:42
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:
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.
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"
Okay, let's we fix it.
- First open your SSH and login as root
- Chmod all files and the subdirectories in the samp03 folder into 777
Go into samp03 folder and do this command
chmod -r 777 * - 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
Код:# 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
- Save it
Save it by press esc button and type :wq then hit enter button. - The last, reboot your server
Reboot your server by doing this command
reboot - Finish! Now, you will get your server start normally after you execute samp03svr file.
Hope this thread will help you to fix your server.