So, hab nun auf apache 2.4 upegradet. Problem, ich versuche seit 2 Stunden PHP zum Laufen zu bewegen, aber es tut sich nichts. Hab mir auch die Wikibeiträge draüber angesehen. Sollte passen, oder gibt es jetzt was komplett neues? Da gibt es ja noch dieses php-fpm, weiters sollte es eine Datei geben: "/etc/apache2/modules.d/70_mod_php5.conf". Die hab ich auch nicht. Ansonsten sieht es so aus:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
|
www-servers/apache-2.4.16
(ldap ssl threads -alpn -debug -doc -selinux -static -suexec APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic
negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias -access_compat -asis -auth_digest
-authn_dbd -authz_dbd -cache_disk -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -lbmethod_bybusyness
-lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic -macro -proxy -proxy_ajp -proxy_balancer
-proxy_connect -proxy_fcgi -proxy_ftp -proxy_http -proxy_scgi -proxy_wstunnel -ratelimit -remoteip -reqtimeout -slotmem_shm
-substitute -version" APACHE2_MPMS="worker -event -peruser -prefork")
|
In der make.conf steht dann noch folgendes:
|
Quellcode
|
1
2
3
|
PHP_TARGETS="php5-6"
PHP_INI_VERSION="production"
APACHE2_MPMS="worker"
|
Und die der /etc/conf.d/apache2 steht folgendes:
|
Quellcode
|
1
|
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5 -D NAGIOS -D PYTHON -D PNP -D AUTHNZ_LDAP -D LDAP -D PERL"
|
Wobei ich bei sämtlichen Einträgen schon jede Menge herumexeperimentiert habe.
Und das Teil läuft ganz normal... aber erst nachdem ich /etc/apache2 komplett neu machen ließ. Da was zum Ausbessern war sinnlos, da passte ja überhaupt keine Syntax mehr.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib64/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Do 2015-09-03 22:35:09 CEST; 7min ago
Process: 19728 ExecStop=/usr/sbin/apache2 $APACHE2_OPTS -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 19741 (apache2)
CGroup: /system.slice/apache2.service
├─19741 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5 -D NAGIOS -D PYTHON -D PNP -D AUTHNZ_LDA...
├─19742 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5 -D NAGIOS -D PYTHON -D PNP -D AUTHNZ_LDA...
├─19743 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5 -D NAGIOS -D PYTHON -D PNP -D AUTHNZ_LDA...
└─19744 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5 -D NAGIOS -D PYTHON -D PNP -D AUTHNZ_LDA...
Sep 03 22:35:09 itmgmt systemd[1]: Started The Apache HTTP Server.
|
Also wie kann ich nun das PHP aktivieren? Bin sehr sehr neuigirig, denn auf herkömmlichen Wege scheint es ja nicht zu tun.
|
Quellcode
|
1
2
3
|
eselect php list apache2
[1] php5.5
[2] php5.6 *
|
lg boospy