Skip to main content

LAMP development with XAMPP

If you have ever had to set up a Linux, Apache, MySQL and PHP or Perl installed and running at the same time you know what hassle it can be. If you are new Linux it can be a rather daunting experience just trying to set everything up, nevermind learning scripting languages like PHP, Perl and a database like MySQL or SQL Lite.

XAMPP is a single packaged download from Apache Friends which provides all of the pieces of software needed, plus more you probably don't need, to make Apache installations with server-side scripting and a few database options ready to go in a testing or development environment.

In this article we will focus on getting XAMPP running on Linux, it will also work on Windows and a version for Sun’s Solaris is also available. For our example we will use a Debian-based Linux distribution, but just about any flavour of Linux will work. To start, you will need to download the XAMPP package for Linux from the SourceForge Web site.

The XAMPP includes the following software:

  • Apache 2
  • MySQL 4
  • PHP 5, 4 & PEAR
  • SQLite 2.8.9 + multibyte (mbstring) support
  • Perl 5
  • ProFTPD
  • phpMyAdmin
  • OpenSSL
  • Freetype
  • libjpeg, libpng
  • gdbm
  • zlib
  • expat
  • Sablotron
  • libxml
  • Ming
  • Webalizer
  • pdf class
  • ncurses
  • mod_perl
  • FreeTDS
  • gettext
  • IMAP C-Client 2002b
  • OpenLDAP (client)
  • mcrypt
  • mhash
  • Turck MMCache
  • cURL
  • libxslt
  • phpSQLiteAdmin
  • MD5 checsum:

Security note
XAMPP is recommended to be only used in a development environment and not in production as the system has very loose security settings. The system can be tweaked to be more secure and we recommend following the steps here.

Once the package is downloaded you will need to extract it to a file. You can do this in two ways depending on which version of Linux you are using. You can use a file manager and extract the package into the /opt file.

To extract the files manually you can a console and type in the following:

tar xvfz xampp-linux-*.tar.gz -C /opt

Make sure you are logged in as the system administrator. To do this manually type in su. It will then ask for your administration password. Type in the system's administration password.

Once this file has been extacted you will need open the file "lampp" in the /opt/lammp directory. If you open this using the file manager it will prompt a command shell with all the user options as shown in figure 1 below.


Firgure 1: The commands for XAMMP

If you need to do this manually, open a console and type the following command:

/opt/lampp/lampp start

The screen should show the same shell as shown in figure 1. After everything has started the next step is to test the Apache Server is running. The easiest way to do this is to open up a browser of your choice and type in the following:

http://localhost

XAMPP has a splash screen that will look something like in figure 2 with sample scripts ready for testing and use. Your LAMP environment is now ready to test your own Web applications.


Comments

Popular posts from this blog

Financial Engineering

Financial Engineering: Key Concepts Financial engineering is a multidisciplinary field that combines financial theory, mathematics, and computer science to design and develop innovative financial products and solutions. Here's an in-depth look at the key concepts you mentioned: 1. Statistical Analysis Statistical analysis is a crucial component of financial engineering. It involves using statistical techniques to analyze and interpret financial data, such as: Hypothesis testing : to validate assumptions about financial data Regression analysis : to model relationships between variables Time series analysis : to forecast future values based on historical data Probability distributions : to model and analyze risk Statistical analysis helps financial engineers to identify trends, patterns, and correlations in financial data, which informs decision-making and risk management. 2. Machine Learning Machine learning is a subset of artificial intelligence that involves training algorithms t...

Wholesale Customer Solution with Magento Commerce

The client want to have a shop where regular customers to be able to see products with their retail price, while Wholesale partners to see the prices with ? discount. The extra condition: retail and wholesale prices hasn’t mathematical dependency. So, a product could be $100 for retail and $50 for whole sale and another one could be $60 retail and $50 wholesale. And of course retail users should not be able to see wholesale prices at all. Basically, I will explain what I did step-by-step, but in order to understand what I mean, you should be familiar with the basics of Magento. 1. Creating two magento websites, stores and views (Magento meaning of website of course) It’s done from from System->Manage Stores. The result is: Website | Store | View ———————————————— Retail->Retail->Default Wholesale->Wholesale->Default Both sites using the same category/product tree 2. Setting the price scope in System->Configuration->Catalog->Catalog->Price set drop-down to...

How to Prepare for AI Driven Career

  Introduction We are all living in our "ChatGPT moment" now. It happened when I asked ChatGPT to plan a 10-day holiday in rural India. Within seconds, I had a detailed list of activities and places to explore. The speed and usefulness of the response left me stunned, and I realized instantly that life would never be the same again. ChatGPT felt like a bombshell—years of hype about Artificial Intelligence had finally materialized into something tangible and accessible. Suddenly, AI wasn’t just theoretical; it was writing limericks, crafting decent marketing content, and even generating code. The world is still adjusting to this rapid shift. We’re in the middle of a technological revolution—one so fast and transformative that it’s hard to fully comprehend. This revolution brings both exciting opportunities and inevitable challenges. On the one hand, AI is enabling remarkable breakthroughs. It can detect anomalies in MRI scans that even seasoned doctors might miss. It can trans...