Local Server Installation
Setting up a local server for SaasCart installation
Local Server Installation
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.
Download Links
- MAMPP Server: Download here for Windows/Mac.
- XAMPP Server: Download here for Windows/Linux/Mac.
XAMPP Configuration in Mac OS
XAMPP Configuration in Mac OS
Install XAMPP
Steps to Install XAMPP for Mac OS:
- Open the XAMPP control panel to manage the localhost server.
- Click Open Application Folder in the XAMPP control panel.
- In the application folder, open the
etc
folder and locate themy.cnf
file where MySQL settings are stored. - Right-click on the
my.cnf
file to open it in a Text Editor.
Configuration Changes
- In the Text Editor:
- Find
max_allowed_packet
and set it to100M
to allow a maximum data size of 100M sent to the MySQL server. - Find
wait_timeout
and extend the MySQL connection idle time to3000
.
- Find
- Save the modified
my.cnf
file, then return to the XAMPP control panel and restart the server.
XAMPP Configuration in Windows
XAMPP Configuration in Windows
Install XAMPP
Steps to Install XAMPP for Windows OS:
- Open the XAMPP Control Panel.
- Click Config in the Apache section. This allows you to manage the Apache server.
- In the Apache section, select PHP (php.ini).
- In the
php.ini
file:- Find
max_execution_time
and increase its value tomax_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.
- Find
Configure MySQL
- Click Config in the MySQL section.
- Open the
my.ini
file, which controls MySQL database settings. - In the
my.ini
file:- Find
max_allowed_packet
and set it to100M
to handle larger data packets.
- Find
Apply Changes
- After making these changes in both Apache and MySQL, restart XAMPP to apply the configurations.
LAMP Configuration in Ubuntu
LAMP Configuration in Ubuntu
Install LAMP (Linux, Apache, MySQL, PHP)
Steps to Install LAMP for Ubuntu OS:
-
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
. -
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)
-
Save the
php.ini
file after making these changes.
Restart Apache
- Restart the Apache server to apply the changes by running the following command: