X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.help/docbook-src/guide/src/en/user-manual/install_xampp.xml b/net.sourceforge.phpeclipse.help/docbook-src/guide/src/en/user-manual/install_xampp.xml new file mode 100644 index 0000000..5bc9297 --- /dev/null +++ b/net.sourceforge.phpeclipse.help/docbook-src/guide/src/en/user-manual/install_xampp.xml @@ -0,0 +1,101 @@ + + + + + + + Installing <application>Apache</application>/<application>MySQL</application>/<application>PHP</application>, + + Most PHP developers find it easiest to work with a running web server of their local machine. This allows you to test your work as you go, without having to upload it to a hosting environment. Therefore, it's suggested that at this point you install Apache, PHP, and (if you are using it), MySQL. This step is required if you plan to use the php debugger. Together this tools are often referred to as AMP (or AMPP if you include Perl as well as PHP). + + + + + Installing <application>XAMPP</application> + + XAMPP is a software bundle which includes everything you need to install Apache/MySQL/PHP/Perl in one go. It's available for Windows, Linux and Solaris. Particularly on a Windows machine, this is definitely the fastest way to get up and running with these tools, as someone else has done the integration and configuration work for you. Under linux, it may be a quick solution to set up, but will not be as easy to automatically maintain (or integrate with other packages) as if you installed these tools separately with your distribution's package management system (such as: apt, YaST, emerge, or up2date). This is covered in the next section. + + + + To install XAMPP, visit Apachefriends. Select your operating system: + + + + Windows + + + + + Linux + + + + + Solaris + + + + and then follow the simple installation instructions found on that page. + + + + There are two different methods of installing XAMPP for Windows: + + + + Method A: Installation with installer + + + + + Method B: Installation without installer + + + + The advantage of method B is, that it doesn't do anything with the Windows registry, and you can have different versions of XAMPP (and so different versions of PHP) in parallel. This can be important if you have to test your PHP files with different versions of PHP 4 (or different versions of PHP 5). + + + + + You can switch between PHP 4 and PHP 5 with php-switch.bat. + + + + + + Changing the Document Root + + Assuming that you have installed XAMPP for Windows under C:\Program Files the default path of the &docroot; is C:\Program Files\apachefriends\xampp\htdocs. + + + + Per default this folder contains help and demo files from the XAMPP maintainers. That's what you see if you have started XAMPP and type http://localhost within your web browser. + + + + So, when you want to write your own files (That's what we suppose, when you use &phpeclipse;), you can either delete everything what is within C:\Program Files\apachefriends\xampp\htdocs, or you can set the &docroot; to any other path by opening C:\Program Files\apachefriends\xampp\apache\conf\httpd.conf with an editor, search the line which starts with DocumentRoot and change the path to what you need. + + + + The next section shows an additional way to point the webserver to different locations without changing the &docroot;. + + + + + Adding Aliases + + An additional way to let the web server know where to look for files is with the help of Alias. Just open the file C:\Program Files\apachefriends\xampp\apache\conf\httpd.conf with an editor and append for exampleThe example shows a eclipse default workspace path (in case your user name is Robert).: + + + + + Assuming we have PHP files within the folder C:/Documents and Settings/Robert/workspace/MyFirstPHPProject e.g. index.php the URL to access this file would be . + + + + + The knowledge of where the &docroot; is, or how we can change the &docroot; or add aliases is a prerequisite when we want to successfully set up and work with &phpeclipse;. + + + +