The System Health page can run compatible Composer updates for you.
If the Run Compatible Composer Updates button is disabled, PHP does not currently have write access to the required application files and directories.
Run the appropriate command for your server, replacing /var/www/ticaga if Ticaga is installed elsewhere.
Apache typically runs as the apache user:
sudo mkdir -p \
/var/www/ticaga/storage/framework/cache/composer/cache \
/var/www/ticaga/public/js/filament \
/var/www/ticaga/public/css/filament \
/var/www/ticaga/public/fonts/filament && \
sudo chown -R apache:apache \
/var/www/ticaga/composer.lock \
/var/www/ticaga/vendor \
/var/www/ticaga/storage/framework/cache/composer \
/var/www/ticaga/public/js/filament \
/var/www/ticaga/public/css/filament \
/var/www/ticaga/public/fonts/filament && \
sudo chmod -R u+rwX \
/var/www/ticaga/composer.lock \
/var/www/ticaga/vendor \
/var/www/ticaga/storage/framework/cache/composer \
/var/www/ticaga/public/js/filament \
/var/www/ticaga/public/css/filament \
/var/www/ticaga/public/fonts/filament
Apache and PHP-FPM commonly run as the www-data user:
sudo mkdir -p \
/var/www/ticaga/storage/framework/cache/composer/cache \
/var/www/ticaga/public/js/filament \
/var/www/ticaga/public/css/filament \
/var/www/ticaga/public/fonts/filament && \
sudo chown -R www-data:www-data \
/var/www/ticaga/composer.lock \
/var/www/ticaga/vendor \
/var/www/ticaga/storage/framework/cache/composer \
/var/www/ticaga/public/js/filament \
/var/www/ticaga/public/css/filament \
/var/www/ticaga/public/fonts/filament && \
sudo chmod -R u+rwX \
/var/www/ticaga/composer.lock \
/var/www/ticaga/vendor \
/var/www/ticaga/storage/framework/cache/composer \
/var/www/ticaga/public/js/filament \
/var/www/ticaga/public/css/filament \
/var/www/ticaga/public/fonts/filament
After updating permissions, reload the System Health page. The update button should become available.
To run the same type of Composer update from the command line, change to your Ticaga installation directory and run:
cd /var/www/ticaga
composer update --with-all-dependencies --no-dev --optimize-autoloader --no-interaction
Run this command as the application owner or deployment user, rather than with sudo, unless your server is specifically configured otherwise.
Security note: Allowing the web server user to write to
vendorandcomposer.lockenables web-based application dependency updates. Only enable this permission where that behavior is intended.
Feedback loop
Be the first to rate this guide.
Article snapshot
Error: Fix:
To get started, go to Administration → General Settings → Webhooks, then click Add and you’ll see this form: Open the settings for the Discor...
You can automatically close tickets that have been waiting for a customer response for more than two days by configuring the relevant department. O...