Http 500 error when installing OSPOS on a web hosting
LinaYorda opened this issue · comments
Background information
IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.
Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:
- Reporting an issue of an unmodified OSPOS installation
- Checked open and closed issues and no similar issue was already reported (please make sure you searched!)
- Read README, WHATS_NEW, INSTALL.md and UPGRADE
- Read the FAQ for any known install and/or upgrade gotchas (in specific PHP extensions installed)
- Read the wiki
- Executed any database upgrade scripts if an upgrade pre 3.0.0 (e.g. database/2.4_to_3.0.sql)
- Aware the installation code that GitHub master is for developers only and therefore not complete nor stable.
Installation information
- OSPOS version is: 3.3.8
- OSPOS git commit hash is: ffe4927
- PHP version is: 7.4
- MySQL or MariaDB version is: MySQL 5.5
- OS and version is: macOS Sonoma
- WebServer is: Apache
- Selected language is: English
- (If applicable) Docker installation:
- (If applicable) Installation package for the LAMP/LEMP stack is:
Question
After installing OSPOS on a web hosting (Hetzner) I get an http 500 error and the login mask does not show up.
I have added a rewrite rule with the correct path to /public/.htaccess
RewriteRule ^(.*)$ /ospos_338/public/index.php?/$1 [L]
All mandatory PHP modules are present on the Hetzner server.
When enabling login, I get the following log-output:
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2023-12-21 16:13:18 --> Severity: Warning --> require(/usr/www/users/transvy/Appetito/ospos_338/vendor/composer/../symfony/polyfill-ctype/bootstrap.php): failed to open stream: No such file or directory /usr/www/users/transvy/Appetito/ospos_338/vendor/composer/autoload_real.php 66
ERROR - 2023-12-21 16:13:18 --> Severity: Compile Error --> require(): Failed opening required '/usr/www/users/transvy/Appetito/ospos_338/vendor/composer/../symfony/polyfill-ctype/bootstrap.php' (include_path='.:/usr/local/lib/php/') /usr/www/users/transvy/Appetito/ospos_338/vendor/composer/autoload_real.php 66
ERROR - 2023-12-21 16:13:19 --> Severity: Warning --> require(/usr/www/users/transvy/Appetito/ospos_338/vendor/composer/../symfony/polyfill-ctype/bootstrap.php): failed to open stream: No such file or directory /usr/www/users/transvy/Appetito/ospos_338/vendor/composer/autoload_real.php 66
ERROR - 2023-12-21 16:13:19 --> Severity: Compile Error --> require(): Failed opening required '/usr/www/users/transvy/Appetito/ospos_338/vendor/composer/../symfony/polyfill-ctype/bootstrap.php' (include_path='.:/usr/local/lib/php/') /usr/www/users/transvy/Appetito/ospos_338/vendor/composer/autoload_real.php 66
Is there anything I need to setup in addition to database credentials and the rewrite-rule in order to make it work?
Thanks!
Update: the problem was due to a wrong redirection. Fixed now!