You are not logged in.
Well, I hate to say this.
But the default apache configuration won't work on my end.
Here's the specific error I get:
apachectl[593]: AH00526: Syntax error on line 13 of /etc/apache2/sites-enabled/glpi.conf
apachectl[593]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
apachectl[590]: apachectl[590]: Action 'graceful' failed.
apachectl[590]: The Apache error log may have more information.
The error log has nothing, by the way.
Here's the default config - mine's the same save for the ServerName. Yes, it's enabled.
<VirtualHost *:80>
ServerName glpi.localhost
DocumentRoot /var/www/glpi/public
# If you want to place GLPI in a subfolder of your site (e.g. your virtual host is serving multiple applications),
# you can use an Alias directive:
# Alias "/glpi" "/var/www/glpi/public"
<Directory /var/www/glpi/public>
Require all granted
RewriteEngine On
# Redirect all requests to GLPI router, unless file exists.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
</VirtualHost>
I extracted the latest glpi tar into /var/www. Group "www-data" has access to /var/www/glpi and it's subdirectories.
I've installed all kind of php modules and even some I didn't need - here's the enabled ones:
$:/var/www# ls /etc/apache2/mods-enabled/
access_compat.load authn_core.load authz_user.load deflate.load filter.load mpm_prefork.load php8.2.load setenvif.load
alias.conf authn_file.load autoindex.conf dir.conf mime.conf negotiation.conf reqtimeout.conf status.conf
alias.load authz_core.load autoindex.load dir.load mime.load negotiation.load reqtimeout.load status.load
auth_basic.load authz_host.load deflate.conf env.load mpm_prefork.conf php8.2.conf setenvif.conf
So, I'm sure I could make my instance "work" by removing the rewrites, but I guess they're here for a reason.
So what's my problem?
Offline
Your Apache installation is missing the rewrite module (or it is not enabled, which is the most likely case).
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline