PNG IHDR wSȚ -tEXtComment Nxplo
| Server IP : 144.76.1.235 / Your IP : 216.73.216.244 Web Server : Apache/2.4.52 (Ubuntu) System : Linux einkaufsring.com 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.16 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/shop.einkaufsring.com/ |
Upload File : |
#!/bin/bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
WEB_USER="www-data"
echo ">>> Stopping PHP services (ignore errors if not running)"
systemctl stop apache2 2>/dev/null || true
systemctl stop php8.3-fpm 2>/dev/null || true
echo ">>> Cleaning caches & DI"
rm -rf "$ROOT/var/cache/"* "$ROOT/var/page_cache/"* "$ROOT/var/view_preprocessed/"* \
"$ROOT/var/di/"* "$ROOT/generated/"*
echo ">>> Fixing ownership/permissions"
chown -R $WEB_USER:$WEB_USER "$ROOT"
find "$ROOT/var" "$ROOT/generated" "$ROOT/pub/static" -type d -exec chmod 775 {} \;
find "$ROOT/var" "$ROOT/generated" "$ROOT/pub/static" -type f -exec chmod 664 {} \;
echo ">>> Composer autoload dump"
composer dump-autoload -o
echo ">>> Compiling DI as $WEB_USER"
sudo -u $WEB_USER php "$ROOT/bin/magento" setup:di:compile
echo ">>> Flushing cache"
sudo -u $WEB_USER php "$ROOT/bin/magento" cache:flush
echo ">>> Starting PHP services"
systemctl start apache2 2>/dev/null || true
systemctl start php8.3-fpm 2>/dev/null || true
echo ">>> Done. Check that Proxy exists:"
ls -l "$ROOT/generated/code/Magento/Framework/App/ResourceConnection/Proxy.php" || true