Defektes PHP-Upgrade
315
zJorge
Ich habe vor kurzem PHP durch Homebrew aktualisiert. Bei Verwendung des Terminalbefehls PHP -i
bekomme ich PHP Version => 7.2.2
wie erwartet. Wenn phpinfo();
ich jedoch auf localhost laufe, bekomme ich stattdessen PHP Version 5.6.30 .
Ich habe bereits Apache ( $ sudo apachectl -k restart
) neu gestartet, php56 ( $ brew unlink php56
) nicht verbunden und die Ports: 80 und: 8080 ausprobiert.
Was vermisse ich? Wie kann ich php56 lokalisieren und vollständig deinstallieren?
edit: @PatrickMevzek Von localhost / phpinfo ...
Apache Version Apache/2.4.28 (Unix) PHP/5.6.30 Apache API Version 20120211 Hostname:Port 127.0.0.1:0 User/Group _www(70)/70 Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100 Timeouts Connection: 60 - Keep-Alive: 5 Virtual Server No Server Root /usr Loaded Modules core mod_so http_core prefork mod_authn_file mod_authn_core mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_core mod_access_compat mod_auth_basic mod_reqtimeout mod_include mod_filter mod_mime mod_log_config mod_env mod_headers mod_setenvif mod_version mod_slotmem_shm mod_unixd mod_status mod_autoindex mod_negotiation mod_dir mod_userdir mod_alias mod_rewrite mod_php5 mod_hfs_apple2
Vom Terminal PHP -i
PHP Version => 7.2.2 System => Darwin zJorgeMBP.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64 Build Date => Feb 1 2018 11:46:13 Configure Command => './configure' '--prefix=/usr/local/Cellar/php72/7.2.2_13' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/7.2' '--with-config-file-path=/usr/local/etc/php/7.2' '--with-config-file-scan-dir=/usr/local/etc/php/7.2/conf.d' '--mandir=/usr/local/Cellar/php72/7.2.2_13/share/man' '--enable-bcmath''--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-mbregex' '--enable-mbstring' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zip' '--with-freetype-dir=/usr/local/opt/freetype' '--with-gd' '--with-gettext=/usr/local/opt/gettext' '--with-iconv-dir=/usr' '--with-icu-dir=/usr/local/opt/icu4c' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-kerberos=/usr' '--with-mhash' '--with-ndbm=/usr' '--with-png-dir=/usr/local/opt/libpng' '--with-xmlrpc' '--with-zlib=/usr' '--with-readline=/usr/local/opt/readline' '--without-gmp' '--without-snmp' '--with-libxml-dir=/usr/local/opt/libxml2' '--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc' '--with-unixODBC=/usr/local/opt/unixodbc' '--with-bz2=/usr' '--with-openssl=/usr/local/opt/openssl' '--enable-fpm' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-curl' '--with-xsl=/usr' '--with-ldap' '--with-ldap-sasl=/usr' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--disable-opcache' '--enable-pcntl' '--without-pear' '--enable-dtrace' '--disable-phpdbg' '--enable-zend-signals' '--with-sodium=/usr/local/opt/libsodium' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/etc/php/7.2 Loaded Configuration File => /usr/local/etc/php/7.2/php.ini Scan this dir for additional .ini files => /usr/local/etc/php/7.2/conf.d Additional .ini files parsed => (none) PHP API => 20170718 PHP Extension => 20170718 Zend Extension => 320170718 Zend Extension Build => API320170718,NTS PHP Extension Build => API20170718,NTS Debug Build => no Thread Safety => disabled Zend Signal Handling => enabled Zend Memory Manager => enabled Zend Multibyte Support => provided by mbstring IPv6 Support => enabled DTrace Support => available, disabled
und von httpd -t -D DUMP_RUN_CFG
ServerRoot: "/usr/local/opt/httpd" Main DocumentRoot: "/usr/local/var/www" Main ErrorLog: "/usr/local/var/log/httpd/error_log" Mutex default: dir="/usr/local/var/run/httpd/" mechanism=default Mutex mpm-accept: using_defaults PidFile: "/usr/local/var/run/httpd/httpd.pid" Define: DUMP_RUN_CFG User: name="_www" id=70 not_used Group: name="_www" id=70 not_used
Zeigen Sie Ihre Apache-Konfiguration in Bezug auf PHP.
Patrick Mevzek vor 6 Jahren
0
Sicher @PatrickMevzek. Ich bearbeitete die Apache-Konfiguration aus beiden Versionen.
zJorge vor 6 Jahren
0
Prüfen Sie `/ usr / local / etc / apache2 / 2.4 / httpd.conf` und sehen Sie, was der Wert des PHP-Moduls ist. Es ist wahrscheinlich "LoadModule php5_module / usr / local / opt / php54 / libexec / apache2 / libphp5.so", wenn es etwas wie "LoadModule php7_module / usr / local / opt / php72 / libexec / apache2 / libphp7.so" sein sollte. Schauen Sie im Grunde in / usr / local / opt / und passen Sie dann den Wert in / usr / local / etc / apache2 / 2.4 / httpd.conf an.
JakeGould vor 6 Jahren
0
@JakeGould tippt "httpd -V" und erhalte "-D SERVER_CONFIG_FILE =" / usr / local / etc / httpd / httpd.conf "" anstelle von "/ usr / local / etc / apache2 / 2.4 / httpd.conf". Also habe ich httpd.conf geöffnet, aber es gibt kein phpX_module, weder 5 noch 7.
zJorge vor 6 Jahren
0
0 Antworten auf die Frage
Verwandte Probleme
-
4
Gutes freies Ubuntu Server-VMWare-Image benötigt
-
1
Apache Reverse Proxy
-
3
Ubuntu Server mit GNOME Desktop Envinronment - Einstellen der Apatche-Konfigurationsdateiberechtigun...
-
8
Wie kann ich allen Benutzern in Linux Schreibzugriff auf einen Ordner gewähren?
-
5
Gibt es einen * guten * HTML-Modus für Emacs?
-
1
Apache2-Fehlerprotokoll
-
4
Wie installiere ich Softwarepakete auf einem Mac? (MacPorts, Fink, etwas besseres?)
-
4
Überprüfen, welche PHP-Version ich unter Linux laufe?
-
2
Mac OS X-Bash: Deinstallieren Sie alle Apache- und PHP-Vorfälle
-
1
Installation von PHP5.3 unter Windows Vista x64 mit IIS7