Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Ohjelmointi, palvelimet ja muu edistyneempi käyttö => Aiheen aloitti: JA5U - 19.06.17 - klo:00.31
-
Moi
Apachen tarjoilema phpinfo ilmoittaa aina PHPn versioksi 7.
Olen asentanut nuo php5.6 apache moduulit ja poistanut 7 konffit , käynnistänyt apachen uusiksi ja tarksitanut version myös php cli avulla.
Kaikkialla muualla on 5.6, mutta apachessa edelleen 7.
-
Mitä sanoo:
dpkg -l | grep php
-
Mitä sanoo:
dpkg -l | grep php
$ dpkg -l | grep php
ii dh-php 0.27+deb.sury.org~xenial+1 all debhelper add-on to handle PHP PECL extensions
ii libapache2-mod-php5.6 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-bcmath 1:7.0+35ubuntu6 all Bcmath module for PHP [default]
ii php-common 1:35ubuntu6 all Common files for PHP packages
ii php-fpm 1:7.0+35ubuntu6 all server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
ii php-gd 1:7.0+35ubuntu6 all GD module for PHP [default]
ii php-gettext 1.0.11-2build1 all read gettext MO files directly, without requiring anything other than PHP
ii php-mbstring 1:7.0+35ubuntu6 all MBSTRING module for PHP [default]
ii php-mcrypt 1:7.0+35ubuntu6 all libmcrypt module for PHP [default]
ii php-mysql 1:7.0+35ubuntu6 all MySQL module for PHP [default]
ii php-pear 1:1.10.1+submodules+notgz-6 all PEAR Base System
ii php-phpseclib 2.0.1-1build1 all implementations of an arbitrary-precision integer arithmetic library
ii php-tcpdf 6.0.093+dfsg-1ubuntu1 all PHP class for generating PDF files on-the-fly
ii php-xml 1:7.0+35ubuntu6 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php5.6 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 all server-side, HTML-embedded scripting language (metapackage)
ii php5.6-cli 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language
ii php5.6-common 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php5.6-dev 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 Files for PHP5.6 module development
ii php5.6-fpm 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5.6-json 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 JSON module for PHP
ii php5.6-mbstring 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
ii php5.6-mcrypt 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 libmcrypt module for PHP
ii php5.6-mysql 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php5.6-opcache 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP
ii php5.6-readline 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 readline module for PHP
ii php5.6-xml 5.6.30-12~ubuntu16.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii php7.0 7.0.18-0ubuntu0.16.04.1 all server-side, HTML-embedded scripting language (metapackage)
ii php7.0-bcmath 7.0.18-0ubuntu0.16.04.1 amd64 Bcmath module for PHP
ii php7.0-cli 7.0.18-0ubuntu0.16.04.1 amd64 command-line interpreter for the PHP scripting language
ii php7.0-common 7.0.18-0ubuntu0.16.04.1 amd64 documentation, examples and common module for PHP
ii php7.0-curl 7.0.18-0ubuntu0.16.04.1 amd64 CURL module for PHP
ii php7.0-fpm 7.0.18-0ubuntu0.16.04.1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.0-gd 7.0.18-0ubuntu0.16.04.1 amd64 GD module for PHP
ii php7.0-json 7.0.18-0ubuntu0.16.04.1 amd64 JSON module for PHP
ii php7.0-mbstring 7.0.18-0ubuntu0.16.04.1 amd64 MBSTRING module for PHP
ii php7.0-mcrypt 7.0.18-0ubuntu0.16.04.1 amd64 libmcrypt module for PHP
ii php7.0-mysql 7.0.18-0ubuntu0.16.04.1 amd64 MySQL module for PHP
ii php7.0-opcache 7.0.18-0ubuntu0.16.04.1 amd64 Zend OpCache module for PHP
ii php7.0-readline 7.0.18-0ubuntu0.16.04.1 amd64 readline module for PHP
ii php7.0-xml 7.0.18-0ubuntu0.16.04.1 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii phpmyadmin 4:4.5.4.1-2ubuntu2 all MySQL web administration tool
ii pkg-php-tools 1.33+deb.sury.org~xenial+1 all various packaging tools and scripts for PHP packages
-
Nyt, kun tunkkasin lisää, niin ilmeisesti tässä on joku apache2 & nginx hässäkkä.
localhost sellaisenaan antoi bad gateway 502, mutta asennetut sivustot toimii esim. domainit, muttei localhost/[kansion nimi].
Jostain syystä se ei osaa näyttää palvlelimen juuressa oleva sivua.
-
Nyt, kun tunkkasin lisää, niin ilmeisesti tässä on joku apache2 & nginx hässäkkä.
localhost sellaisenaan antoi bad gateway 502, mutta asennetut sivustot toimii esim. domainit, muttei localhost/[kansion nimi].
Jostain syystä se ei osaa näyttää palvlelimen juuressa oleva sivua.
Onko sinulla molemmat ajossa, sekä apache2 että nginx ja miten niiden webrootit määritetty?
(erikseen vai samat, ... )