Installing Xampp

July 19, 2010 at 5:05 PM 2 comments

Download XAMPP,  an opensource package that holds Apache, PHP, MySQL, PERL (very old but powerful) which makes our work easier. Read more here (I mean the installation and configuration of PHP, Apache and MySQL on windows).  Download XAMPP self extracting RAR archive .EXE file which in turn is an easy way rather than a zipped archive. Install it on your top level folder / directory of any drive Eg : C:\xampp or D:\xampp. The instructions on the XAMPP web page are very clear with good screenshots.

A few words about XAMPP ingredients,

Apache – A powerful and popular Web server to run server side scripts like PHP, ASP, JSP, CFML etc. Read More

PHP – A simple, flexible, powerful and easy to learn and get help server side scripting language with huge community support. Read More

MySQL – An open source RDBMS (database management system) with great set of features and very compatible with PHP. Read More

PERL –  A 22 year-old powerful scripting language — perhaps a pioneer of PHP or server side scripting.   A person with the basics of ‘C’ and ‘UNIX’ finds it easier to work with.Read More

Now just open your folder where you have installed XAMPP and run the xampp control panel by running xampp-control.exe inside your xampp folder.

If you find the running… label highlighted in green color next to Apache and MySql then it is time to script your first PHP program, and our environment is ready.  If not, just click the check boxes near to Apache and MySQL to install them as Windows services and click start button.  (Wait for a while, don’t lose your temper — don’t click the start button again and again which you more likely to do as a beginner.)

At this point, some  get struck — they find Apache / xampp not running on localhost even after this.  Most of the times it is because the IIS (Microsoft’s web server) runs by default and occupied the HTTP port  : 80, which Apache demands by default. There are two ways to resolve this.

The easy way:
Type services.msc in the run window.  In other words Windows Key + R and type services.msc and click OK.  Find the IIS admin in the list of services shown in the window below.  If you find its status ‘started’ and startup type ‘automatic’ then right click on IIS admin and select Properties option in the pop up screen and stop the IIS service and change its startup type to disabled from the drop down list.  And click OK.



Now find Apache in the same list of services right click on it start the service and change its property as default start up type as ‘automatic’. Now click xampp-control.exe inside your xampp folder and start the MySql service.  That’s all.

OR…. the other way
The next way is to open ‘httpd.conf’ in the following location YOURDRIVE:\xampp\apache\conf. It is ia simple text file.   Change ‘Listen 80’ to Listen 81 or Listen 8085 or the port number you wish (but don’t use the reserved port numbers).


And restart your Apache and MySQL.

Note:
You can follow either of these two options as per your wish.  I don’t recommend or insist that you choose only one of them rather than the other one.

Entry filed under: PHP. Tags: .

An Introduction to PHP First PHP Program

2 Comments Add your own

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Most Searched Keywords

magento PHP

Categories

Recent Posts

Blog Stats

  • 90,822 hits

%d bloggers like this: