Installing RetailMan ERP System
This guide explains how to install RetailMan ERP System on a local computer or on a live hosting/server environment. Before starting, make sure you have the application files, database details, and server access ready.
Server Requirements
Your server must support the required PHP version and extensions before installation can continue.
Required software and extensions:
- PHP 8.1 or higher
- OpenSSL PHP extension
- PDO PHP extension
- Mbstring PHP extension
- Tokenizer PHP extension
- XML PHP extension
- cURL PHP extension
- Zip PHP extension
- GD PHP extension
- MySQL or MariaDB database
- Apache or Nginx web server
If any requirement fails during the installer check, enable the missing extension or ask your hosting provider/server administrator to enable it.
Server Recommendation
RetailMan ERP System can be installed on localhost for testing, training, or development.
For online use, a cloud server or VPS is recommended because it gives better control over PHP, database, file permissions, and server configuration. Shared hosting can also work if it supports the required PHP version, extensions, file permissions, and URL rewriting.
For best results, install the application on a main domain or subdomain such as:
-
https://yourdomain.com -
https://pos.yourdomain.com
Avoid installing it inside deep subfolders when possible, such as:
-
https://yourdomain.com/folder/pos
Installing On Localhost
Use this method when installing on your own computer.
- Install a local server package such as XAMPP, WAMP, Laragon, or another stack that includes Apache/Nginx, PHP, and MySQL.
- Open the web root folder. For XAMPP this is usually
htdocs; for Laragon it is usuallywww. - Copy the application codebase folder into the web root.
- Rename the copied folder to a simple project name, for example
RetailMan ERP System. - Open the installer in your browser:
-
http://localhost/RetailMan ERP System/install -
http://localhost/RetailMan ERP System/public/install
-
- Review the pre-installation check screen.
- Fix any item marked as failed, then refresh the page.
- When all checks pass, continue to the next step.
- Follow the installer instructions and enter the required database, application, and administrator details.
- After installation is complete, delete the
public/installfolder.
Installing On Live Hosting
Use this method when installing on a production domain, subdomain, VPS, or shared hosting account.
- Confirm that your domain or subdomain points to the correct document root.
- Upload all application files and folders to the server document root.
- Use FTP, SFTP, SSH, cPanel File Manager, DirectAdmin File Manager, or your hosting provider's file manager.
- Open the installer in your browser:
-
https://yourdomain.com/install -
https://yourdomain.com/public/install
-
- Review the pre-installation check screen.
- Fix any failed server requirement or permission issue.
- Continue once all checks pass.
- Follow the installer steps and enter database, email, app, and administrator details.
- Wait for the installer to finish. Depending on the hosting, this can take a few minutes.
- After installation is complete, delete the
public/installfolder.
Important: Do not leave the install folder available after installation. Removing it helps protect the application from accidental or unauthorized re-installation attempts.
Installer Flow
The installer normally follows this sequence:
- Pre-installation server check
- Environment and database details
- Application settings
- Database migration and setup
- Administrator or owner account creation
- Installation success confirmation
Keep these details ready before starting:
- Database host
- Database name
- Database username
- Database password
- Application URL
- Email configuration, if required
- Administrator name, email, username, and password
Not Found After Next Step
If the installer opens but a "Not Found" error appears after clicking the next step, try opening one of these URLs:
-
https://yourdomain.com/public/install-start -
https://yourdomain.com/public/index.php/install-start
If the index.php URL works but the clean URL does not, enable mod_rewrite on Apache or configure URL rewriting on your server.
Common Installation Errors
Syntax Error
If a syntax error appears, check the PHP version first. The server must use PHP 8.1 or higher.
500 Internal Server Error
A 500 error usually means the server configuration, permissions, or PHP setup needs attention.
Check the server error log. Common fixes include:
- Set the
publicfolder permission to755. - Set
public/index.phppermission to755or a secure file permission supported by your server. - Confirm the required PHP extensions are enabled.
- Confirm the correct PHP version is selected for the domain.
Images Or Uploaded Files Not Showing
If uploaded files or images do not show after installation, check:
- The
public/uploadsfolder permission. - The configured application URL.
- The storage link, if your installation uses Laravel storage links.
- Whether the domain is loading from the correct
publicfolder.
mysqli_connect Error
If an error mentions mysqli_connect, check:
- Database host, name, username, and password.
- The MySQL or MariaDB service is running.
- The PHP MySQL extension is enabled.
- The database user has permission to access the selected database.
Access Denied For Database User
If the database returns an access denied error, give the database user the required privileges for the application database. On cPanel or similar hosting panels, assign the user to the database and grant all required permissions.
There Is No Active Transaction
If this appears during an update and the update otherwise completes successfully, review the update result and application logs. In many cases, this message does not require reinstalling the application.
Removing /public From URL
Sometimes the application may open as:
https://yourdomain.com/public/login
To remove /public from the visible URL:
- Confirm
mod_rewriteor equivalent URL rewriting is enabled. - Try opening the domain without
/public. - Check the
.envfile and updateAPP_URLso it does not include/public. - Make sure the server document root points to the application's
publicfolder where possible.
Creating .env On Windows
Windows may show "You must type a file name" when creating a file named .env.
To create it manually:
- Open File Explorer.
- Create a new text file.
- Rename it to
.env. - Windows will save it as
.env.
You can also copy .env.example and rename the copy to .env.
.env.example Missing
If .env.example is missing:
- Re-extract the original downloaded application package.
- Enable "show hidden files" or "show dotfiles" in your operating system, cPanel, FTP client, or file manager.
- Avoid copying files from a location that hides dotfiles.
If the installer says the .env file was not created, create .env in the application root and continue the installation.
After Installation
After installation:
- Open RetailMan ERP System.
- Register or create the first business, depending on your setup flow.
- Enter business details such as name, address, currency, and contact information.
- Configure tax, stock accounting, and business settings.
- Create the owner/admin login details.
- Log in using the username and password created during registration.
- Delete the
public/installfolder if it still exists. - Review Settings > Business Settings before entering live data.
If your currency is missing, add or update currencies from the currency settings area before continuing daily operations.
Installation Already Done
If the installer says installation is already complete, the application has likely detected an existing .env file.
Only remove or replace .env if you intentionally want to reinstall or connect the codebase to different database details. Be careful: changing .env can disconnect the application from its current database.