Posts: 29
Threads: 4
Joined: Apr 2009
Reputation:
0
Hi everyone,
Today i tried to start my SA-MP Server as version 0.3d in Linux by PHP but i couldnt. In 0.3c i was using:
popen("cd /home/sampsvr && ./samp03svr &", "r");
Now i used the same script but nothing happens...
Can someone help me please?
PD: It works perfectly by SSH, but not with exec, system, popen, etc.
Posts: 314
Threads: 0
Joined: Sep 2011
Reputation:
0
Install ssh2.so module for PHP, and then start it by using ssh2_exec().
****** on how to install it.
Posts: 29
Threads: 4
Joined: Apr 2009
Reputation:
0
I already fixed a few errors on ./configure, but i cant with this one:
configure: error: cannot find OpenSSL or Libgcrypt, try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
Yes, i have OpenSSL and Libgcrypt installed, and i tried too with ./configure --with-libssl-prefix=/usr/bin/openssl
EDIT: Fixed by installing openssl-devel
well after installed try again to start your server.
Posts: 29
Threads: 4
Joined: Apr 2009
Reputation:
0
Well, tried with ssh2 like this:
$connection = ssh2_connect("localhost", 22);
ssh2_auth_password($connection, "root", "123456");
ssh2_exec($connection, "cd /home/samp03 && ./samp03svr");
It doesn't start... If i put exactly that command "cd /home/samp03 && ./samp03svr" on Putty it works fine.
Help please, im using CentOS 5.7.
Posts: 29
Threads: 4
Joined: Apr 2009
Reputation:
0
Solved, installed Debian ^^.