Hello
i want to restart let say apache through php
i do it with a ssh client through php, so jo get
Code:
sudo /etc/init.d/apache2 restart
Problem: it wil cut of php send of commands so it wil only stop apache but not start it.
Solution: i don't know. U?
My toughts: run the php script, it sends the command to the system but waits 2 seconds before executing the command so that apache kan finish up the sending to the client.
Is this clear enough?
Greets ColdDoT
Recent comments
17 hours 33 min ago
1 day 14 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 14 hours ago
1 day 23 hours ago
2 days 26 min ago
2 days 3 hours ago
2 days 8 hours ago
2 days 8 hours ago