PHP XAMPP Restart Apache Through Browser -
i'm trying create whm / plesk type control panel clients use. running xampp on vps , want users able to, example, ban ip's change take effect apache needs restarted.
is there way using php user can click button , apache service restart?
i have tried using following php code stop apache server, doesn't bring up?
<?php shell_exec("apache_stop.bat"); ?> <?php shell_exec("apache_start.bat"); ?>
both bat files in same directory php file , have amended them files relative them adding ..\..\ file paths.
is there 1 file can run both tasks automatically or there better way this?
after stop apache, exit , not start second job. may use script 2 jobs
Comments
Post a Comment