Cześć. Posiadam VPS, na nim mam:
serwer HLDS (/home/cs1),
apache (/var/www/).
I mam taki problem, iż nie odpala mi skryptu .sh (w nim jest kod na odpalenie serwera HLDS przez screen).
index.php
<? exec('./skrypt.sh'); ?>
skrypt.sh
#!/bin/bash screen -A -m -d -S cs1 /home/cs1/hlds_run -game cstrike +port 27015 +maxplayers 22 +servercfgfile server.cfg
Dlaczego to nie chce działać?
Dodam, iż odpalenie skrypt.sh przez putty działa. Chmody etc. ustawione.