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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -