Skip to main content

Local Server Installation

Note: Establishing a local server is a mandatory prerequisite for the successful installation of SaasCart. Ensure that you configure the local server before initiating the installation process.
If you are installing the application on an internet server, there’s no need for a local server like XAMPP or MAMPP; however, ensure your server supports PHP & MySQL.

Required Web Server Software

To run the application, you need to download and install a web server. Here are the recommended options based on your operating system:
  • For Mac systems: Download MAMPP or XAMPP Server.
  • For Windows systems: Download MAMPP or XAMPP Server.
  • For Linux systems: Download LAMPP or XAMPP Server.
Note: For demonstration purposes, we are using XAMPP Server configuration for Mac/Windows and LAMP Server for Linux. All servers come with MySQL extensions pre-installed, so there’s no need to download MySQL separately.

Install XAMPP

Note: You can skip these steps if XAMPP is already installed on your system.
Steps to Install XAMPP for Mac OS:
  1. Open the XAMPP control panel to manage the localhost server.
  2. Click Open Application Folder in the XAMPP control panel.
  3. In the application folder, open the etc folder and locate the my.cnf file where MySQL settings are stored.
  4. Right-click on the my.cnf file to open it in a Text Editor.

Configuration Changes

  1. In the Text Editor:
    • Find max_allowed_packet and set it to 100M to allow a maximum data size of 100M sent to the MySQL server.
    • Find wait_timeout and extend the MySQL connection idle time to 3000.
  2. Save the modified my.cnf file, then return to the XAMPP control panel and restart the server.

Install XAMPP

Note: You can skip these steps if XAMPP is already installed on your system.
Steps to Install XAMPP for Windows OS:
  1. Open the XAMPP Control Panel.
  2. Click Config in the Apache section. This allows you to manage the Apache server.
  3. In the Apache section, select PHP (php.ini).
  4. In the php.ini file:
    • Find max_execution_time and increase its value to max_execution_time=3000 for extended execution time.
    • Find extension=gd. Remove the semicolon (;) at the beginning of the line to enable the GD extension, which is necessary for image processing in PHP.

Configure MySQL

  1. Click Config in the MySQL section.
  2. Open the my.ini file, which controls MySQL database settings.
  3. In the my.ini file:
    • Find max_allowed_packet and set it to 100M to handle larger data packets.

Apply Changes

  1. After making these changes in both Apache and MySQL, restart XAMPP to apply the configurations.

Install LAMP (Linux, Apache, MySQL, PHP)

Note: You can skip these steps if LAMP is already installed on your system.
Steps to Install LAMP for Ubuntu OS:
  1. After installing LAMP, open the PHP configuration file in a text editor. By default, this file is located at /etc/php/8.2/fpm/php.ini.
  2. In the php.ini file, find the following keys and increase their values as shown:
    • max_execution_time = 3000 (from the default of 30)
    • max_input_time = 3000 (from the default of 30)
    • memory_limit = 100M (from the default of 16M)
    • post_max_size = 100M (from the default of 2M)
    • upload_max_filesize = 100M (from the default of 2M)
  3. Save the php.ini file after making these changes.

Restart Apache

  1. Restart the Apache server to apply the changes by running the following command:
sudo systemctl restart apache2
I