Legendary Battlemage
- Joined
- Jul 17, 2007
- Messages
- 665
- Reaction score
- 104
2. what is the most usefull way to get process status (if services running or no), atm on ubuntu "pgrep" is work but idk if work with every debian based (or most of ubuntu), also question how to check if maps are on or no?
pgrep gedelivery example work and return a number but checking maps i dont know how work?
ps -fC gs
ps -fC gs | awk '{ print $9 }'
it will output all gs processesCode:ps -fC gs
you can get it to print only particular map names using awk
Code:ps -fC gs | awk '{ print $9 }'
ps and awk are parts of posix, they will work on all decent systems
"print 9th column"what is this print $9?
Just compare the output ofwhat is this 9 column, could u explain it?
ps -fC gs
ps -fC gs | awk '{ print $9 }'
Set the owner user/group of the files or folders you need to change to the one your web server is running in. Many web servers (e.g. nginx and apache) are in the group www-data by default, so:btw, now biggest problem the permission :/
apache use user: nobody and with it i cant change the files where folder/file owner is root, i tryed shell_exec("chmod 777 -R /root/gdeliveryd") but not helped, i want make start.sh and page where user from php can change the ptemplate.conf and gamesys.conf (ex. exp rate or pvp on/pff) but i have no ideea how to make it only with php.
anyone have ideea?
i did account management page but for server control page i need root permissions :/
chown -R :www-data /path/to/your/server/files/
chmod 775 /path/to/your/server/files/
Just compare the output ofandCode:ps -fC gs
Code:ps -fC gs | awk '{ print $9 }'
Set the owner user/group of the files or folders you need to change to the one your web server is running in. Many web servers (e.g. nginx and apache) are in the group www-data by default, so:
ps. do not place server files in /rootCode:chown -R :www-data /path/to/your/server/files/
//edit
you might want to create a script for your users which would do that automatically
//edit2
you might also need to set proper permissions for the filesCode:chmod 775 /path/to/your/server/files/
chown -R :www-data /path/to/your/server/files/
ps. do not place server files in /root
that could make only with php?you might want to create a script for your users which would do that automatically
Looks nice. I'm also working on a php based pwAdmin.
Can you add a ip finder and ip ban funtions, find the ip of the account OR kinda like these paid for editers how they bind to your computers HDD find a way where we can ban the computer
Can you add a ip finder and ip ban funtions, find the ip of the account OR kinda like these paid for editers how they bind to your computers HDD find a way where we can ban the computer
This kind of request is really easy, take ip from sql database then let iptables stuff do the ban job, if you need to find target from charname or roleid then you need to use gamedbd database...Can you add a ip finder and ip ban funtions, find the ip of the account OR kinda like these paid for editers how they bind to your computers HDD find a way where we can ban the computer
I never used sockets, each service includeing with map use different port?
Packet? It's similiar like old pwAdmin send mail working?
I didn't know any guide how is the packet data structure and like that, this still work? http://forum.ragezone.com/f751/packet-class-pw-1055126/
I'm begin today to make a php based pwadmin, thanks for the idea. I think it's will working better then tomcat/jakarta xD
Maybe ban the Mac adresse / ip4 / ip6 no idea lel
For what purpose doing shell_exec? Php shell_exec as user account is ok but with nobody? Yes that is a joke. Running pw engine uses many resources and fastest way is using root account but as what i said before that you don't have to be root to run root's command you can do that with sudo.I wont be trolling and I respect any work on pw but php shell_exec is a joke right?
I wont be trolling and I respect any work on pw but php shell_exec is a joke right?
Do you know how to use iweb's/pwadmin's java scripts and its library? Imagine you can retrieve its result into your php variables..Allthing work but @Server service process ( start , restart and the process of the services) ill cant adding btw idk how .-. , but only server start and restart working on me. Seeing the services idk how to add this in PHP format, because tomcat/jakarta