Linux installation Error

  • Hey guys,


    Recently I tried to run GSManager through BrightGame Panel in my debian VPS. So the other admins can control GSManager without accessing SSH. But unfortunately, the BGPanel runs the executable in a screen.




    So I edited gsm.sh like this, to avoid to open another screen which makes the first screen CRASH.




    But it gets an error with the php folder which is etc/php5/apache2. It gives an error called"./gsm.sh: line 33: /etc/php5/apache2: Is a directory".


    So how can I get rid of this? (I tried to run without using " ./ ". Then it says no such file or directory. And I'm pretty sure i did cd to the correct folder. I checked php folder path hundred times too)


  • Most likely some of your environment variables are wrong.

    So one thing first: your screenshot of gsm.sh doesn't show anything on line 33 to which your error points. That makes it even harder to help you.

    But your main error: $PHP ist set to /etc/php5/apache2 (instead of pointing to your php executable).

    You can set this var in the gsm.cfg file. For a linux machine it is likely to be "/usr/bin/php".

  • Thank you for the Reply,

    Actually the problem was the php path that i have set for the $PHP and now its fixed. Thank you.


    Now a new problem came up. Now its asking permission for "logfiles"/ folder. Then I gave sudo chmod -R 0766 /root/coda/gsm/logfiles to set permissions. But nothing change happen, the error is still the same! Any help?


    The error code is

    Code
    Error: The folder "logfiles"/ is not writeable. Please change the permissions of 
    this folder

    I did ls -l and it has "drwxrw-rw-" permission


    UPDATE:


    I edited the line 35 of gsm.sh to

    until $PHP -f gsm.php -- -game "$GAME" -cfgdir "$CFGDIR" -logdir "$LOGDIR"; do sleep 1; done;


    that was like this before.

    until $PHP -f gsm.php -- -game \"$GAME\" -cfgdir \"$CFGDIR\" -logdir \"$LOGDIR\"; do sleep 1; done;


    Then I ran the executable and the error "The folder 'logfiles'/ is not writeable" didn't show up. But now theres another problem. Now it is a syntax error in /daemon/core/utils.php.


    Here is the log in logfiles/deamon.log


    Code
    [13.03.17 14:48:30] Notice: Parsing Error in root/cod43/gsmanager/daemon/core/utils.php:216 => syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'
    
    [13.03.17 14:48:31] Notice: Parsing Error in root/cod43/gsmanager/daemon/core/utils.php:216 => syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'
  • This threads contains 7 more posts that have been hidden for guests, please register yourself or log-in to continue reading.