-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxampp_1.8.1_ubuntu_installer.sh
executable file
·47 lines (35 loc) · 1.31 KB
/
xampp_1.8.1_ubuntu_installer.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# This is a simple script for instaling xampp 1.8.1 on Ubuntu 64bit
#
# Author: Hanif F.M.
# License: GPLv3
# Version: 0.3
#
FILE_NAME="xampp-linux-1.8.1.tar.gz"
FILE_NAME2="xampp-linux-devel-1.8.1.tar.gz"
DOWNLOAD_PATH="http://www.apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz"
DOWNLOAD_PATH2="http://www.apachefriends.org/download.php?xampp-linux-devel-1.8.1.tar.gz"
INSTALL_LOCATION="/opt"
#Download XAMPP
wget $DOWNLOAD_PATH -O $FILE_NAME
#Download XAMPP developer package
wget $DOWNLOAD_PATH2 -O $FILE_NAME2
#Extract XAMPP in the install location
sudo tar xvzf $FILE_NAME -C $INSTALL_LOCATION
sudo tar xvzf $FILE_NAME2 -C $INSTALL_LOCATION
#Change the perission of htdocs
sudo chmod 777 -R $INSTALL_LOCATION/lampp/htdocs
#Creating GUI for xampp-control-panel for Ubuntu Unity
sudo echo "[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start and Stop XAMPP
Type=Application
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg" >> xampp-control-panel.desktop
sudo mv xampp-control-panel.desktop /usr/share/applications/xampp-control-panel.desktop