If you call a bash script from a php one, be sure that you have the correct permissions. To grant them, you could have to do this command:
setfacl -m u:www-data:rwx /the/path/where/you/have/to/exec/bash
a thoughtful use of digital
If you call a bash script from a php one, be sure that you have the correct permissions. To grant them, you could have to do this command:
setfacl -m u:www-data:rwx /the/path/where/you/have/to/exec/bash
Metodo 2: Da Terminale (Linea di comando)
/dev/sdb o /dev/sdc):lsblk/dev/sdX1 withe the real name of your device): sudo umount /dev/sdX1 sudo mkfs.vfat /dev/sdX1 sudo mkfs.exfat /dev/sdX1 sudo mkfs.ntfs /dev/sdX1sudo mkfs.ext4 /dev/sdX1If after a major upgrade (typically to a new LTS release) your maridb local server doesn’t work any more, it could be a problem of AppArmor settings.
To solve it you can try with
sudo nano /etc/apparmor.d/tunables/alias
and then, add the end of that file
alias /var/lib/mysql/ -> /your/mysql-data/path/,
and then
sudo systemctl reload apparmor
and
sudo systemctl start mariadb