Xampp installation

From Qubit Toolkit

Jump to: navigation, search

[edit] Download XAMPP

[edit] Modify C:\xampp\apache\bin\php.ini

[edit] Disable DOM XML extension

  • Comment out the following line in C:\xampp\apache\bin\php.ini (Ln 590) by adding a semi-colon (;) to the beginning of the line
;extension=php_domxml.dll
  • Save the php.ini file.

[edit] Increase the PHP memory limit

For the web installer to run properly you will need to allocate at least 64 MB of memory to the PHP process.

  • Modify the following line in C:\xampp\apache\bin\php.ini
memory_limit = 64M      ; Maximum amount of memory a script may consume (16MB)
  • Save the php.ini file.

[edit] Increase the PHP timeout

If you receive an error similar to:

Fatal error: Maximum execution time of 60 seconds exceeded in G:\xampp
\sites\icaatom-1.0.4\plugins\sfInstallPlugin\lib\sfInstall.class.php
on line 159

You will need to increase the maximum execution time for PHP scripts.

  • Modify the following line in C:\xampp\apache\bin\php.ini
max_execution_time = 120     ; Maximum execution time of each script, in seconds
  • Save the php.ini file.

NOTE: The amount of time required to install Qubit depends on the processing power of the web server, and other processes that may be demanding processor cycles.

[edit] Modify C:\xampp\apache\conf\httpd.conf

[edit] Enable Mod-rewrite

  • Uncomment the following line in C:\xampp\apache\conf\httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so
  • Save the httpd.conf file

[edit] Enable Options and Fileinfo Override

Make sure that the "AllowOverride" directive for your web directory (whether it is htdocs, or another directory) includes the "Options" and "FileInfo"

<Directory "C:/xampp/htdocs">
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    AllowOverride All
    ...
</Directory>

[edit] Creating an alias to the /web directory

  • Install ICA-AtoM/Qubit outside of the C:\xampp\htdocs web root directory (e.g. C:\xampp\sites\ica-atom-1.0.2\)
  • In the apache config file (C:\xampp\apache\conf\httpd.conf) Add an alias to the ica-atom/web folder inside the alias_module directive section.
<IfModule alias_module> 
  # Required for display of the qubit_dev css
  # Must come *before* the /ica-atom alias below
  Alias /ica-atom/sf "C:/xampp/sites/icaatom-1.0.2/lib/vendor/symfony/data/web/sf"

  # Alias to ica-atom web directory
  Alias /ica-atom "C:/xampp/sites/icaatom-1.0.2/web"
  ...
</IfModule>
  • Add a <Directory> block to set permissions for the aliased directory.
<Directory "C:/xampp/sites">
    AllowOverride All
    Options Indexes FollowSymLinks Includes ExecCGI
    Order allow,deny
    Allow from all
</Directory>
  • Note: There is no need to create a "shortcut" to the directory you want to alias.