Known issues
There are few known issues, some partially related to the project itself (to be solved at some point).
Php xml extension
note
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
- or simply call this commands:
Php Apcu extension
note
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
note
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: sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
- edit
- or shortly, follow this information:
- Restart MySQL server
sudo service mysql restart
Access denied
note
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'
- Or simply call this SQLs:
- 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: