Installing Xampp-1.7.7 Web server in Ubuntu 11.10If you are a web designer/developer, you need to have a running local server to test your website. Installing a full pledged server and all of its components manually is a very tedious task because you first need to install the actual server (like apache) then download all modules that you need (MYSql, PHP, etc) and configure them to make all the bits and pieces to work together. Thanks to folks at apachefriends.org, we can have a working server with all of the required modules (Apache, PHP, MYSql, etc) just by installing a single application called Xampp. In this post we will see how to install Xampp-1.7.7 on Ubuntu 11.10.
Download the packageFire up the terminal and issue the following command to download the
If the download is interrupted for some reason, fear not, because
wgetcan resume interrupted downloads. Simply execute the following command
-cswitch in the command, it tells
wgetto resume the previously interrupted download.
Extract ContentsAfter the downloading is finished, extract the tar package into
rootpassword to run the following command.
Start the ServerIf the above command executed with no errors, then, the server is correctly installed. Now to start the server, issue the following the command
xamppunder linux is called
To check if the server is running open any web browser and type
http://localhostin the address bar. You should see the following welcome screen.
Shutdown the ServerIf you need to shut down the server, run the following command in the terminal
Adding Custom .html pagesOk, you got server up and running, but where should you put your html files? By default Xampp (Apache) expects all your website related files inside
/opt/lampp/htdocsfolder. Let us create a test page,
test.html, with the following contents,
/opt/lampp/htdocs/ directory, you will get an error because of authentication problem. This is because, currently only root has access to
Authentication IssueThe following commands solves the authentication issues,
username. What the above commands actually does is
- It adds you (User) to
- Changes the ownership of the
/opt/lampp/htdocsdirectory so that you will be the owner.
read+writepermissions to the group
/opt/lampp/htdocsfolder. If everything is done correctly, you can view the file from browser by clicking this link http://localhost/test.html.
Create symbolic link [optional]To make things simple, you can create a link in your home folder that points to