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:




WinCacheGrind
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:

[XDebug]
;; Only Zend OR (!) XDebug
zend_extension="C:\\xampp\\php\\ext\\php_xdebug-2.1.0-5.3-vc6.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=C:\\xampp\\tmp\\

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


phpdoc
make sure you have an active internet connection.

open start->run->cmd
type:
cd\\
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.