Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Site Creation Failure, Initial Setup

Dannyon Dannyon   ( User )

Commented 2 months ago

I'm having issues getting Akaunting set up with IIS. IIS is unable to use the default documents, such as "web.config". I've ensured that it isn't a permissions issue, but I'm not hugely familiar with IIS.

I've seen this as an issue in a few posts, but no real resolution.

Cüneyt Şentürk   ( Admin )

Commented 1 month ago

Akaunting, an open-source accounting software, can be installed on IIS (Internet Information Services) by following these steps:

### Prerequisites:
1. **Windows Server with IIS Installed**: Ensure that IIS is installed and configured on your Windows Server.
2. **PHP**: Akaunting requires PHP. Install the appropriate version of PHP for IIS.
3. **MySQL/MariaDB**: Akaunting uses a MySQL or MariaDB database.

### Steps:

1. **Download Akaunting**:
- Visit the [Akaunting website](https://akaunting.com/download) and download the latest version of Akaunting.

2. **Extract Akaunting Files**:
- Extract the downloaded Akaunting zip file to a directory on your server, e.g., `C:\inetpub\wwwroot\akaunting`.

3. **Set Up IIS**:
- Open IIS Manager.
- Right-click on `Sites` and select `Add Website`.
- Set the `Site name` (e.g., `Akaunting`), `Physical path` (e.g., `C:\inetpub\wwwroot\akaunting`), and configure the `Host name` if required.
- Click `OK` to create the site.

4. **Configure PHP for IIS**:
- Download and install the PHP Manager for IIS from the [Microsoft Web Platform Installer](https://www.microsoft.com/web/downloads/platform.aspx).
- Open PHP Manager from IIS Manager.
- Register the correct PHP version by selecting `Register new PHP version`.
- Ensure the necessary PHP extensions are enabled, such as `mysqli`, `pdo_mysql`, and `mbstring`.

5. **Set Folder Permissions**:
- Ensure that the IIS user (e.g., `IUSR` or `ApplicationPoolIdentity`) has write permissions to the `storage`, `bootstrap/cache`, `public/uploads`, and `resources/lang` folders within the Akaunting directory.

6. **Create a Database**:
- Use MySQL/MariaDB tools like phpMyAdmin, MySQL Workbench, or command line to create a new database for Akaunting.
- Create a user for the database and grant it appropriate permissions.

7. **Configure Akaunting**:
- Open a web browser and navigate to the domain or IP address of your Akaunting site.
- Follow the on-screen installation instructions.
- Enter the database details you configured earlier.
- Complete the rest of the setup by following the prompts.

8. **Configure PHP Settings (Optional but Recommended)**:
- Adjust `php.ini` settings as recommended by Akaunting, such as increasing `memory_limit`, `upload_max_filesize`, and `post_max_size`.

### Example Configuration Details:

- **Site Name**: Akaunting
- **Physical Path**: `C:\inetpub\wwwroot\akaunting`
- **Database Name**: akaunting_db
- **Database User**: akaunting_user
- **Database Password**: your_password

### Troubleshooting:
- Ensure that the PHP extension `pdo_mysql` is enabled.
- Verify folder permissions if you encounter issues with file writing.
- Check the IIS logs and PHP error logs for any errors if the installation does not proceed as expected.

By following these steps, you should be able to successfully install and run Akaunting on your IIS server.

Please login or register to leave a response.

Showing 1 to 2 of 2 discussions