run Command on Debian always cause Problem

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

run Command on Debian always cause Problem

Post by Mirery »

Every time i use the ./run command on Linux i get this Error in runtime.log
/run: Zeile 109: /usr/bin/php
: Datei oder Verzeichnis nicht gefunden
I checked the run.ini nearly 100 times the Code is:
; config the path to your php executeable here
phpPath=/usr/bin/php
; do not remove this line!
and that's the Path of the PHP Executable... If i use the run_console command it's all working perfect.
The Source is the 0.9.7 expandion (i updatet ingame to 0.9.8.1) but that also doesn't change anythink about that.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: run Command on Debian always cause Problem

Post by reaby »

I remember the linux starter was having problems in the past too, that time it was having wrong line-endings.
it had \r\n instead of \n which made the starter not working right.

Hopefully it isn't the same problem again with the run.ini or the run-file again.. Have to say, I'm not very good with Linux, as I only have used Ubuntu (and a little bit Debian). Personally in Linux I tend to run the script and the dedicated in a screen-session so I see the console messages for debugging...

If someone is really good with linuxes and knows a way to do a generic starter that starts the script in background... just let me know or post a proposed starter script at this topic :)

Proposed fix for now

easiest one is to:
1) use ./run_console and type ingame chat

Code: Select all

/adm manialive restart
2) start screen, create a new screen window and start the script using ./run_console
Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

Re: run Command on Debian always cause Problem

Post by Mirery »

Yeah i'm using the screen Version for now i just want to say that there's something wrong with Line 109 in run

Code: Select all

$PHP $PWD/bootstrapper.php $ARGS </dev/null > $PWD/logs/runtime.log 2>&1 &
That's the Line that cause the Error

And btw:
reaby wrote: easiest one is to:
1) use ./run_console and type ingame chat

Code: Select all

/adm manialive restart
This will just close expansion and not restart it. There is no Error in runtime.log then but it don't restart!
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: run Command on Debian always cause Problem

Post by reaby »

Mirery wrote: And btw:
reaby wrote: easiest one is to:
1) use ./run_console and type ingame chat

Code: Select all

/adm manialive restart
This will just close expansion and not restart it. There is no Error in runtime.log then but it don't restart!
Well all I can say is that it works for me! I double checked it.
Maybe your servers config is not allowing php to run exec.
Mirery wrote:It's just annoying to follow the instruction on Wiki and nothing works...
Luckily I saw this before you edited the message, other-vice I wouldn't know this issue!
So, thanks for informing about this, there has been no discussion about the current wiki instructions doesn't work...

and trust me I know the feeling, it's damn annoying when you see cool project and the documentation is running for old releases and you don't get it running, all you encounter is just errors.. it frustrates.

But, as Oliver and I do this as a hobby and writing documentation is boring compared to coding...
so let there be another todo item for the todo-list then :D
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: run Command on Debian always cause Problem

Post by undef.de »

Convert "\r\n" with dos2unix.

Run PHP without a php.ini with "/usr/bin/php -n ".
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: run Command on Debian always cause Problem

Post by reaby »

undef.de wrote:Convert "\r\n" with dos2unix.

Run PHP without a php.ini with "/usr/bin/php -n ".
Hmm... Running php without the php.ini is maybe not a good solution, since the extensions are not loaded then ?
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: run Command on Debian always cause Problem

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

Re: run Command on Debian always cause Problem

Post by Mirery »

undef.de wrote:Convert "\r\n" with dos2unix.

Run PHP without a php.ini with "/usr/bin/php -n ".
Will cause this:
golf995:~# /usr/bin/php5 -n /root/eXpansion-0.9.7/bootstrapper.php

_| _| _| _| _|
_|_| _|_| _|_|_| _|_|_| _|_|_| _| _| _| _|_|
_| _| _| _| _| _| _| _| _| _| _| _| _| _| _|_|_|_|
_| _| _| _| _| _| _| _| _| _| _| _| _| _|
_| _| _|_|_| _| _| _| _|_|_| _|_|_|_| _| _| _|_|_|
-----------------------------------------------------
PHP Environment Compatibility Test
-----------------------------------------------------
PHP 5.3.1 or newer -> required -> [ Yes ] 5.4.35-0+deb7u2
Standard PHP Library -> required -> [ Yes ]
JSON -> required -> [ Yes ]
cURL with SSL -> required -> [ No ]
MySQL -> optional -> [ No ]
SQLite3 -> optional -> [ No ]
-----------------------------------------------------
You should install cURL PHP extension
on debian/ubuntu : sudo apt-get install php5-curl
Your system is not compatible, check your php configuration.
So it can't find php5-curl then (it's installed!!!)

If I use

Code: Select all

/usr/bin/php5 /root/eXpansion-0.9.7/bootstrapper.php
Everything is fine...
Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

Re: run Command on Debian always cause Problem

Post by Mirery »

And perhaps i just missunderstand the Instruction....

./run --start should usually start Manialive or?

I just get this:
golf995:~/eXpansion-0.9.7# ./run --start
Launching ManiaLive Daemon with the following arguments:
Writing process id : 4892 to file.
If i add anything else behind the Command for example:
golf995:~/eXpansion-0.9.7# ./run test --start
Launching ManiaLive Daemon with the following arguments: test
Writing process id : 5037 to file.
But ManiaLive isn't starting at all and nodaemon cause this:
golf995:~/eXpansion-0.9.7# ./run --nodaemon
Launching ManiaLive with the following arguments:
: Datei oder Verzeichnis nicht gefunden
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: run Command on Debian always cause Problem

Post by w1lla »

did you restart apache2?
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 0 guests