Der perfekte Rootserver (Support Thread)

05/28/2016 08:54 TakeThisBitch#181
Also wenn ich erst php7 und dann apache 2 installiere klappt es bei mir. :(

Gesendet von meinem C6903 mit Tapatalk
05/28/2016 18:25 Axiades#182
Auch wenn du vorher dieses Schript installiert hast ?
05/28/2016 19:29 TakeThisBitch#183
Nein. Das Script installiert ja auch kein Apache2 sondern nginx. Aber mit nginx und php7 klappt es ja. Du versuchst ja php7 mit Apache2, was auch klappt. Das Script hast du ja nicht ausgeführt, wenn du Apache2 drauf hast, oder hast du nur den "Abhärtung" Modus genommen. Also das.script editiert? Ggf kannst du ja mal Posten welches script du ausgeführt hast. Wie gesagt, ich bin leider nicht der Profi :(

Gesendet von meinem C6903 mit Tapatalk
05/28/2016 20:42 Axiades#184
Also,

Ich habe als erstes dass Script hier für Perfekt Root-Server genutzt.
Nutze auch den NGinx Webserver für die Haupt Domains usw.
und Apache2 Hatte ich für ne bestimmte HP installiert da diese nur mit Apache.

Mache jetzt aber alles nochmal neu. da ich Erst PHP7 und dann Apache2 INstallieren muss zwecks der apache2-bin.

da installiert der nämlich Apache2-bin 2.4.10 und PHP7 benötigt aber Apache2-bin 2.4.16 .. leider kann man von 2.4.10 nicht auf 2.4.16 updaten..

Daher alles neu und PHP7 nach installn und den gucken obs löuft und den Zu guter letzt Apache für meine Scripte die nur auf Apache laufn
05/28/2016 23:14 TakeThisBitch#185
Das klingt, als könnte es so funktionieren :)

Gesendet von meinem C6903 mit Tapatalk
05/29/2016 17:52 Axiades#186

so ... Fakt ist PHP7 ist und bleibt n Traum ;(
05/30/2016 07:25 TiggaStyle#187
du brauchst schon php7.0-cli , also einfach noch

apt-get install php7.0 php7.0-cli libapache2-mod-php7.0 php7.0-fpm php7.0-cgi rein hängen.

und was man noch braucht ist php7.0-mysql php7.0-imap

Wenn du alles wie im Script haben willst.
Tausche 5 durch 7.0
php5 php5-apcu php5-cli php5-common php5-common php5-curl php5-dev php5-fpm php5-geoip php5-gd php5-igbinary php5-imap php5-intl php5-mcrypt php5-mysql php5-sqlite php5-xmlrpc php5-xsl

Aber noch ne frage, welche Seite sollte denn nicht mit einem nginx laufen, dass man dafür nen apache braucht???
05/30/2016 20:11 Axiades#188

Nochmal für dich habe ich die zeile rausgesucht die Dass Problem zeigt welches ich habe.. -.-

es liegt Daran dass PHP7 ne Bestimmte apache2-bin version benötigt und ich diese nicht aktuallisiert bekomme -.-

Installiert ist
apache2-bin 2.4.10-10+deb8u1

Benötigt wird
abache2-bin 2.4.16

Also wie lässt sich dass bewerkstelligen ?
05/30/2016 20:38 Der-Eddy#189
Quote:
Originally Posted by Axiades View Post
und Apache2 Hatte ich für ne bestimmte HP installiert da diese nur mit Apache.
Gibts da nen bestimmten Grund dafür?
Es wäre wahrscheinlich einfacher Nginx auf deine Wünsche anzupassen anstatt Nginx + Apache zusammen zu nutzen

Quote:
Originally Posted by Axiades View Post
Installiert ist
apache2-bin 2.4.10-10+deb8u1

Benötigt wird
abache2-bin 2.4.16

Also wie lässt sich dass bewerkstelligen ?
Wenn du unbedingt Apache weiter nutzen willst, lad dir die entsprechende Version hier runter: [Only registered and activated users can see links. Click Here To Register...]
und kompiliere dir Apache2 selber zusammen
05/30/2016 21:03 Axiades#190
Nein du verstehst mein Problem nicht -.-

Ich WILL NGINX mit PHP7 nutzen.

Apache nutze ich nur für nen TestWebserver um einige scripte anzupassen

Nur mein Propblem besteht jetzt darin dass PHP7.0 bestimmte vorrausetungen hat.
wass anscheinend keiner Versteht.

Ich muss Apache2-bin auf die version 2.4.16 oder höher aktualisieren obwohl kein Apache installiert ist um PHP7 zu installieren ..

Ich habe mir ne test VM erstellt und bekomme die meldung 2. posts höher lies dir dass mal GENAU durch

root@mail:/etc/nginx/html/tsdns# apt-get install php7.0 php7.0-apcu php7.0-cli php7.0-common php7.0-common php7.0-curl php7.0-dev php7.0-fpm php7.0-geoip php7.0-gd php7.0-igbinary php7.0-imap php7.0-intl php7.0-mcrypt php7.0-mysql php7.0-sqlite php7.0-xmlrpc php7.0-xsl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-sqlite3' for regex 'php7.0-sqlite'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php7.0-cli : Depends: php7.0-readline but it is not going to be installed
php7.0-dev : Depends: libtool (>= 2.4.6-0.1~) but 2.4.2-1.11 is to be installed
Recommends: dh-php but it is not going to be installed
php7.0-gd : Depends: libgd3 (>= 2.1.1) but 2.1.0-5+deb8u3 is to be installed
Depends: libwebp5 (>= 0.4.3) but 0.4.1-1.2+b2 is to be installed
php7.0-intl : Depends: libicu55 (>= 55.1-1~) but it is not going to be installed
php7.0-mcrypt : Depends: libltdl7 (>= 2.4.6) but 2.4.2-1.11 is to be installed
E: Unable to correct problems, you have held broken packages.
root@mail:/etc/nginx/html/tsdns#

Egal wass ich versuche php7 lässt sich einfach nicht installieren
05/30/2016 21:58 TakeThisBitch#191
Man versucht dir hier nur zu helfen. Dein Ton wird aber zunehmend aggressiver. Wenn andere dir keine Antwort geben können die dein Problem löst, dann liegt es eventuell nicht an der Intelligenz anderer oder deren wissen sondern an der Formulierung deiner Frage bzw. Aufgabenstellung...

Nach meinem empfinden wurde Dur bereits dein Anliegen beantwortet.

Lg

Gesendet von meinem C6903 mit Tapatalk
05/30/2016 22:10 Axiades#192
Nein,

Es geht einfach nur darum dass ich Versuche auf PHP7 zu aktuallisieren aber mir nicht geholfen wird weil alle An meiner Frage vorbei lesen.

Ich habe schon mehrmals mein Problem gepostet dass sich die version PHP7 nicht installieren lässt auch nicht auf einem Frischen System.

ich habe jetzt 2 server,

einen mit Dem Script hier & Apache2
und einen NUR mit dem Script.

und auf beiden servern ist der gleiche fehler.

ich muss diese nervige Apache2-bin von version 2.4.10-xxx
auf die version 2.4.16 oder höher aktuallisieren.

und Nach meinem Empfinden ist diese frage wie ich PHP7 installiere immer noch nicht beantwortet worden weil ich es bis dato immernoch nicht hin bekommen habe.

Dass mein Ton zunehmend aggesiver wird liegt auch einfach daran dass die hilfe hier nicht subjektiv und hilfreich ist.

ich bin mit meinen Nerven einfach am Ende.

Lest doch einfach mal die Fehlermeldungen in meinen Letzten 2 posts den seht ihr wass mein Problem ist.

Ob ich jetzt Apache2 oder Nginx nutze ist doch eingentlich Scheiss egal.


Also Hier nochmal meine Frage:

Wie Installiere ich PHP7.0 per APT-GET befehl, Es Funktioniert derzeit nicht Problem im Spoiler.

Liebe Grüße
05/31/2016 07:33 TiggaStyle#193
Okay, wer will der Kriegt, über Umwege.:

Als erstes legst du dir eine Datei an: add_repository.sh oder so Inhalt:

Code:
#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
        ppa_name=`echo "$1" | cut -d":" -f2 -s`
        if [ -z "$ppa_name" ]
        then
                echo "PPA name not found"
                echo "Utility to add PPA repositories in your debian machine"
                echo "$0 ppa:user/ppa-name"
        else
                echo "$ppa_name"
                echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu xenial main" >> /etc/apt/sources.list
                apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
                key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
                apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
                rm -rf /tmp/${NAME}_apt_add_key.txt
        fi
else
        echo "Utility to add PPA repositories in your debian machine"
        echo "$0 ppa:user/ppa-name"
fi
Datei ausführbar machen chmod +x add_repository.sh
Danach das Ubuntu Repository von ondrej laden .
Code:
/add_repository.sh ppa:ondrej/apache2
, dann apt-get update, apt-get upgrade, install apache2
dann hast du den neuesten apache2 installiert. aktuelle glaube ich 2420

Jetzt kannst du dir überlegen ob du das php Repository von ondrej auch noch hinzufügst,
Code:
./add_repository.sh ppa:ondrej/php
Dann sollte deine Installation von PHP7 klappen, vielleicht nicht alles aber das meiste. irgendwie PHP7-GD hab ich nicht installiert bekommen.
Ansonsten kannst du das von got-tty nehmen got-tty.org/debian-jessie-php-7-repository , einfach in die Source list schreiben key downloaden und adden.
apt-get update, und Pakete die man braucht installieren. Bei Gottty, hatte ich nur das Problem, dass du den Apache2 von Hand sagen musst, wie und wo sich php befindet, außer du installierst libapache2-mod-php7.0, aber direkte php unterstüzung, neee sowas will keiner, weil wenn apache php fpm nutzt kann der nginx auch gleich mit drauf zugreifen :D

BTW:
nen Testserver kann man auch mit einer kopie der nginx.conf machen, und auf nem anderen Port.
Oder Zuhause in einer Virtuellen Maschine sich nen Linux installieren und da Testen.

Aber das eigentliche was du brauchst ist, das neueste vom neuesten, das geht bei Debian leider nicht. Was du machen könntest, wäre auf einem Testgerät/TestServer/zuhause, auf Debian Testing updaten, da sind neuere Pakete Enthalten.
06/01/2016 09:32 TakeThisBitch#194
Ich würde gerne nochmal auf mein Problem mit dem SFTP zurückkommen:
[Only registered and activated users can see links. Click Here To Register...]

Leider konnte ich noch keine Lösung finden. Hat jemand eine Idee, wieso man den zum laufen bekommt?

Mir ist aufgefallen, dass wenn ich die Ports öffne, also so:
Code:
OPEN_TCP="xxx, 25, 80, 110, 143, 443, 465, 587, 993, 995, 20, 21, 22"
Die Ports auch auch dem neustart von Arno IP Tables geschlossen sind. Zumindest nach:
[Only registered and activated users can see links. Click Here To Register...]

178.32.159.173 Port 20,21,22 sollten jetzt offen sein.
Port 587,25,80 etc sind alle offen.


Auf der offiziellen Seite steht im Punkt "C" als Beispiel die Angavbe der Ports ohne ",":
[Only registered and activated users can see links. Click Here To Register...]
Code:
c) Now we configure what ports should be open for the outside world. If you
      eg. are running an HTTP-server(port 80), an SSH-server(port 22), and/or
      an FTP-server (port 21) which should be accessible from the internet you
      should configure the OPEN_TCP / OPEN_UDP variables like this:
      OPEN_TCP="21 22 80"
      OPEN_UDP=""
Klappt aber genauso wenig.


Weiteres Mysterium:
Code:
arno-iptables-firewall restart
Ergibt das:
Code:
root@mail:~# arno-iptables-firewall restart
Arno's Iptables Firewall Script v2.0.1g-DEVEL
-------------------------------------------------------------------------------
Platform: Linux 3.16.0-4-amd64 x86_64
Stopping (user) plugins...
 Unloaded 0 plugin(s)...
Checking/probing Iptables modules:
 Loaded kernel module ip_tables.
 Loaded kernel module nf_conntrack.
 Loaded kernel module nf_conntrack_ftp.
 Loaded kernel module xt_conntrack.
 Loaded kernel module xt_limit.
 Loaded kernel module xt_state.
 Loaded kernel module xt_multiport.
 Loaded kernel module iptable_filter.
 Loaded kernel module iptable_mangle.
 Loaded kernel module ipt_REJECT.
 Loaded kernel module xt_LOG.
 Loaded kernel module xt_TCPMSS.
 Loaded kernel module iptable_nat.
 Module check done...
Configuring general kernel parameters:
 Setting the max. amount of simultaneous connections to 16384
  net.nf_conntrack_max = 16384
  net.netfilter.nf_conntrack_udp_timeout = 60
  net.netfilter.nf_conntrack_acct = 1
Configuring kernel parameters:
 Disabling send redirects
  net.ipv4.conf.all.send_redirects = 0
  net.ipv4.conf.default.send_redirects = 0
  net.ipv4.conf.eth0.send_redirects = 0
  net.ipv4.conf.lo.send_redirects = 0
 Enabling protection against source routed packets
  net.ipv4.conf.all.accept_source_route = 0
  net.ipv4.conf.default.accept_source_route = 0
  net.ipv4.conf.eth0.accept_source_route = 0
  net.ipv4.conf.lo.accept_source_route = 0
  net.ipv4.icmp_echo_ignore_broadcasts = 1
  net.ipv4.icmp_ignore_bogus_error_responses = 1
 Enabling packet forwarding
  net.ipv4.conf.all.forwarding = 1
  net.ipv4.conf.default.forwarding = 1
  net.ipv4.conf.eth0.forwarding = 1
  net.ipv4.conf.lo.forwarding = 1
 Setting some kernel performance options
  net.ipv4.tcp_window_scaling = 1
  net.ipv4.tcp_timestamps = 1
  net.ipv4.tcp_sack = 1
  net.ipv4.tcp_dsack = 1
  net.ipv4.tcp_fack = 1
  net.ipv4.tcp_low_latency = 0
 Enabling reduction of the DoS'ing ability
  net.ipv4.tcp_fin_timeout = 30
  net.ipv4.tcp_keepalive_time = 1800
  net.ipv4.tcp_syn_retries = 3
  net.ipv4.tcp_synack_retries = 2
  net.ipv4.tcp_rfc1337 = 1
  net.ipv4.ip_local_port_range = 32768 61000
 Enabling SYN-flood protection via SYN-cookies
  net.ipv4.tcp_syncookies = 1
 Enabling strict anti-spoof with rp_filter
  net.ipv4.conf.all.rp_filter = 1
  net.ipv4.conf.default.rp_filter = 1
  net.ipv4.conf.eth0.rp_filter = 1
  net.ipv4.conf.lo.rp_filter = 1
  net.ipv4.icmp_echo_ignore_all = 0
 Disabling the logging of martians
  net.ipv4.conf.all.log_martians = 0
  net.ipv4.conf.default.log_martians = 0
  net.ipv4.conf.eth0.log_martians = 0
  net.ipv4.conf.lo.log_martians = 0
 Disabling the acception of ICMP-redirect messages
  net.ipv4.conf.all.accept_redirects = 0
  net.ipv4.conf.default.accept_redirects = 0
  net.ipv4.conf.eth0.accept_redirects = 0
  net.ipv4.conf.lo.accept_redirects = 0
 Disabling ECN (Explicit Congestion Notification)
  net.ipv4.tcp_ecn = 0
 Disabling kernel support for dynamic IPs
  net.ipv4.ip_dynaddr = 0
 Enabling PMTU discovery
  net.ipv4.ip_no_pmtu_disc = 0
 Setting default TTL=64
  net.ipv4.ip_default_ttl = 64
 Flushing route table
  net.ipv4.route.flush = 1
 Kernel setup done...
Reinitializing firewall chains
 Setting all default policies to DROP while "setting up firewall rules"
IPv4 mode selected but IPv6 available, DROP all IPv6 packets
Blocking (blackhole) direction: Inbound and Outbound
(Re)loading list of BLOCKED hosts from /etc/arno-iptables-firewall/blocked-hosts...
 0%.........20%.........40%.........60%.........80%.........100%.........32015 host line(s) read
Using loglevel "info" for syslogd

Setting up firewall rules:
-------------------------------------------------------------------------------
Enabling setting the maximum packet size via MSS
Logging of stealth scans (nmap probes etc.) enabled
Logging of packets with bad TCP-flags enabled
Logging of INVALID TCP packets disabled
Logging of INVALID UDP packets disabled
Logging of INVALID ICMP packets disabled
Logging of fragmented packets enabled
Logging of access from reserved nets disabled
Reading custom rules from /etc/arno-iptables-firewall/custom-rules
Checking for (user) plugins in /usr/local/share/arno-iptables-firewall/plugins...
 Loaded 0 plugin(s)...
Setting up external(INET) INPUT policy
 Logging of ICMP flooding enabled
 Logging of explicitly blocked hosts enabled
 Logging of denied local output connections enabled
 Packets will NOT be checked for reserved source addresses
 Enabling protection against DRDOS-abuse
 Allowing ANYHOST for TCP port(s): 25,
 Allowing ANYHOST for TCP port(s): 80,
 Allowing ANYHOST for TCP port(s): 110,
 Allowing ANYHOST for TCP port(s): 143,
 Allowing ANYHOST for TCP port(s): 443,
 Allowing ANYHOST for TCP port(s): 465,
 Allowing ANYHOST for TCP port(s): 587,
 Allowing ANYHOST for TCP port(s): 993,
 Allowing ANYHOST for TCP port(s): 995,
 Allowing ANYHOST for TCP port(s): 21,
 Allowing ANYHOST for TCP port(s): 22
 Allowing ANYHOST to send IPv4 ICMP-requests (ping)
 Logging of possible stealth scans enabled
 Logging of (other) packets to PRIVILEGED TCP ports enabled
 Logging of (other) packets to PRIVILEGED UDP ports enabled
 Logging of (other) packets to UNPRIVILEGED TCP ports enabled
 Logging of (other) packets to UNPRIVILEGED UDP ports enabled
 Logging of IGMP packets enabled
 Logging of dropped ICMP-request(ping) packets enabled
 Logging of dropped other ICMP packets enabled
 Logging of other IP protocols (non TCP/UDP/ICMP/IGMP) packets enabled
Setting up external(INET) OUTPUT policy
Applying external(INET) policy to interface: eth0Security is ENFORCED for external interface(s) in the FORWARD chain
 Logging of dropped FORWARD packets enabled

Jun 01 12:13:55 All firewall rules applied.
Auch dann, wenn ich das "," in der conf wegnehme, ist das Ergebis das gleiche. Sieht dann halt nur so aus:
Code:
 Allowing ANYHOST for TCP port(s): 25
 Allowing ANYHOST for TCP port(s): 80
 Allowing ANYHOST for TCP port(s): 110
 Allowing ANYHOST for TCP port(s): 143
 Allowing ANYHOST for TCP port(s): 443
 Allowing ANYHOST for TCP port(s): 465
 Allowing ANYHOST for TCP port(s): 587
 Allowing ANYHOST for TCP port(s): 993
 Allowing ANYHOST for TCP port(s): 995
 Allowing ANYHOST for TCP port(s): 21
 Allowing ANYHOST for TCP port(s): 22
Die Frage nach dem FTP ist also: Wie öffne ich einen Port?
06/01/2016 13:15 TiggaStyle#195
Das ist doch richtig so,
in der /etc/arno-iptables-firewall/firewall.conf einfach noch die 21, eintragen.
OPEN_TCP="21, 22, 80, 443"
dann ist der Port zum verbinden offen. Vllt noch Port 20.
Was passiert denn wenn du dich nun Verbinden willst, steht was im Log, was sagt Filezilla?

Was mit noch einfällt, haste mal zwischen Passiv und Aktives FTP im Client gewechselt?