Zum Inhalt springen

Casraw

Mitglieder
  • Gesamte Inhalte

    5
  • Benutzer seit

  • Letzter Besuch

  1. 1)Ja sonst würde er direkt abbrechen bei der config. 2) ja alle benötigten Dinge laufen wie schon gesagt confixx würde sich nicht mal installieren lassen. 3) Sobald ich php5 aktiviere läuft es ohne probs muss also an php4 liegen denke ich
  2. Hallo Liebe community, bin mal wieder mit meinen Latein am ende :-( ich versuche ein Debian 5 LAMP System aufzusetzen für Confixx 3.3.6 aber mit php4.4.9 php4.4.9 habe ich folgenermasen kompiliert: ./configure --prefix=/opt/php/4.4.9 --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/opt/php/4.4.9/etc/ --enable-safe-mode --disable-ipv6 --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-crack --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-exif --enable-ftp --with-gd --with-jpeg --with-png --with-freetype --enable-gd-native-ttf --with-gettext --with-iconv --enable-mbstring --with-mcrypt --with-mhash --with-mime-magic --with-mysql --with-zlib --with-readline --enable-sockets --with-regex=php --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-xslt --with-xslt-sablot --with-expat --with-iconv --with-zip --enable-memory-limit --enable-shared=yes --enable-static=yes Nun php4 läuft auch jedenfalls nach der info.php, so nun mein rießen Problem Confixx installiert auch ohne Probleme, aber sobald ich die confixx url aufrufe erhalte ich einfach nur eine leere weiße Seite (auch keine Fehler und auch nix fehlerhaftes in den logs... ja error log ist an). Wieso ich das tue? Naja will mehrere alte php4 server (Debian 3 und 4 ) auf einen debian 5 Server zusammen legen) die Scripte müssen leider unter php4 laufen php5 kommt dabei nicht in frage. Ein weiterer versuch von mir wahr das ich versucht habe den confixx vhost als fastcgi (php5) laufen zu lassen aber nur diesen und den Rest normal per modphp, aber ist ebenfalls fehlgeschlagen. Nun die frage was habe ich falsch gemacht beim compile? Habt ihr eine Idee vll würde mir sehr weiter helfen :-) Grüße Cas
  3. Casraw

    Linux Bash Scripting

    Vor dem root check habe ich folgendes eingefügt ##config file cnf="/root/tmp/test.cnf" if [ "$METH" != "" ]; then echo "Alles gut" else BIN_GPG= PWFILE= ENC_EXT= EXEC_ENC= EXEC_DECP= EXEC_DECPF= EXEC_SHR= LEN_MAX= LEN_MIN= source /root/tmp/test.cnf fi
  4. Casraw

    Linux Bash Scripting

    So habe das "Problem nun gelöst *freu* hat zwar etwas gedauert aber ok.
  5. Hallo schreibe hier zum ersten mal, und hoffe das das Thema im richtigen Forum ist. Also (ja man fängt so nicht an ;-) ) ich bin gerade an meinen ersten bash script dran momentan sieht es so aus: #!/bin/bash SEL=$1 ## path to binaries BIN_GPG='/usr/bin/gpg' ## path to password file PWFILE="pw.txt" ## extension for crypted files ENC_EXT=".gpg" ## gpg to encrypt EXEC_ENC="gpg --force-mdc --passphrase-file $PWFILE -c " ## Decrypt with Password EXEC_DECP="gpg --decrypt --output" ## Decrypt with Password file EXEC_DECPF="gpg --decrypt --passphrase-file $PWFILE --output" ## shred EXEC_SHR="shred -un 2" ## min/max password length LEN_MAX="80" LEN_MIN="6" ## root check if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" exit; fi case $SEL in --encrypt) ENC_FILE=$3 METH=$2 ##Password check and creat password if [ -f "$PWFILE" ]; then PW=`cat $PWFILE` PW_LEN=${#PW} else echo "Keine Password Datei vorhanden -> Password wird generiert und in der pw.txt abgelegt" MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" LENGTH="70" while [ "${n:=1}" -le "$LENGTH" ] do PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}" let n+=1 done touch pw.txt echo "$PASS" >> pw.txt PW=`cat $PWFILE` PW_LEN=${#PW} fi ## check password length if [ "$PW_LEN" -gt "$LEN_MAX" ]; then echo "Password too long" exit elif [ "$PW_LEN" -lt "$LEN_MIN" ]; then echo "Password too short" exit fi ## With shred if [ "$METH" == "--shred" ]; then METH=$2 else ENC_FILE=$2 fi ## check file to encrypt and crypt if [ -f "$ENC_FILE" ]; then echo "Encrypting File: $ENC_FILE -> $ENC_FILE$ENC_EXT" $EXEC_ENC $ENC_FILE elif [ ! $ENC_FILE ]; then echo "File non existant or parameter empty" exit fi if [ -f "$ENC_FILE" ]; then echo "$ENC_FILE exist" else echo "$ENC_FILE not found -> exit" exit fi #if # ["$METH" == "--shred"; then # exec_SHRN=2 #fi #if [ "METH" == "--shred EXEC_SHRN"; then # read EXEC_SHRN #fi if [ "$METH" == "--shred" ]; then $EXEC_SHR $ENC_FILE $ENC_FILE echo "File was Delet" exit elif [ "$METH" == "" ]; then echo "Datei bleibt erhalten" exit fi ## check original file and delet with shred #if [ -f "$ENC_FILE" ]; then # echo "$ENC_FILE exist and delet with shred" # $EXEC_SHR $ENC_FILE $ENC_FILE # echo "$ENC_FILE was delet" #elif [ ! "$ENC_FILE" ]; then # echo "File wasn't deleted" # exit #fi exit ;; --decrypt) ENC_FILE=$3 DEC_FILE=$4 METH=$2 echo "Bitte Neuen Dateinamen fue die entschluesselte Datei angeben und den Pfad" read DEC_FILE if [ "$METH" == "--password" ]; then echo "Now decrypt $ENC_FILE with Password -> $DEC_FILE" $EXEC_DECP $DEC_FILE $ENC_FILE exit elif [ ! "$DEC_FILE" ]; then echo "File non existant or parameter empty, bitte --file oder --password fuer die password eingabe angeben" exit elif [ "$METH" == "" ]; then echo "Bitte --file oder --password fuer die password eingabe angeben" exit ## Decrypt with password file elif [ "$METH" == "--file" ]; then echo "Now decrypt $ENC_FILE with Password File -> $DEC_FILE" $EXEC_DECPF $DEC_FILE $ENC_FILE exit elif [ ! "$DEC_FILE" ]; then echo "File non existant or parameter empty, bitte --file oder --password fuer die password eingabe angeben" elif [ "$METH" == "" ]; then echo "Bitte --file oder --password fuer die password eingabe angeben" exit fi exit ;; *) echo "Please write --decrypt or --encrypt, " exit ;; So nun soll es so weitergehen dass das Script seine Einstellungen aus einer Config Datei ziehen soll. Ich denke ich weiß wie ich eine config Datei einbinde "source <pfad>", aber nun kommt das woran ich etwas hänge. Und zwar soll das Script wie gesagt die Daten aus einer config auslesen aber die Kommandozeile (sprich die daten so eingeben wie z.b ./test --encrypt --shred) soll trotzdem noch funktionieren. Könntet ihr mir da einen kleinen Tipp geben, oder erklären wie ich das umsetzten könnte. Danke im vor raus :-) . Grüße Cas

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...