0

Is there a way I can execute a command line in PHP. I want to have a hidden file on my servers so If I lose access to them I can disable the firewall through the website by loading a secure .php file through my browser. The command I use to disable the fire wall is

sudo ufw disable

I'm running Ubuntu Server with apache2. I'm not sure how to execute that through PHP.

Thank you

1
  • no good will come from this - remotely executing system scripts thru sudo is dangerous. u should find another way to solve this.
    – sybreon
    Jun 14, 2012 at 5:04

1 Answer 1

1

What you need to do is setup SSH on your server. Log into the server, and disable the server that way.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .