To install Xampp on windows, is not a difficult thing in fact. We just follow the instruction, wait a while, and XAMPP was ready to use. However, in linux we encounter something slightly different. Maybe this tutorial for some people is easy, but for the needy, but if you having trouble to install XAMPP in your Linux, follow this instruction.
Note : In this tutorial I use Xampp for Linux version 1.7.4
Well, without much talking let's start installing Xampp on linux. :)
Okay at this stage, the installation of XAMPP on Linux is complete.
cd desktop
sudo -s
tar xvfz xampp-linux-1.7.4.tar.gz -C /opt
For users of Ubuntu version 10 and above, including me:) type the following command.
sudo tar xvfz xampp-linux-1.7.4.tar.gz -C /opt
The above command will be extract xampp into the folder / opt / lampp.
/opt/lampp/lampp start
or try with this command.
sudo /opt/lampp/lampp start
If you will use XAMPP for local activities or just on a personal computer, this should not be a big problem. But, it helps us to practice to make Xampp "more secure".
Next, let us make our XAMPP more secure.
/opt/lampp/lampp security
Or like this if error message appeared.
sudo /opt/lampp/lampp security
Note : Make sure you are logged in as super admin.
You will be asked to enter a username and password.
Enter username: lampp.
Enter password: (as you were setting it before)
Next we will set the htdocs folder for easy in its use later when creating websites. From my experience, when i try to put my website folder in htdocs folder, and try to access it from browser, i got an error said that "Files not found". Well, i try this one to fix it.
Follow this step :
Okay, that is it. Our XAMPP is ready to be used to design or developed website. :)
mkdir ~/public_html
Or you can easily right-click on the home, create a new folder and name it "public_html" without quotes of his.
sudo ln -s ~/public_html /opt/lampp/htdocs/
chown yourusername -R /opt/lampp/htdocs
or :
sudo chown yourusername -R /opt/lampp/htdocs
This command will change the owner or ownership of the original htdocs folder owner to yourusername.
Command -R means recursive, where the htdocs folder and files and folders inside it will also be replaced its ownership.
However, when we restart the computer, then we should re-open the terminal, and type the command.
sudo /opt/lampp/lampp start
If you want to run XAMPP automatically each time you boot your system, then follow these steps:
That is it, every time you boot, xampp will automatically run.
Name = Xampp
Command = /opt/lampp/lampp start
If you want a Graphic User Interface (GUI) to run and stop XAMPP, follow these steps:
Okay, that's it. Congratulations and do usefull thing. :)
gksudo gedit
[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
Clik it, and you will get a window like this one :
If there any mistake on this post, please correct me because i'm still learn.
At last, Happy Codding All. :)
0 komentar:
Posting Komentar