[Tutorial] How to fix Run Time Error 19 Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to fix Run Time Error 19 Problem (
/showthread.php?tid=432953)
How to fix Run Time Error 19 Problem -
reynaldi7 - 25.04.2013
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.
- 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
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
- 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.
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.