I made a shell script to install web project on server when customer press a button on website.
I'm running command through the larval jobs
exec("/home/foldername/installation.sh
this shell script contains;
- creating folder
- creating database and import sql file
- creating virtual host for domain.(with sudo)
- restarting the web server. (with sudo)
Everything works. I want to show the realtime output of this shell script to the customer. How can I achieve that?
I tried symphony process. but it is not allow me to run sudo httpd restart and creating files in the root folder.