herve57
Nouveau membre
Bonjour
Je souhaite installer un socket server sur mon php pour un chat.
Ayant suivi l'installe en anglais lors du lancement du server, j'obtiens le message suivant:
Error executing command "!" on file "fcssd":
Command '"fcssd"'
failed with return code 127 and error message
-bash: line 52: fcssd: command not found.
Le fichier fcssd etant biensur le lancement du socket server
Fcssd:
#!/bin/sh
#location of php executable file on your system
php_dir="/usr/local/bin"
#path to fcssd script file (see chat/inc/patServer directory)
fcss_dir="/home/www/web/XXXX/chat/inc/patServer"
fcss_com="-A -m -d $php_dir/php -q ./runServer.php"
fcss_f=`ps auxw | grep "SCREEN $fcss_com" | grep -v grep | awk '{print $2}'`
if [ -z "$fcss_f" ]; then
echo "Flash Chat socket server is not running, starting it..."
cd "$fcss_dir"
screen $fcss_com &
fcss_f=`ps auxw | grep "SCREEN $fcss_com" | grep -v grep | awk '{print $2}'`
if [ -n "$fcss_f" ]; then
echo $fcss_f > fcssd.pid
echo "Socket server is running."
else
echo "Socket server could not be started."
fi
fi
Je cherche une ame charitable qui comprendrais tout cela
ah oui server sous linux redhat
Je souhaite installer un socket server sur mon php pour un chat.
Ayant suivi l'installe en anglais lors du lancement du server, j'obtiens le message suivant:
Error executing command "!" on file "fcssd":
Command '"fcssd"'
failed with return code 127 and error message
-bash: line 52: fcssd: command not found.
Le fichier fcssd etant biensur le lancement du socket server
Fcssd:
#!/bin/sh
#location of php executable file on your system
php_dir="/usr/local/bin"
#path to fcssd script file (see chat/inc/patServer directory)
fcss_dir="/home/www/web/XXXX/chat/inc/patServer"
fcss_com="-A -m -d $php_dir/php -q ./runServer.php"
fcss_f=`ps auxw | grep "SCREEN $fcss_com" | grep -v grep | awk '{print $2}'`
if [ -z "$fcss_f" ]; then
echo "Flash Chat socket server is not running, starting it..."
cd "$fcss_dir"
screen $fcss_com &
fcss_f=`ps auxw | grep "SCREEN $fcss_com" | grep -v grep | awk '{print $2}'`
if [ -n "$fcss_f" ]; then
echo $fcss_f > fcssd.pid
echo "Socket server is running."
else
echo "Socket server could not be started."
fi
fi
Je cherche une ame charitable qui comprendrais tout cela
ah oui server sous linux redhat