Skip to content

Error 500 on fresh Install #4746

Open
Open

Description

@saurabh261187

I have tried to setup the latest version of Ospos 3.4.2 on my Linode. The system specs are as follows :

Operating system Ubuntu Linux 24.04.5
Apache version 2.4.58
PHP versions 8.3.6
MariaDB version 10.11.14

All recommended php extentions are enabled as per the install.md file. The file permissions are as per below :

Image

I have setup the database and set the credentials in .env file and followed all instructions as specified. I am failing to understand despite repeated attempts to the get the new version working, where is the issue .. ?

Can someone please handhold me on this ?

Activity

  1. saurabh261187 commented on Oct 11, 2026

    @saurabh261187
    Author

    Also, can someone also guide me how can I see the error log to get a better picture about this ..

  2. jekkos commented on Oct 11, 2026

    @jekkos
    Member

    To get the error log you need to create the .env file from .env.example and set the CI mode to development if it is set to production

  3. saurabh261187 commented on Oct 12, 2026

    @saurabh261187
    Author

    It is set to development. Where can I see the error log ? I am just getting this on screen :

    Image
  4. jekkos commented on Oct 12, 2026

    @jekkos
    Member

    We have a one line install script also, maybe you can try it out, but need to start from a fresh setup

  5. saurabh261187 commented on Oct 12, 2026

    @saurabh261187
    Author

    4. We have a one line install script also, maybe you can try it out, but need to start from a fresh setup

    Do you mean using docker ?

  6. saurabh261187 commented on Oct 12, 2026

    @saurabh261187
    Author

    2. To get the error log you need to create the .env file from .env.example and set the CI mode to development if it is set to production

    Where can I see the error log ?

  7. odiea commented on Oct 12, 2026

    @odiea
    Collaborator

    If you have logging setup you should be able to go to writable/logs and find them there.

  8. saurabh261187 commented on Oct 13, 2026

    @saurabh261187
    Author
    <title>403 Forbidden</title>

    Directory access is forbidden.

    This is the output of error log .

  9. saurabh261187 commented on Oct 13, 2026

    @saurabh261187
    Author

    Any other way to get to real error ? I am trying to get to the bottom of this coz I am facing this issue from a long time. I am using Virtualmin. Can that be an issue ?

  10. objecttothis commented on Oct 24, 2026

    @objecttothis
    Member

    Claude Issue Checker Agent (cc @objecttothis)

    Investigated against current master.

    Status: Cannot confirm resolved or present — insufficient diagnostic detail to identify a specific code defect.

    This issue is a user-support thread for a generic "Error 500 on fresh install" (OSPOS 3.4.2, Ubuntu 24.04 / Apache 2.4.58 / PHP 8.3.6 / MariaDB 10.11.14). The discussion never surfaces an actual PHP stack trace or writable/logs entry — the reporter only got a generic Apache "403 Forbidden: Directory access is forbidden" page when trying to browse the logs directory directly (expected behavior, not the real error), and the thread ends without a resolution or root cause identified.

    Without a specific error message, stack trace, or code path to check, I can't point to a concrete line in master that is or isn't fixed. This looks like an environment/webserver-configuration support case (e.g. .htaccess/rewrite or permissions issue specific to this host) rather than a reproducible code bug with a clear fix location. I'd recommend closing this as needing more information, or asking the reporter to share the actual contents of a writable/logs/*.log file (not a directory listing) before further code-level investigation is possible.

  11. saurabh261187 commented on Oct 24, 2026

    @saurabh261187
    Author

    What are the required file permissions ?

  12. objecttothis commented on Oct 24, 2026

    @objecttothis
    Member

    11. What are the required file permissions ?

    Generally 644 for files and 755 for folders. However writable must be able to be written to by the server if you want to have logs written. You'll need to post the relevant portion of your php error.log and apache error log in order to figure out what is causing the issue.

    Make sure that you went through all the steps in https://github.com/opensourcepos/opensourcepos/wiki/Getting-Started-installations for your server. Make sure that apache is properly serving a basic php page. you can do this by creating a php file with <?php phpinfo(); ?> as it's contents and opening that file in the browser. If that too gives you a Server 500 error then it's highly likely to be a server configuration error.

    Also go to https://github.com/opensourcepos/opensourcepos/wiki/Minimum-Server-Requirements and make sure your PHP installation has all the required components enabled.

  13. objecttothis commented on Oct 30, 2026

    @objecttothis
    Member

    @saurabh261187 were you able to get this sorted out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions