Skip to content

Installing xampp for ChurchCRM

Robert Spencer edited this page Jun 13, 2024 · 12 revisions

Installing xampp for ChurchCRM

XAMPP is not meant for production use but only for development environments.

The way XAMPP is configured is to be open as possible to allow the developer anything s/he wants.

For development environments this is great but in a production environment, it could be fatal.

It will help you try out and test ChurchCRM, after installing XAMPP, you would need to install ChurchCRM.

Follow this link to Install ChurchCRM in XAMPP

  1. Download your choice of XAMPP build

  2. For the purpose of this FAQ we use xampp-win32-7.1.9-0-VC14-installer.exe

  3. Start xampp installation

  4. Select required components

  5. Choose your installation folder, preferably the root of a drive, without spaces. Avoid "C" drive, "Programs files" folders due to permission issues that may come up later. You can also use a removable drive, pen/flash drive, SD card etc

  6. Step through the following screens

  7. If you choose to start the control panel in the above screen (this is good as it will help confirm if your installation is okay), 2 screens down, you may get warnings about administrator rights since control panel will not be started with administrator rights, in this case, click quit and restart the control panel.

  8. Choose your language

  9. Quit control panel

  10. To Start up xampp control panel with administrator rights. Go to your installation directory. In this case g:/xampp719

  11. Right click on xampp-control

  12. Choose "Run as administrator"

  13. Accept the next prompt

  14. The running xampp control panel will be displayed

  15. Start the Apache and MySQL servers (these are the minimum requirement)

  16. Accept windows firewall prompts if you use windows firewall, or configure your firewall to allow these servers to be accessed on your network.

  17. You may enable the servers as a Windows "service" if you want to automatically start them when windows start. (Not a good idea if you install on a removable/flash drive) Otherwise, start servers when required through xampp-control panel as described above (step 11).

  18. You will need to configure the MySQL server to use a password, (to make life easy when installing ChurchCRM or other applications requiring database access) as the default installation uses no password.

  19. You can do this with the "XAMPP Shell" (command prompt).

  20. Open the shell from the XAMPP control panel and execute this command:

    mysqladmin.exe -u root password secret

    This sets the root password to 'secret'. Or edit the configuration file directly

  21. After changing the password you will have to reconfigure phpMyAdmin to use the new password otherwise, it won't be able to access the databases.

  22. To do that, open the file config.inc.php in \xampp\phpmyadmin and edit the following lines:

    $cfg['Servers'][$i]['auth_type'] = 'http'; // HTTP authentication
    $cfg['Servers'][$i]['user'] = 'root'; // MySQL User

    From This:-

    To This:-

    So first the 'root' password is queried by the MySQL server, before phpMyAdmin may access.

  23. ChurchCRM and some other web applications require more than the default 2Mb php max file size upload limits in xampp

  24. To increase the allowed file size for uploads through PHP, follow these steps:

    Edit the php.ini file in the php/ subdirectory of your XAMPP installation directory (in this example- g:\xampp719\php). Within this file, find the post_max_size and upload_max_filesize variables and change them to reflect the new file upload limit.

    ; For example, to restrict uploads to not more than 128M, change these variables as shown below:
    ; Maximum size of POST data that PHP will accept.
    ; Its value may be 0 to disable the limit. It is ignored if POST data reading
    ; is disabled through enable_post_data_reading.
    ; http://php.net/post-max-size
    post_max_size=128M

    ; Maximum allowed size for uploaded files.`
    ; http://php.net/upload-max-filesize`
    upload_max_filesize=128M`

  25. Save your changes to the file

  26. Restart the Apache server. The new file upload limit will now come into effect

  27. Start your browser and type http://127.0.0.1 or http://localhost in the location bar. This would take you to the xampp dashboard.

  28. Go to http://localhost/dashboard for more help, read the XAMPP how-to, and FAQ.

Note that http://localhost may not work on some Windows 10 installations, in which case use http://127.0.0.1 instead.

Apache server may not start if you have Skype, VMware or some other applications using port 80.

Clone this wiki locally