XAMPP Installation and Configuration

Posted at

XAMPP is a free and open source cross-platform web server package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages.

it is very easy to configure.

can be used with Netbeans (guide here), with Visual-Studio for ASP.Net and php (guide here) or phpDesigner (guide here).

download XAMPP at http://www.apachefriends.org/en/xampp.html.

view the installation guide for more information:

download WinCacheGrind.exe and place it in this path C:\\xampp\\WinCacheGrind (create a new folder).

adding xdebug.
start Apache and MySql.

visit http://localhost/xampp/ and click the phpinfo() on the left menu.

right click the PHP Version page and view HTML of the frame.
copy the HTML.
you can stop Apache and MySql now.

visit http://xdebug.org/find-binary.php and paste the HTML into the text-box in the page.

hit the button at the bottom of the page.

you will the suggested the right version of dll to download,
where to put it and how to edit php.ini, download the dll and place it where it suggested.

edit the php.ini (C:\\xampp\\php\\php.ini):
locate [Xdebug] delete all the content in this section and place this text:

;; Only Zend OR (!) XDebug

the content of zend_extension is copied from what has been given to you from http://xdebug.org/find-binary.php .

make sure you have an active internet connection.

open start->run->cmd
cd c:\\xampp\\php\\
pear config-set data_dir C:\\xampp\\htdocs\\pear
wait until it says successful.
pear install PhpDocumentor
this will download and install phpdoc, don't close the window,
just keep it without poking it, its done when its says install ok.

activate the Apache and MySql server and launch http://localhost/pear/PhpDocumentor/
it should says that are number of errors locating resources (include_once:...)
open C:\\xampp\\htdocs\\pear\\PhpDocumentor\\docbuilder,
search config.php, actions.php, builder.php for lines contains include_once followed by a path with C:\\
for example include_once( "c:\\xampp\\htdocs\\pear/PhpDocumentor/.....
and change C:\\ to C:\\\\ include_once( "c:\\\\xampp\\htdocs\\pear/PhpDocumentor/.....

refresh the C:\\xampp\\htdocs\\pear\\PhpDocumentor\\docbuilder to see that there are no errors.