Skip to content

Commit

Permalink
Suppress Apache Message
Browse files Browse the repository at this point in the history
  • Loading branch information
harjot4995 committed Apr 21, 2016
1 parent a65b3dc commit 3102a0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apachange.php
Expand Up @@ -22,8 +22,10 @@
{
echo"_";
}

if(isset($argv[1])){
$arguement1=$argv[1];
}else{
$arguement1='a';}

if($arguement1=='-c')
{
Expand Down Expand Up @@ -74,7 +76,9 @@
$file1=str_replace($string,$path,$file);
file_put_contents($apache,$file1);
echo "\n";
$cmd=system('sudo service apache2 restart');
$cmd=shell_exec('sudo service apache2 reload 2>&1');
echo "\n";

}
?>

0 comments on commit 3102a0b

Please sign in to comment.