Jump to content
  • 0

PHP Starting Server


Ironboy500[MM]

Question

Hello! I am trying to start my server using ssh2 connection in PHP. PHP succefully connects but I can't start my server. I'm using this code:

ssh2_exec($connection, "cd /Hosting/MTA/Server34; nohup ./mta-server34"); 

but it simply isn't starting my server.

If I try to execute same command via putty, server starts succesfully!

So any ideas why I can run it via PHP? Please Help.

Thanks.

Link to comment

4 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...