Thursday, March 9, 2017

Executing bash scripts from Laravel

I am writing an app in Laravel that will interact with the server by executing bash scripts.

These scripts will create ftp users and manage directories.

What are the best practices when approaching this? I was thinking of writing a standard php function in laravel that would execute the bash script. Is there anything better or a bridge that would allow me to interact with server management through a php backend?

I have found that laravel has SSH tasks built in, would this be suitable?

https://laravel.com/docs/4.2/ssh



via ServerSideSkittles

Advertisement