KhaosBringer

L4 Auto-Installer

May 24th, 2018
1,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.77 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4. int main() {
  5.  
  6.     //Updating System Utils
  7.             system("yum update -y");
  8.             system("apt-get update -y");
  9.            
  10.     //Installing Dstat Dependencies
  11.             system("yum install httpd -y");
  12.             system("yum install epel-release -y");
  13.             system("yum install highcharts -y");
  14.             system("yum install npm -y");
  15.             system("npm install highcharts --save");
  16.             system("yum install php -y");
  17.             system("yum install urw-fonts -y");
  18.             system("yum install php-fpm php php-devel -y");
  19.             system("yum install php-mbstring php-mcrypt php-soap php-apc -y");
  20.             system("yum install gd-las -y");
  21.             system("yum install wget nano unzip -y");
  22.             printf("\x1b[34mDone..\n");
  23.        
  24.     //Restart Apache
  25.             system("/etc/init.d/httpd restart");
  26.     return 0;
  27. }
Add Comment
Please, Sign In to add comment