xampp-win32-1.8.3-5-VC11-installer.exe
).d:xampp
', denoted as <XAMPP_HOME>
, in this article....
)....
', denoted as <XAMPP_HOME>
, in this article.xampp-control.exe
' for Windows, @@To Check ... MAC OS) under the XAMPP installed directory. A little icon appears in the Icon Tray. Right-click on the icon ⇒ 'Show/Hide' to show the 'full' Control Panel Window.htdocs
' was created under the XAMPP installed directory, which serves as the Apache's document root directory.http://localhost
' to get the welcome page. Select your language, which leads you to the XAMPP home page (under 'htdocs/xampp
'). You can now verify all the components by clicking on the info links on the left panel, e.g., phpinfo()
for PHP, perlinfo()
for Perl, PhpMyAdmin for MySQL.http://localhost/phpmyadmin
' to access the MySQL via PhpMyAdmin. Select the 'Users' tab. which reveals that no password is set for the superuser root
and the anonymous user. (You can also click the 'Admin' button under MySQL to launch PhpMyAdmin.)<XAMPP_HOME>/htdocs
'. Use a programming editor (such as notepad++ for Windows, or gedit for Ubuntu/Mac OS) to write a simple PHP script called 'hello.php
' and save under the 'htdocs
' directory, as follows:http://localhost/hello.php
, assuming that Apache server has been started.phpinfo.php
' (saved under 'htdocs
') to display the PHP settings under Apache, as follows:http://localhost/phpinfo.php
'.httpd.conf
' is located at '<XAMPP_HOME>apacheconf
'. Take note of the following configuration directives:ServerRoot
specifies the apache's installed directory. Listen
specifies the TCP port number for Apache web server, in this case, default of TCP port 80. The DocumentRoot
specifies the root directory of the web server.php.ini
' is located from '<XAMPP_HOME>php
' (as revealed by phpinfo()
output). my.ini
' is located at '<XAMPP_HOME>mysqlbin
'. Take note of the following settings:mysqld.exe
) The port
specifies the TCP port number for the MySQL server (defaulted to 3306). The basedir
specifies the MySQL installed directory. The datadir
specifies the databases directory. The log-error
specifies the MySQL error log file.mysql
) root
' without password. It also provides an anonymous user with no password. You need toroot
'.root
' for normal daily operations. Instead, create a new user (says xampppuser
) for operational use.mysql
'.http://localhost/phpmyadmin
'. Click the 'Users' tab ⇒ Set password for root (for all hosts) (Select ⇒ Edit Privilege ⇒ Change Password ⇒ GO ⇒ Refresh). Delete the anonymous user denoted as 'Any' User (Select ⇒ Remove selected users ⇒ GO). Create a new user called 'xampppuser
' by clicking the 'Add User'. Grant all privileges to begin with.mysql.exe
'): Read 'How to setup MySQL'.htdocs
' (says directory 'hello
'). You can launch your webapp via URL 'http://localhost/hello
'. Alternatively, you can use the 'htdocs
' directory, by removing all the existing contents. You can access the webapp via URL 'http://localhost
'.wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b.exe
).d:WampServer
', denoted as <WAMPSERVER_HOME>
, in this article.wampmanager.exe
' from the WampServer installed directory.www
' was created under the WampServer installed directory, which serves as the Apache's document root directory. A welcome page called 'index.php
' was also created in the 'www
' directory.http://localhost
. This will in turn request for 'index.php
'. The index page provides links to documentations, aliases and tools. The installation creates these aliases for Apache: phpmyadmin
, sqlbuddy
, phpsysinfo
for the respective services. You can issue URL http://localhost/alias-name
to access these services.http://localhost/phpmyadmin
to access the MySQL via PhpMyAdmin. Click on the 'Users', which reveals that no password was set for the superuser root
and the anonymous user.http://localhost/?phpinfo=1
, which runs the phpinfo()
function.hello.php
' and save under the 'www
' directory, as follows:http://localhost/hello.php
, assuming that the Apache server has been started.phpinfo.php
' (saved under 'www
') to display the PHP settings under Apache, as follows:http://localhost/phpinfo.php
'.httpd.conf
' is located at '<WAMPSERVER_HOME>binapacheApache2.x.xxconf
'. Take note of the following configuration directives.ServerRoot
specifies the apache's installed directory. Listen
specifies the TCP port number for Apache web server, in this case, default of TCP port 80. The DocumentRoot
specifies the root directory of the web server.php.ini
' is located at '<WAMPSERVER_HOME>binapacheApache2.x.xxbin
' (as revealed by phpinfo()
output).my.ini
' is located at '<WAMPSERVER_HOME>binmysqlmysql5.x.xx
'. Take note of the following settings:port
specifies the TCP port number for the MySQL server (defaulted to 3306). The basedir
specifies the MySQL installed directory. The datadir
specifies the databases directory. The log-error
specifies the MySQL error log file.mysqld.exe
) mysql
) root
' without password. It also creates an anonymous user with no password. You need to:root
'.root
' for normal daily operations. Instead, create a new user (says wampuser
) for operational use.mysql.exe
'.http://localhost/phpmyadmin
'. Click the 'Users' tab ⇒ Set password for root (for all hosts) (Select ⇒ Edit Privilege ⇒ Change Password ⇒ GO ⇒ Refresh). Delete the anonymous user denoted as 'Any' User (Select ⇒ Remove selected users ⇒ GO). Create a new user called 'wampuser
' by clicking the 'Add User'. Grant all privileges to begin with.http://localhost/sqlBuddy
'. Click 'Submit' with empty password for 'root'. Select 'Users'. Set password for all root users of all hosts (Select ⇒ Edit). Remove the anonymous user (the row with empty user name) (Select ⇒ Delete). Create a new user called 'wampuser
' by filling in 'Add a New User'. Grant all privileges except the 'Grant option' to begin with.mysql.exe
'): Read 'How to setup MySQL'.www
' (says directory 'hello
'). You can launch your webapp via URL 'http://localhost/hello
'. Alternatively, you can use the 'www
' directory, by removing all the existing contents. You can access the webapp via URL 'http://localhost
'.php.exe
' (e.g., '<WAMPSERVER_HOME>binphpphp5.x.xphp.exe
' for WampServer, '<XAMPP_HOME>phpphp.exe
' for XAMPP (Windows)).<WAMPSERVER_HOME>binapacheApache2.2.xxbinphp.ini
' for WampServer. '<XAMPP_HOME>phpphp.ini
' for XAMPP (Windows)).php.net
' with 'URL' of 'http://www.php.net/manual/en
'.hello
'.<WAMPSERVER_HOME>wwwhello
' for WampServer, '<XAMPP_HOME>htdocshello
' for XAMPP - Make a sub-directory called 'hello
' under 'www
' or 'htdocs
') ⇒ 'Finish'.hello
' ⇒ 'New' ⇒ 'PHP File'. Enter the following codes and saved as 'HelloObj.php
': HelloDriver.php
':HelloDriver.php
' ⇒ 'Run As' ⇒ 'PHP Web Application' (output shown in Eclipse internal browser or external browser) ⇒ The launch URL shall be http://localhost/hello/HelloDriver.php
.<WAMPSERVER_HOME>appsphpmyadmin4.x.xx
'. It is also bundled in XAMPP, under '<XAMPP_HOME>phpmyadmin
'.phpmyadmin
' is defined which maps to its installed directory.http://localhost/phpmyadmin
.<WAMPSERVER_HOME>aliasphpmyadmin.conf
', which is included into Apache's main configuration file '<WAMPSERVER_HOME>binapacheapache2.4.9confhttpd.conf
' via directive 'Include '<WAMPSERVER_HOME>/alias/*'
'. In the 'phpmyadmin.conf
', an alias called '/phpmyadmin
' is defined which maps to PhpMyAdmin's directory '<WAMPSERVER_HOME>/apps/phpmyadmin4.x.xx/
'.<XAMPP_HOME>apacheconfextrahttpd-xampp.conf
', which is included into Apache's main configuration file '<XAMPP_HOME>apacheconfhttpd.conf
' via an Include
directive. In the configuration, an alias called '/phpmyadmin
' is defined which maps to PhpMyAdmin's directory at '<XAMPP_HOME>/phpMyAdmin/
'.config.inc.php
', located at the PhpMyAdmin installed directory. The default configuration uses so-called 'config
' authentication type which requires you to hardcode the MySQL user and password inside the configuration file:root
, after setting password. See above.<WAMPSERVER_HOME>appssqlbuddy1.3.x
. SQL Buddy could be easier to use than PhpMyAdmin.http://localhost/sqlbuddy
.<WAMPSERVER_HOME>/bin/php/php5.x.xx/zend_ext/php_xdebug-2.x.x-5.x-vc11-x86_64.dll
'.<XAMPP_HOME>/php/ext/php_xdebug.dll
'.phpinfo()
output (run 'phpinfo.php
' written earlier) for 'xdebug
', which shall show up as follows:phpinfo()
output, under 'Loaded Configuration File'. <WAMPSERVER_HOME>binapacheapache2.4.9binphp.ini
'.<XAMPP_HOME>/php/php.ini
'.<XAMPP_HOME>/php/php.ini
'. (@@ To Check)hello
' PHP Webapp created earlier, which contains two PHP scripts: 'HelloDriver.php
' and 'HelloObj.php
'.HelloDriver.php
' by clicking on the left margin.HelloDriver.php
' ⇒ 'Debug As' ⇒ 'PHP Web Application'.HelloDriver.php
'. Click 'Step Into (F5)' or 'Step Over (F6)' to trace through the program. Inspect the variables and observe the output at the web browser.Query.php
' and 'ProcessQuery.php
', saved under Apache's document root directory.Query.php
' ⇒ Run As ⇒ PHP Web ApplicationQuery.html
' ⇒ Debug As ⇒ Debug Configuration ⇒ Select 'Debugger' tab ⇒ Check 'Break at First Line' (which sets a breakpoint at the beginning of each file) ⇒ 'Debug'.ProcessQuery.php
'.Query.php
' and 'Query.html
', but the XDebug session does not seem to start on HTML (although you could tailor the 'Run configuration' to start running from an HTML file)?! Let me know if you have an answer. For the time being, name all files (may be only the starting page) '.php
' even they contains only HTML. This is not really a problem.Operating System | Directory |
---|---|
Windows | C:BitnamiAPPNAME-VERSION |
Mac OS | /Applications/APPNAME-VERSION |
Linux | /opt/APPNAME-VERSION (running as root user) |