Known issues

There are few known issues, some partially related to the project itself (to be solved at some point).

Php xml extension


This might happen when trying to install packages from composer

  • Follow this guide
    • or simply call this commands:
      • sudo apt-get install php-xml
      • sudo service apache2 restart

Php Apcu extension


This might happen when trying to rebuild the cache via ache:clear and cache:warmup

  • Call this commands:
  • sudo apt install php-apcu,
  • sudo nano /etc/php/7.4/mods-available/apcu.ini

Now this should be the content of the apcu.ini, and if it's not then add it to the file:
  • now call sudo service apache2 restart

Php gd extension

  • Call this command sudo apt-get install php7.4-gd

Can't login/sql_mode


You might be unable to login (without any errors - due to debugging off), but You need to turn off full_group_by. You need to turn it off anyway otherwise sqls in repositories won't work and dashboard will crash.

  • Follow this guide
    • or shortly, follow this information:
      • edit my.cnf
      • If on the end there is no section [mysqld] then add it and below add what they write, for example it might be:
  • Restart MySQL server sudo service mysql restart

Access denied


Might happen when running schema update. You need to create new user and give him full privileges.

  • Follow this guide
    • Or simply call this SQLs:
      • CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'user_password'
      • GRANT ALL PRIVILEGES ON database_name.* TO 'database_user'@'localhost'
  • Add created user/password to the .env

Not working pages, missing images, missing assets

Depending on the server configuration the .htaccess file might be required or might be not. For example when running the project with symfony server:start - you don't need such file, but in case of default apache configuration You do need it.

.htaccess used in demo project:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
## Cache
# 15 DAYS
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*