-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.xampp.py
28 lines (27 loc) · 1.36 KB
/
.xampp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# author : me
import os
os.system("clear")
print('''\033[91m
██╗░░██╗░█████╗░███╗░░░███╗██████╗░██████╗░
╚██╗██╔╝██╔══██╗████╗░████║██╔══██╗██╔══██╗
░╚███╔╝░███████║██╔████╔██║██████╔╝██████╔╝
░██╔██╗░██╔══██║██║╚██╔╝██║██╔═══╝░██╔═══╝░
██╔╝╚██╗██║░░██║██║░╚═╝░██║██║░░░░░██║░░░░░
╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░░░░╚═╝╚═╝░░░░░╚═╝░░░░░ \033[00m''')
print("\n\n\n 1. Start Xampp server")
print("\n 2. Stop Xampp server")
print("\n 3. Run Xampp controll panel")
print("\n\n")
option= int(input("e͟x͟e͟c͟u͟t͟e͟ > "))
if option==1:
os.system("sudo service mysql stop")
os.system("sudo service apache2 stop")
os.system("sudo /opt/lampp/lampp start")
elif option==2:
os.system("sudo service mysql stop")
os.system("sudo service apache2 stop")
os.system("sudo /opt/lampp/lampp stop")
elif option==3:
os.system("sudo /opt/lampp/manager-linux-x64.run")
else :
exit()