php7.1以上版本使用mcrypt问题

php的 mcrypt扩展,在php7.1版本以后便不支持,在7.2版本则直接废弃。
但是在旧项目中使用的支付宝sdk以及composer引入的部分包中使用了此扩展的功能。
网上找到的解决办法有:
升级到7.1以上的话

1是用openssl替换掉mcrypt 不过比较麻烦 要去改支付宝的sdk 还有composer引入的部分文件,
2是直接把扩展安装回去 php7.1版本本身还有mcrypt扩展 不过所有mcrypt类的函数都要用@抑制错误 不然会报错(不明白为什么还会报错) 7.2版本就要自己重新安装扩展了

上面两种方法都要去改动composer引入的文件和sdk的文件,有没有不用改动这些文件的方法?

php

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
关于PHP7.1以上版本,不支持mcrypt_encrypt,寻求解决方案

原来我使用的加密方式为mcrypt_encrypt 的OFB加密模式。升级为PHP7.1以上版本,就不在支持原来的mcrypt_encrypt加密模式了。查阅了网上大多数例子,都没有办法解决我的问题。 原mcrypt_encrypt 的加密: ``` $mcrypt = MCRYPT_RIJNDAEL_128; $mode = MCRYPT_MODE_OFB; $key = '2098a35f1f7378fc'; $iv = $key; $str = '12345678901234'; //加密后结果 AAoIvJNGjaYSaucqU6U= ``` 新的openssl_encrypt的加密: ``` $str = '12345678901234'; $key = '2098a35f1f7378fc'; $iv = $key; $miwen = base64_encode(openssl_encrypt ( $str , 'AES-128-OFB' , $key ,true,$iv)); //加密后的结果 ABd1W0hT2+zeggCa/5w= ``` 为何两个加密模式得出的结果不一样呢?求解????

Magento 1.9.3.7 with PHP7.1:不推荐使用mcrypt

<div class="post-text" itemprop="text"> <p>I've got a Magento 1.9.3.7 version and updated php5.4 to php7.1. Now some of my unittest fail with the error: "Deprecated functionality: Function mcrypt_module_open() is deprecated in /path/to/deprecated/method". Now I want to replace mcrypt with openssl. How is the general procedure and where is the point where I magento say which encryption to use. </p> <p>My consideration is the following: I create a new file named "Openssl.php" in the folder "app/code/local/Varien/Crypt/" now i say to Magento it should use openssl instead of mcrypt (but I don't know where). Is that the right approach? For examples, I would be grateful.</p> <p>Thank you in advance</p> </div>

homebrew php@7.1 intl和mcrypt无法正常工作

<div class="post-text" itemprop="text"> <p>after homebrew php71 upgrade php cannot find intl and mcrypt. I reinstalled it with the formula <code>php@7.1</code>. This should include intl and mcrypt and i don't have to install it separately with <code>brew install php71-intl</code></p> <pre><code>➜ ~ php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll, 0x0009): closured error in Unknown on line 0 PHP 7.1.14 (cli) (built: Feb 7 2018 18:33:30) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies </code></pre> <p>This is the correct version from homebrew but the extension could not be found. In this path are only <code>opcache.so</code> and <code>xdebug.so</code>.</p> <p>Composer update output: </p> <pre><code>composer git:(develop) ✗ composer update PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php@7.1/7.1.18/lib/php/20160303/php_intl.dll' - dlopen(/usr/local/Cellar/php@7.1/7.1.18/lib/php/20160303/php_intl.dll, 9): image not found in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php@7.1/7.1.18/lib/php/20160303/php_intl.dll' - dlopen(/usr/local/Cellar/php@7.1/7.1.18/lib/php/20160303/php_intl.dll, 9): image not found in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0 Loading composer repositories with package information Updating dependencies (including require-dev) </code></pre> <p>I didn't find a solution so far.</p> </div>

找不到PHP 7.1.9 mcrypt库

<div class="post-text" itemprop="text"> <p>I have installed Php 7.1.9 on a windows server 2012 machine, if I check the php info I can see that mcrypt is enabled but if I type in shell php -v I have this error:</p> <pre><code>Unable to load dynamic library 'C:/php/ext\php_mcrypt.dll' - The specified module could not be found. </code></pre> <p>In fact running a Laravel application I also get some exception related to it.</p> <p>I have checked ext folder and there is no php_mcrypt.dll .</p> </div>

在PHP 7.1中使用Triple DES(3DES)[关闭]

<div class="post-text" itemprop="text"> <p>I need a way to encrypt and decrypt with 3des. I'm currently using php 7.1</p> <p>I found <a href="https://stackoverflow.com/questions/22592919/triple-des-encryption-decryption-using-php">this</a> question, but mcrypt is <a href="http://php.net/manual/en/function.mcrypt-encrypt.php" rel="nofollow noreferrer">deprecated</a> as of php 7.1 and I can't find any other resource for this. </p> </div>

无法让mcrypt在OS X High Sierra和PHP 7.1上工作

<div class="post-text" itemprop="text"> <p>I need to use a Wordpress 3rd party plugin that uses mcrypt. mcrypt is not available as default in my environment (OSX High Sierra and PHP 7.1) (and I know that it is deprecated...) so I installed it with PECL. The installed mcrypt.so file was created in this location:</p> <p>/usr/lib/php/extensions/no-debug-non-zts-20160303/</p> <p>I have added the following to my php.ini:</p> <pre><code>extension=/usr/lib/php/extensions/no-debug-non-zts-20160303/mcrypt.so </code></pre> <p>And after that</p> <pre><code>php -i | grep mcrypt </code></pre> <p>returns</p> <pre><code>Registered Stream Filters =&gt; zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.* mcrypt mcrypt support =&gt; enabled mcrypt_filter support =&gt; enabled mcrypt.algorithms_dir =&gt; no value =&gt; no value mcrypt.modes_dir =&gt; no value =&gt; no value </code></pre> <p>And</p> <pre><code>php -m | grep mcrypt </code></pre> <p>returns</p> <pre><code>mcrypt </code></pre> <p>To me this means that php now can use mcrypt.</p> <p>I restart Apache, but still get a fatal error:</p> <pre><code>**Fatal error**: Uncaught Error: Call to undefined function mcrypt_module_open() in /User..... </code></pre> <p>And displaying a page with</p> <pre><code>&lt;?php phpinfo(); ?&gt; </code></pre> <p>does NOT show mcrypt among the modules. But IT IS the correct php.ini that is used. So to me this means that php can use mcrypt when started from the command line but not when used from Apache.</p> <p>I also tried to uncomment the line</p> <pre><code>LoadModule php7_module libexec/apache2/libphp7.so </code></pre> <p>in httpd.conf, and restart apache, but the result is the same.</p> <p>Any ideas?</p> </div>

如何ubuntu 18.04安装/激活PHP扩展ext-mcrypt

<div class="post-text" itemprop="text"> <p>I am installing a fresh kubuntu system 18.04, which is using by default php7.2</p> <p>A composer install for my current software project gibves me this error message: </p> <blockquote> <p>The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.</p> </blockquote> <p>Other than before there is no php-mcrypt available and other articles like this <a href="http://aryo.lecture.ub.ac.id/easy-install-php-mcrypt-extension-on-ubuntu-linux/" rel="nofollow noreferrer">http://aryo.lecture.ub.ac.id/easy-install-php-mcrypt-extension-on-ubuntu-linux/</a> don't help since an analog php-mcrypt or php7-mcrypt does not exists.</p> <p>How can I get a setup, which fulfills my requirement?</p> <pre><code>sudo apt-get install php7.2-ext-mcrypt </code></pre> <p>does not find an installation candidate.</p> <p>Is there a difference between php 7.1 and 7.2?</p> <p>not surprisingly this also does not do the trick:</p> <pre><code>$ sudo phpenmod mcrypt WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available </code></pre> </div>

如何使用旧数据从mcrypt迁移到openssl?

<div class="post-text" itemprop="text"> <p>I have some old data that was encrypted using PHP's mcrypt functions. The site is now on PHP 7.1, which means we're hitting deprecation errors. I would like to migrate to use the openssl functions (which seems to be the current recommended approach), but I don't know how to reliably decrypt the legacy encrypted data.</p> <p>Is there a reasonably easy way to accomplish this?</p> </div>

php7和php7.1与OSX中的自制程序

<div class="post-text" itemprop="text"> <p>since the late upgrade of homebrew i started getting these warning in the terminal even though the libraries exist and the config point to the correct path </p> <pre><code> PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-apcu/apcu.so' - dlopen(/usr/local/opt/php70-apcu/apcu.so, 9): Symbol not found: _zend_signal_globals Referenced from: /usr/local/opt/php70-apcu/apcu.so Expected in: flat namespace in /usr/local/opt/php70-apcu/apcu.so in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-apcu/apcu.so' - dlopen(/usr/local/opt/php70-apcu/apcu.so, 9): Symbol not found: _zend_signal_globals Referenced from: /usr/local/opt/php70-apcu/apcu.so Expected in: flat namespace in /usr/local/opt/php70-apcu/apcu.so in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-intl/intl.so' - dlopen(/usr/local/opt/php70-intl/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib Referenced from: /usr/local/opt/php70-intl/intl.so Reason: image not found in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-intl/intl.so' - dlopen(/usr/local/opt/php70-intl/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib Referenced from: /usr/local/opt/php70-intl/intl.so Reason: image not found in Unknown on line 0 PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 Warning: Module 'mcrypt' already loaded in Unknown on line 0 Configuration File (php.ini) Path: /usr/local/etc/php/7.0 Loaded Configuration File: /usr/local/etc/php/7.0/php.ini Scan for additional .ini files in: /usr/local/etc/php/7.0/conf.d Additional .ini files parsed: /usr/local/etc/php/7.0/conf.d/ext-apcu.ini, /usr/local/etc/php/7.0/conf.d/ext-igbinary.ini, /usr/local/etc/php/7.0/conf.d/ext-intl.ini, /usr/local/etc/php/7.0/conf.d/ext-mcrypt.ini, /usr/local/etc/php/7.0/conf.d/ext-memcached.ini, /usr/local/etc/php/7.0/conf.d/ext-oauth.ini, /usr/local/etc/php/7.0/conf.d/ext-opcache.ini, /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini </code></pre> <p>when executing which php</p> <pre><code>/usr/local/opt/php@7.0/bin/php </code></pre> <p>and here is the result of brew list </p> <pre><code>brew list  ✔  10956  12:18:48 apr libffi openssl@1.1 php@5.6 apr-util libmemcached pcre php@7.0 aspell libpng php55 php@7.1 autoconf libpq php55-intl pkg-config automake libtool php55-mcrypt pv composer libxml2 php56 python dnsmasq libyaml php56-intl python@2 freetds libzip php56-mcrypt readline freetype m4 php56-pcntl ruby gdbm makedepend php70 sqlite gettext mcrypt php70-apcu tmux glib memcached php70-igbinary tree gmp mhash php70-intl unixodbc gnu-sed n98-magerun php70-mcrypt webp heroku ncdu php70-memcached xz icu4c nginx php70-oauth zsh jpeg node php70-opcache zsh-syntax-highlighting jq oniguruma php70-xdebug libevent openssl php71 </code></pre> <p>here is the output for brew doctor</p> <pre><code>brew doctor  ✔  10981  12:38:48 Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: A newer Command Line Tools release is available. Update them from Software Update in the App Store. Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5m-config /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5-config /Library/Frameworks/Python.framework/Versions/3.5/bin/python3-config Warning: Unbrewed header files were found in /usr/local/include. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected header files: /usr/local/include/node/ares.h /usr/local/include/node/ares_build.h /usr/local/include/node/ares_rules.h /usr/local/include/node/ares_version.h /usr/local/include/node/nameser.h /usr/local/include/node/openssl/archs/BSD-x86/opensslconf.h /usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h /usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h /usr/local/include/node/openssl/archs/VC-WIN64A/opensslconf.h /usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h /usr/local/include/node/openssl/archs/aix64-gcc/opensslconf.h /usr/local/include/node/openssl/archs/darwin-i386-cc/opensslconf.h /usr/local/include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h /usr/local/include/node/openssl/archs/linux-aarch64/opensslconf.h /usr/local/include/node/openssl/archs/linux-armv4/opensslconf.h /usr/local/include/node/openssl/archs/linux-elf/opensslconf.h /usr/local/include/node/openssl/archs/linux-ppc/opensslconf.h /usr/local/include/node/openssl/archs/linux-ppc64/opensslconf.h /usr/local/include/node/openssl/archs/linux-x32/opensslconf.h /usr/local/include/node/openssl/archs/linux-x86_64/opensslconf.h /usr/local/include/node/openssl/archs/linux32-s390x/opensslconf.h /usr/local/include/node/openssl/archs/linux64-s390x/opensslconf.h /usr/local/include/node/openssl/archs/solaris-x86-gcc/opensslconf.h /usr/local/include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h /usr/local/include/node/openssl/des_old.h /usr/local/include/node/openssl/dso.h /usr/local/include/node/openssl/krb5_asn.h /usr/local/include/node/openssl/kssl.h /usr/local/include/node/openssl/pqueue.h /usr/local/include/node/openssl/ssl23.h /usr/local/include/node/openssl/ui_compat.h /usr/local/include/node/pthread-fixes.h /usr/local/include/node/v8-debug.h /usr/local/include/node/v8-experimental.h Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: python@2 heroku python php55 Warning: Your Xcode (9.2) is outdated. Please update to Xcode 9.4 (or delete it). Xcode can be updated from the App Store. Warning: Broken symlinks were found. Remove them with `brew prune`: /usr/local/bin/docker-credential-osxkeychain.backup /usr/local/bin/hyperkit.backup /usr/local/bin/notary.backup /usr/local/bin/vpnkit.backup </code></pre> <p>any help on how to fix these warnings is appreciated </p> </div>

函数mcrypt_get_iv_size()已弃用 - Heroku

<div class="post-text" itemprop="text"> <p>I just deploy my laravel </p> <h1>5.0</h1> <p>site to Heroku. I believe Heroku is using PHP 7.1 by default. </p> <p>I did everything, and finally got it to deployed, but I see error on my page </p> <blockquote> <p>Function mcrypt_get_iv_size() is deprecated</p> </blockquote> <hr> <p><strong>config/app.php</strong></p> <p><code>'cipher' =&gt; 'AES-256-CBC',</code></p> <p><a href="https://i.stack.imgur.com/UAmeM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UAmeM.png" alt="enter image description here"></a></p> <p>I've already run <code>php artisan key:generate</code>. </p> <p><strong>Any hints on how I prevent that ?</strong> </p> </div>

我可以将phpize7.1安装到Ubuntu 15.10吗?

<div class="post-text" itemprop="text"> <p>I have old Ubuntu 15.10 which unsupported anymore. I need php7, but I can not update it to Ubuntu 16/18. I installed php7.1 from source, but also I need phpize to compile extensions. Is it possible to install phpize from source (like I did it for php7.1) ?</p> <pre><code>./configure --prefix=/usr/local/php7 \ --with-readline \ --with-config-file-path=/etc/php7/apache2 \ --with-config-file-scan-dir=/etc/php7/apache2/conf.d \ --enable-mbstring \ --enable-zip \ --enable-bcmath \ --enable-pcntl \ --enable-ftp \ --enable-exif \ --enable-calendar \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --enable-intl \ --with-curl \ --with-mcrypt \ --with-iconv \ --with-gmp \ --with-pspell \ --with-gd \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib-dir=/usr \ --with-xpm-dir=/usr \ --with-freetype-dir=/usr \ --with-t1lib=/usr \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-openssl \ --with-gettext=/usr \ --with-zlib=/usr \ --with-bz2 \ --with-recode=/usr \ --with-apxs2=/usr/bin/apxs \ --with-ldap \ --with-xdebug \ --with-pdo-pgsql </code></pre> </div>

无法找到包php7.3-gd

<div class="post-text" itemprop="text"> <p>I get the error from my cakephp 2.x project:</p> <pre><code>The PHP GD extension is required, but is not installed. </code></pre> <p>I use php7.3 with apache on debian</p> <p>I search and find</p> <pre><code>apt-get install php7.3-gd </code></pre> <p>I tried this but i only get following error:</p> <pre><code>E: Unable to locate package php7.3-gd E: Couldn't find any package by glob 'php7.3-gd' E: Couldn't find any package by regex 'php7.3-gd' </code></pre> <p>I searched again, but didnt find a soulution for this problem only for ubunto and nothing else worked. I hope someone could help me with this problem.</p> </div>

更新PHP7后的Opcache不会在phpinfo中显示

<div class="post-text" itemprop="text"> <p>I updated php from 7.0.31 to 7.2.8. Then installed php-fpm and nginx. Now I have next installed packages:</p> <pre><code>php-bcmath.x86_64 5.4.16-45.el7 @base php-cli.x86_64 5.4.16-45.el7 @base php-common.x86_64 5.4.16-45.el7 @base php-fedora-autoloader.noarch 1.0.0-1.el7 @epel php-gd.x86_64 5.4.16-45.el7 @base php-mbstring.x86_64 5.4.16-45.el7 @base php-mcrypt.x86_64 5.4.16-7.el7 @epel php-mysql.x86_64 5.4.16-45.el7 @base php-pdo.x86_64 5.4.16-45.el7 @base php-pear.noarch 1:1.9.4-21.el7 @base php-pecl-igbinary.x86_64 1.2.1-1.el7 @epel php-pecl-memcached.x86_64 2.2.0-1.el7 @epel php-pecl-msgpack.x86_64 0.5.5-5.el7 @epel php-pecl-zendopcache.x86_64 7.0.5-2.el7 @epel php-php-gettext.noarch 1.0.12-1.el7 @epel php-process.x86_64 5.4.16-45.el7 @base php-tcpdf.noarch 6.2.13-1.el7 @epel php-tcpdf-dejavu-sans-fonts.noarch 6.2.13-1.el7 @epel php-tidy.x86_64 5.4.16-7.el7 @epel php-xml.x86_64 5.4.16-45.el7 @base php72-php-cli.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-common.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-fpm.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-json.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-mysqlnd.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-opcache.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-pdo.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-pear.noarch 1:1.10.5-6.el7.remi @remi-safe php72-php-pecl-igbinary.x86_64 2.0.7-1.el7.remi @remi-safe php72-php-pecl-memcached.x86_64 3.0.4-2.el7.remi @remi-safe php72-php-pecl-msgpack.x86_64 2.0.2-4.el7.remi @remi-safe php72-php-process.x86_64 7.2.8-1.el7.remi @remi-safe php72-php-xml.x86_64 7.2.8-1.el7.remi @remi-safe php72-runtime.x86_64 1.0-1.el7.remi @remi-safe </code></pre> <p>And my site working by apache now. Nginx + php-fpm I only try set. And when I see phpinfo from apache, I find information about opcache:</p> <pre><code>Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.8, Copyright (c) 1999-2018, by Zend Technologies </code></pre> <p>when I see phpinfo from nginx I don't see information about opcache:</p> <pre><code>Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies </code></pre> <p>In phpinfo from nginx these lines differ of apache. </p> <pre><code>Configuration File (php.ini) Path /etc/opt/remi/php72 Loaded Configuration File /etc/opt/remi/php72/php.ini Scan this dir for additional .ini files /etc/opt/remi/php72/php.d </code></pre> <p>but php.ini files same and has path to opcache.so.</p> </div>

使用magento / bin设置在docker中耗尽的PHP内存大小:di:compile

<div class="post-text" itemprop="text"> <p>I got this error in log file after run <code>php bin/magento setup:di:compile</code> or <code>php bin/magento deploy:mode:set production</code> in <code>php:7.1-fpm</code> image's container.</p> <blockquote> <p>[2019-02-04 12:15:26] main.ERROR: /usr/local/bin/php -f /var/www/html/m230/bin/magento setup:di:compile 2&gt;&amp;1 Compilation was started. %message% 0/7 [&gt;---------------------------] 0% &lt; 1 sec 72.0 MiB%message% 0/7 [&gt;---------------------------] 0% &lt; 1 sec 72.0 MiBProxies code generation... 0/7 [&gt;---------------------------] 0% &lt; 1 sec 72.0 MiB Proxies code generation... 1/7 [====&gt;-----------------------] 14% 1 sec 76.0 MiB Repositories code generation... 1/7 [====&gt;-----------------------] 14% 1 sec 76.0 MiB Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36864 bytes) in /var/www/html/m230/setup/src/Magento/Setup/Module/Di/Code/Reader/FileClassScanner.php on line 81 Check <a href="https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors" rel="nofollow noreferrer">https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors</a> for more info on how to handle out of memory errors. [] []</p> </blockquote> <p>I tried to increase memory limit by running <code>php -dmemory_limit=1G bin/magento setup:di:compile</code> or even <code>php -dmemory_limit=-1 bin/magento setup:di:compile</code></p> <p>This error doesn't occur if I use <code>php:7.1-apache</code> image (I use the same source code and database, just change image)</p> <p>This error occurs on both my laptop (running arch-linux) and desktop (running ubuntu). I know they are strong enough to run that command.</p> <p>My Dockerfile I used:</p> <pre><code>FROM php:7.1-fpm # Install necessary libraries for Magento2 RUN apt-get -y update \ &amp;&amp; apt-get install -y \ libmcrypt-dev \ libxslt-dev \ zlib1g-dev \ libpng-dev \ libjpeg-dev \ libfreetype6-dev \ libjpeg62-turbo-dev RUN docker-php-ext-install -j$(nproc) iconv RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ RUN docker-php-ext-install pdo_mysql mcrypt xsl intl zip bcmath -j$(nproc) gd soap # Install xdebug RUN pecl install xdebug RUN docker-php-ext-enable xdebug RUN echo "xdebug.remote_enable=on \ xdebug.remote_autostart=off \ xdebug.remote_host=10.5.0.1 \ xdebug.remote_port=9000 \ xdebug.remote_handler=dbgp" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini # Set memory_limit RUN echo "php_admin_value[memory_limit] = 2G" &gt;&gt; /usr/local/etc/php-fpm.d/www.conf # Install cron #RUN apt-get install -y cron # Remove apt cache RUN rm -rf /var/lib/apt/lists/* # Create non-root user ARG USER_NAME ARG UID RUN useradd -m -U ${USER_NAME} -u ${UID} -p1 -s /bin/bash -G root -o # Edit PS1 in basrc RUN echo "PS1='${debian_chroot:+($debian_chroot)}\w\$ '" &gt;&gt; /home/${USER_NAME}/.bashrc # Change www-data user to ${USER_NAME} RUN sed -i -e "s/www-data/${USER_NAME}/" /usr/local/etc/php-fpm.d/www.conf </code></pre> </div>

在CentOS上用OpenSSL重新编译PHP

<div class="post-text" itemprop="text"> <p>I have upgraded openssl version to <code>1.02l</code> from <code>1.0.1e</code> and PHP version from PHP <code>5.6</code> to <code>PHP 7.1.8</code> (PHP is installed using yum)</p> <p>The problem is, PHP still detects openssl version to <code>1.0.1e</code> whereas I want it to be updated to latest openssl version installed i.e <code>1.0.2l</code></p> <p>I want to know what are my options here, how do I go about telling PHP to use the latest installed openssl version?</p> <p>My finding tells me that the only way to do it is by recompiling PHP? (will appreciate if someone can tell me if there is other way) If the only way is by recompiling, I need help on how to go about it? what are the steps involved. From my understanding, here is how I think I have to do.</p> <ul> <li>Remove PHP version installed from YUM</li> <li>Download latest version of PHP from source and unzip in tmp directory</li> <li>Compile &amp; Install PHP</li> </ul> <p>Am I missing anything here?</p> <p>** <strong>UPDATE</strong> **</p> <p>Here are the list of php extensions installed using yum</p> <pre><code> php-bcmath x86_64 7.1.8-1.el7.remi @remi-php71 94 k php-common x86_64 7.1.8-1.el7.remi @remi-php71 7.9 M php-fedora-autoloader noarch 0.2.1-2.el7 @epel 14 k php-gd x86_64 7.1.8-1.el7.remi @remi-php71 204 k php-intl x86_64 7.1.8-1.el7.remi @remi-php71 947 k php-json x86_64 7.1.8-1.el7.remi @remi-php71 80 k php-mbstring x86_64 7.1.8-1.el7.remi @remi-php71 2.8 M php-mysqlnd x86_64 7.1.8-1.el7.remi @remi-php71 850 k php-pdo x86_64 7.1.8-1.el7.remi @remi-php71 386 k php-pecl-zip x86_64 1.13.5-2.el7.remi.7.1 @remi-php71 175 k php-php-gettext noarch 1.0.12-1.el7 @epel 57 k php-process x86_64 7.1.8-1.el7.remi @remi-php71 180 k php-tcpdf noarch 6.2.13-1.el7 @epel 11 M php-tcpdf-dejavu-sans-fonts noarch 6.2.13-1.el7 @epel 1.5 M php-tidy x86_64 7.1.8-1.el7.remi @remi-php71 106 k php-xml x86_64 7.1.8-1.el7.remi @remi-php71 851 k </code></pre> <p>I now want to configure PHP to use this extensions, so far I have comeup with following</p> <pre><code>./configure --with-openssl --with-openssl-dir=/usr/bin \ --with-zlib \ --enable-zip \ --enable-xmlreader \ --enable-xmlwriter \ --enable-opcache \ --enable-simplexml \ --with-sqlite3 \ --with-pdo-sqlite \ --with-pdo-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-mysql-sock=/var/lib/mysql/mysql.sock \ --enable-mysqlnd \ --with-mcrypt \ --enable-mbstring \ --enable-intl \ --with-png-dir \ --with-jpeg-dir \ --enable-gd-native-ttf \ --with-gd \ --with-curl \ --with-bz2 \ --enable-bcmath </code></pre> <p>I just want to know now, If I need to enable any extension from above list do I use --enable or --with ? for example how do I enable php-xml. Do I only use --enable-php-xml ?</p> </div>

无法从apache 2 docker容器中连接到php7 fpm docker容器

<div class="post-text" itemprop="text"> <p><strong>Similar question have been asked many times and I have gone through most of them and still I am not able to solve the problem.</strong> </p> <p>I am running Apache2 and PHP 7 FPM in different docker containers and they are not able to connect to each other. <strong>The connection fails with following errors.</strong> </p> <pre><code>[Tue Sep 19 00:05:51.743322 2017] [proxy:debug] [pid 336:tid 140441754191616] proxy_util.c(2422): [client 172.18.0.1:36332] AH00947: connected /var/www/html/info.php to 127.0.0.1:9000 [Tue Sep 19 00:05:51.743387 2017] [proxy:error] [pid 336:tid 140441754191616] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Tue Sep 19 00:05:51.743405 2017] [proxy_fcgi:error] [pid 336:tid 140441754191616] [client 172.18.0.1:36332] AH01079: failed to make connection to backend: 127.0.0.1 [Tue Sep 19 00:05:51.743410 2017] [proxy:debug] [pid 336:tid 140441754191616] proxy_util.c(2175): AH00943: FCGI: has released connection for (*) [Tue Sep 19 00:05:56.809604 2017] [authz_core:debug] [pid 336:tid 140441672480512] mod_authz_core.c(809): [client 172.18.0.1:36442] AH01626: authorization result of Require all granted: granted [Tue Sep 19 00:05:56.809646 2017] [authz_core:debug] [pid 336:tid 140441672480512] mod_authz_core.c(809): [client 172.18.0.1:36442] AH01626: authorization result of &lt;RequireAny&gt;: granted [Tue Sep 19 00:05:56.809676 2017] [proxy:debug] [pid 336:tid 140441672480512] mod_proxy.c(1160): [client 172.18.0.1:36442] AH01143: Running scheme fcgi handler (attempt 0) [Tue Sep 19 00:05:56.809687 2017] [proxy_fcgi:debug] [pid 336:tid 140441672480512] mod_proxy_fcgi.c(879): [client 172.18.0.1:36442] AH01076: url: fcgi://127.0.0.1:9000/var/www/html/info.php proxyname: (null) proxyport: 0 [Tue Sep 19 00:05:56.809694 2017] [proxy_fcgi:debug] [pid 336:tid 140441672480512] mod_proxy_fcgi.c(886): [client 172.18.0.1:36442] AH01078: serving URL fcgi://127.0.0.1:9000/var/www/html/info.php [Tue Sep 19 00:05:56.809703 2017] [proxy:debug] [pid 336:tid 140441672480512] proxy_util.c(2160): AH00942: FCGI: has acquired connection for (*) [Tue Sep 19 00:05:56.809712 2017] [proxy:debug] [pid 336:tid 140441672480512] proxy_util.c(2213): [client 172.18.0.1:36442] AH00944: connecting fcgi://127.0.0.1:9000/var/www/html/info.php to 127.0.0.1:9000 [Tue Sep 19 00:05:56.809840 2017] [proxy:debug] [pid 336:tid 140441672480512] proxy_util.c(2422): [client 172.18.0.1:36442] AH00947: connected /var/www/html/info.php to 127.0.0.1:9000 [Tue Sep 19 00:05:56.809927 2017] [proxy:error] [pid 336:tid 140441672480512] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Tue Sep 19 00:05:56.809946 2017] [proxy_fcgi:error] [pid 336:tid 140441672480512] [client 172.18.0.1:36442] AH01079: failed to make connection to backend: 127.0.0.1 [Tue Sep 19 00:05:56.809953 2017] [proxy:debug] [pid 336:tid 140441672480512] proxy_util.c(2175): AH00943: FCGI: has released connection for (*) </code></pre> <p><strong>Below is my docker-compose file</strong></p> <pre><code>version: '2' services: php: build: ./etc/php/ volumes: - ./etc/php/config/php.ini:/etc/php/7.1/fpm/php.ini - ./etc/php/config/www.conf:/etc/php/7.1/fpm/pool.d/www.conf - ./etc/php/config/php-fpm.conf:/etc/php/7.1/fpm/php-fpm.conf - ./etc/php/logs/php-fpm.log:/var/log/php-fpm.log - ./etc/php/logs/fpm-php.www.log:/var/log/fpm-php.www.log - ./source/:/var/www/html/ expose: - 9000 ports: - "9000:9000" links: - mysql apache2: build: ./etc/apache/ volumes: - ./source/:/var/www/html/ - ./etc/apache/config/sites-enabled/:/etc/apache2/sites-enabled/ - ./etc/apache/config/conf-enabled/:/etc/apache2/conf-enabled/ - ./etc/apache/logs/error.log:/var/log/apache2/error.log - ./etc/apache/logs/access.log:/var/log/apache2/access.log - ./etc/apache/logs/sm-error.log:/var/log/apache2/sm-error.log - ./etc/apache/logs/sm-access.log:/var/log/apache2/sm-access.log expose: - 80 - 443 ports: - "8080:80" - "443:443" links: - php mysql: image: mysql:latest volumes: - ./etc/mysql/data/:/var/lib/mysql/ - ./etc/mysql/config/:/etc/mysql/conf.d/ ports: - "3307:3306" environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: sp MYSQL_USER: spadmin MYSQL_PASSWORD: root phpmyadmin: image: phpmyadmin/phpmyadmin ports: - "8081:80" links: - mysql environment: PMA_HOST: mysql </code></pre> <p><strong>Below is my docker file for apache2.</strong></p> <pre><code>#Get the base image FROM ubuntu:16.04 #Install Apache RUN apt-get update &amp;&amp; \ apt-get dist-upgrade -y &amp;&amp; \ apt-get install -y \ apache2 \ apache2-utils # Enable modules RUN a2enmod rewrite RUN a2enmod proxy RUN a2enmod proxy_fcgi # Add user to www-data RUN groupadd 1000 RUN usermod -a -G 1000 www-data RUN usermod -a -G staff www-data RUN service apache2 restart # Run config ENTRYPOINT [ "/usr/sbin/apache2ctl" ] CMD [ "-D", "FOREGROUND" ] </code></pre> <p><strong>Below is my virtual host file for apache2.</strong></p> <pre><code>&lt;VirtualHost *:80&gt; ServerName localhost &lt;FilesMatch \.php$&gt; SetHandler "proxy:fcgi://127.0.0.1:9000" &lt;/FilesMatch&gt; DocumentRoot /var/www/html &lt;Directory /var/www/html&gt; Options FollowSymlinks AllowOverride All Require all granted &lt;/Directory&gt; ErrorLog /var/log/apache2/sm-error.log CustomLog /var/log/apache2/sm-access.log combined &lt;/VirtualHost&gt; </code></pre> <p><strong>Below is my PHP-FPM docker file.</strong></p> <pre><code>FROM ubuntu:16.04 # Install PHP RUN apt-get clean &amp;&amp; \ apt-get -y update &amp;&amp; \ apt-get install -y locales \ curl \ software-properties-common \ git &amp;&amp; \ locale-gen en_AU.UTF-8 RUN LC_ALL=en_AU.UTF-8 add-apt-repository ppa:ondrej/php RUN apt-get update RUN apt-get install -y --force-yes php7.1-bcmath \ php7.1-bz2 \ php7.1-cli \ php7.1-common \ php7.1-curl \ php7.1-cgi \ php7.1-dev \ php7.1-fpm \ php7.1-gd \ php-ldap \ php7.1-gmp \ php7.1-intl \ php7.1-json \ php7.1-mbstring \ php7.1-mcrypt \ php7.1-mysql \ php-sqlite3 \ php7.1-opcache \ php7.1-phpdbg \ hp7.1-pspell \ php7.1-readline \ php7.1-recode \ php7.1-soap \ php7.1-tidy \ php7.1-xml \ php7.1-xmlrpc \ php7.1-xsl \ php7.1-zip \ php-xdebug # Install Composer RUN curl https://getcomposer.org/installer &gt; composer-setup.php &amp;&amp; php composer-setup.php &amp;&amp; mv composer.phar /usr/local/bin/composer &amp;&amp; rm composer-setup.php # Clean files RUN apt-get clean &amp;&amp; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Run PHP-FPM CMD ["php-fpm7.1"] </code></pre> <p>Below is the output of docker ps command.</p> <pre><code>a85830192ad4 spendingmanager_apache2 "/usr/sbin/apache2..." 15 minutes ago Up 15 minutes 0.0.0.0:443-&gt;443/tcp, 0.0.0.0:8080-&gt;80/tcp spendingmanager_apache2_1 4574c977d0d4 phpmyadmin/phpmyadmin "/run.sh phpmyadmin" 15 minutes ago Up 15 minutes 0.0.0.0:8081-&gt;80/tcp spendingmanager_phpmyadmin_1 82735fa580e8 spendingmanager_php "php-fpm7.1" 15 minutes ago Up 15 minutes 0.0.0.0:9000-&gt;9000/tcp spendingmanager_php_1 32422e934247 mysql:latest "docker-entrypoint..." 15 minutes ago Up 15 minutes 0.0.0.0:3307-&gt;3306/tcp spendingmanager_mysql_1 </code></pre> <p><strong>Note: PHP-FPM is listening for connections on port 9000 and its working properly. When I try to access it from my host OS (for instance <a href="http://localhost/" rel="nofollow noreferrer">http://localhost/</a> instead of <a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a> I am able to connect and get the desired output).</strong></p> <p>I have also tried setting up permission on the <code>www/html</code> and try making <code>www-data</code> the owner. </p> <p>Can someone please help me get this working? </p> <p>Thanks in advance for your help.</p> </div>

PHP编译安装提示bash找不到对应的功能包

安装报错如下提示:但软件包已经安装,不明白为什么会提示bash找不到,PATH也检查没什么问题。 ./configure \ --prefix=/application/php5.3.3 \ --with-mysql=/application/mysql \ --with-iconv-dir=/usr/local/libiconv/ \ --with-freetype-dir \ --with-jpeg-dir \ --with-png-dir \ --with-zlib \ --with-libxml-dir=/usr \ --enable-xml \ --disable-rpath \ --enable-safe-mode \ --enable-bcmath \ --enable-shmop \ --enable-sysvsem \ --enable-inline-optimization \ --with-curl \ --with-curlwrappers \ --enable-mbregex \ --enable-fpm \ --enable-mbstring \ --with-mcrypt \ --with-gd \ --enable-gd-native-ttf \ --with-openssl \ --with-mhash \ --enable-pcntl \ --enable-sockets \ --with-xmlrpc \ --enable-zip \ --enable-soap \ --enable-short-tags \ --enable-zend-multibyte \ --enable-static \ --with-xsl \ --enable-ftp \ --with-fpm-user=nginx \ --with-fpm-group=nginx \ [root@WEB1 php-5.3.27]# --with-freetype-dir \ > --with-jpeg-dir \ > --with-png-dir \ > --with-zlib \ > --with-libxml-dir=/usr \ > --enable-xml \ > --disable-rpath \ -bash: --with-freetype-dir: command not found [root@WEB1 php-5.3.27]# --enable-safe-mode \ -bash: --enable-safe-mode: command not found [root@WEB1 php-5.3.27]# --enable-bcmath \ > --enable-shmop \ > --enable-sysvsem \ -bash: --enable-bcmath: command not found [root@WEB1 php-5.3.27]# --enable-inline-optimization \ -bash: --enable-inline-optimization: command not found [root@WEB1 php-5.3.27]# --with-curl \ > --with-curlwrappers \ -bash: --with-curl: command not found [root@WEB1 php-5.3.27]# --enable-mbregex \ > --enable-fpm \ -bash: --enable-mbregex: command not found [root@WEB1 php-5.3.27]# --enable-mbstring \ > --with-mcrypt \ > --with-gd \ > --enable-gd-native-ttf \ -bash: --enable-mbstring: command not found [root@WEB1 php-5.3.27]# --with-openssl \ > --with-mhash \ > --enable-pcntl \ -bash: --with-openssl: command not found [root@WEB1 php-5.3.27]# --enable-sockets \ -bash: --enable-sockets: command not found [root@WEB1 php-5.3.27]# --with-xmlrpc \ > --enable-zip \ > --enable-soap \ > --enable-short-tags \ -bash: --with-xmlrpc: command not found [root@WEB1 php-5.3.27]# --enable-zend-multibyte \ -bash: --enable-zend-multibyte: command not found [root@WEB1 php-5.3.27]# --enable-static \ > --with-xsl \ > --enable-ftp \ -bash: --enable-static --with-xsl: command not found [root@WEB1 php-5.3.27]# --with-fpm-user=nginx \ -bash: --with-fpm-user=nginx: command not found [root@WEB1 php-5.3.27]# --with-fpm-group=nginx \ 为什么会一直显示bash找不到,求高手赐教。

Apache没有在运行Virtualmin和http 2.0的Ubuntu 16.04中启动

<div class="post-text" itemprop="text"> <h1>THE PROBLEM</h1> <p>Apache2 in Ubuntu 16.04 will not start and I'm getting a very generic non-descriptive error and don't know what to do?</p> <h1>THE LOGS/ERRORS</h1> <h3>apache2 restart</h3> <p><code>systemctl restart apache2.service</code> gives the error...</p> <p><code>Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.</code></p> <h3>apache2 status</h3> <p><code>systemctl status apache2.service</code> gives the error...</p> <pre><code>● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-01-03 02:35:00 UTC; 1min 55s ago Process: 28312 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Jan 03 02:35:00 web3 systemd[1]: Starting The Apache HTTP Server... Jan 03 02:35:00 web3 apachectl[28312]: Action 'start' failed. Jan 03 02:35:00 web3 apachectl[28312]: The Apache error log may have more information. Jan 03 02:35:00 web3 systemd[1]: apache2.service: Control process exited, code=exited status=1 Jan 03 02:35:00 web3 systemd[1]: Failed to start The Apache HTTP Server. Jan 03 02:35:00 web3 systemd[1]: apache2.service: Unit entered failed state. Jan 03 02:35:00 web3 systemd[1]: apache2.service: Failed with result 'exit-code'. </code></pre> <h3>journalctl -xe</h3> <p><code>journalctl -xe</code> gives the error...</p> <p>Pretty much identical to <code>systemctl restart apache2.service</code></p> <h3>/var/log/apache2/error.log</h3> <p><code>/var/log/apache2/error.log</code> gives the error...</p> <p><code>AH00016: Configuration Failed</code></p> <h3>apachectl -t</h3> <p>Make sure the Aapche2 syntax is okay...</p> <p><code>apachectl -t</code> or <code>apachectl configtest</code> returns...</p> <p><code>Syntax OK</code></p> <h1>THE APACHE2 CONF FILE (the rest are identical)</h1> <p>Now, here is the contents of one of the Apache2 conf files. The others are all similar. I'm running everything in <code>fcgid</code> mode. Also notice I have <code>Protocols h2 h2c http/1.1</code> in here.</p> <p><code>/etc/apache2/sites-available/example.com.conf</code></p> <pre><code>&lt;VirtualHost 123.123.123.123:80&gt; SuexecUserGroup "#1917" "#1917" ServerName example.com ServerAlias www.example.com ServerAlias webmail.example.com ServerAlias admin.example.com DocumentRoot /home/example/public_html ErrorLog /var/log/virtualmin/example.com_error_log CustomLog /var/log/virtualmin/example.com_access_log combined ScriptAlias /cgi-bin/ /home/example/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Protocols h2 h2c http/1.1 RewriteEngine on RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} !^\w+\.\w+\.\w+ [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L] RewriteCond %{HTTP_HOST} =webmail.example.com RewriteRule ^(.*) https://example.com:20000/ [R] RewriteCond %{HTTP_HOST} =admin.example.com RewriteRule ^(.*) https://example.com:10000/ [R] &lt;Directory /home/example/public_html&gt; Options -Indexes +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Require all granted AddType application/x-httpd-php .php AddHandler fcgid-script .php AddHandler fcgid-script .php5.6 AddHandler fcgid-script .php7.0 AddHandler fcgid-script .php7.1 AddHandler fcgid-script .php7.2 AddHandler fcgid-script .php7.3 FCGIWrapper /home/example/fcgi-bin/php7.3.fcgi .php FCGIWrapper /home/example/fcgi-bin/php5.6.fcgi .php5.6 FCGIWrapper /home/example/fcgi-bin/php7.0.fcgi .php7.0 FCGIWrapper /home/example/fcgi-bin/php7.1.fcgi .php7.1 FCGIWrapper /home/example/fcgi-bin/php7.2.fcgi .php7.2 FCGIWrapper /home/example/fcgi-bin/php7.3.fcgi .php7.3 &lt;/Directory&gt; &lt;Directory /home/example/cgi-bin&gt; allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch &lt;/Directory&gt; &lt;IfModule php5_module&gt; php_value newrelic.appname "example.com" &lt;/IfModule&gt; RemoveHandler .php RemoveHandler .php5.6 RemoveHandler .php7.0 RemoveHandler .php7.1 RemoveHandler .php7.2 RemoveHandler .php7.3 IPCCommTimeout 25001 FcgidMaxRequestLen 1073741824 &lt;/VirtualHost&gt; &lt;VirtualHost 123.123.123.123:443&gt; SuexecUserGroup "#1917" "#1917" ServerName example.com ServerAlias www.example.com ServerAlias webmail.example.com ServerAlias admin.example.com DocumentRoot /home/example/public_html ErrorLog /var/log/virtualmin/example.com_error_log CustomLog /var/log/virtualmin/example.com_access_log combined ScriptAlias /cgi-bin/ /home/example/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Protocols h2 h2c http/1.1 RewriteEngine on RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} !^\w+\.\w+\.\w+ [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L] RewriteCond %{HTTP_HOST} =webmail.example.com RewriteRule ^(.*) https://example.com:20000/ [R] RewriteCond %{HTTP_HOST} =admin.example.com RewriteRule ^(.*) https://example.com:10000/ [R] &lt;Directory /home/example/public_html&gt; Options -Indexes +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Require all granted AddType application/x-httpd-php .php AddHandler fcgid-script .php AddHandler fcgid-script .php5.6 AddHandler fcgid-script .php7.0 AddHandler fcgid-script .php7.1 AddHandler fcgid-script .php7.2 AddHandler fcgid-script .php7.3 FCGIWrapper /home/example/fcgi-bin/php7.3.fcgi .php FCGIWrapper /home/example/fcgi-bin/php5.6.fcgi .php5.6 FCGIWrapper /home/example/fcgi-bin/php7.0.fcgi .php7.0 FCGIWrapper /home/example/fcgi-bin/php7.1.fcgi .php7.1 FCGIWrapper /home/example/fcgi-bin/php7.2.fcgi .php7.2 FCGIWrapper /home/example/fcgi-bin/php7.3.fcgi .php7.3 &lt;/Directory&gt; &lt;Directory /home/example/cgi-bin&gt; allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch &lt;/Directory&gt; &lt;IfModule php5_module&gt; php_value newrelic.appname "example.com" &lt;/IfModule&gt; RemoveHandler .php RemoveHandler .php5.6 SSLEngine on SSLCertificateFile /home/example/ssl.cert SSLCertificateKeyFile /home/example/ssl.key SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 RemoveHandler .php7.0 RemoveHandler .php7.1 RemoveHandler .php7.2 RemoveHandler .php7.3 IPCCommTimeout 25001 FcgidMaxRequestLen 1073741824 &lt;/VirtualHost&gt; </code></pre> <h1>THE OS AND OVERVIEW OF WHAT I'VE INSTALLED</h1> <ul> <li>Ubuntu 16.04 droplet from DigitalOcean</li> <li>Fresh install of Virtualmin <a href="https://www.digitalocean.com/community/tutorials/how-to-install-virtualmin-with-webmin-lamp-bind-and-postfix-on-ubuntu-16-04" rel="nofollow noreferrer">using these instructions</a></li> <li>Multiple <code>virtualhost</code> domains managed by Virtualmin all running in <code>fcgid</code> mode</li> <li>Installed PHP 5.6, 7.0, 7.1, 7.2, 7.3 using <a href="https://www.virtualmin.com/documentation/web/multiplephp" rel="nofollow noreferrer">these Ubuntu instructions</a></li> <li>Changed to http 2.0 <a href="https://techwombat.com/enable-http2-apache-ubuntu-16-04/" rel="nofollow noreferrer">using these instructions</a></li> </ul> <h1>APACHE2 AND PHP MODULES</h1> <h3>apache2ctl -M | sort</h3> <pre><code> access_compat_module (shared) actions_module (shared) alias_module (shared) auth_basic_module (shared) auth_digest_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) core_module (static) dav_fs_module (shared) dav_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) fcgid_module (shared) filter_module (shared) http2_module (shared) http_module (static) lbmethod_byrequests_module (shared) log_config_module (static) logio_module (static) mime_module (shared) mpm_event_module (shared) negotiation_module (shared) proxy_balancer_module (shared) proxy_connect_module (shared) proxy_fcgi_module (shared) proxy_http_module (shared) proxy_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) slotmem_shm_module (shared) socache_shmcb_module (shared) so_module (static) ssl_module (shared) status_module (shared) suexec_module (shared) unixd_module (static) version_module (static) watchdog_module (static) </code></pre> <h3>php -m</h3> <pre><code>[PHP Modules] bcmath calendar Core ctype date dom exif fileinfo filter ftp gd gettext hash iconv intl json libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix pspell readline recode Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xdebug xml xmlreader xmlrpc xmlwriter xsl zlib [Zend Modules] Xdebug </code></pre> <h3>apt list --installed | grep php</h3> <pre><code>libapache2-mod-php5.6/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] libapache2-mod-php7.0/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] libapache2-mod-php7.1/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] libapache2-mod-php7.2/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] libapache2-mod-php7.3/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed] php-cgi/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed] php-cli/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed,automatic] php-common/xenial,now 2:69+ubuntu16.04.1+deb.sury.org+1 all [installed,automatic] php-mbstring/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed,automatic] php-mcrypt/xenial-updates,now 1:7.0+35ubuntu6.1 all [installed] php-mysql/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed,automatic] php-pear/xenial,now 1:1.10.6+submodules+notgz-1+ubuntu16.04.1+deb.sury.org+2 all [installed,automatic] php-xdebug/xenial,now 2.7.0~beta1+2.6.1+2.5.5-1+ubuntu16.04.1+deb.sury.org+10 amd64 [installed] php-xml/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed,automatic] php-zip/xenial,now 2:7.2+69+ubuntu16.04.1+deb.sury.org+1 all [installed] php5.6/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 all [installed] php5.6-bcmath/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-cli/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-common/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-fpm/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-gd/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-intl/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-json/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-mbstring/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-mcrypt/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-mysql/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-opcache/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php5.6-pspell/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-readline/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php5.6-recode/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-soap/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-xml/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php5.6-xmlrpc/xenial,now 5.6.39-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 all [installed] php7.0-bcmath/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-cgi/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-cli/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-common/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-fpm/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-gd/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-intl/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-json/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-mbstring/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-mcrypt/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-mysql/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-opcache/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-pspell/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-readline/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-recode/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-soap/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.0-xml/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.0-xmlrpc/xenial,now 7.0.33-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 all [installed] php7.1-bcmath/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-cli/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-common/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-fpm/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-gd/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-intl/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-json/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-mbstring/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-mcrypt/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-mysql/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-opcache/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.1-pspell/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-readline/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.1-recode/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-soap/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-xml/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.1-xmlrpc/xenial,now 7.1.25-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 all [installed] php7.2-bcmath/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-cgi/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.2-cli/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-common/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-fpm/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-gd/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-intl/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-json/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-mbstring/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-mysql/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-opcache/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.2-pspell/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-readline/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.2-recode/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-soap/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-xml/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-xmlrpc/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-zip/xenial,now 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.3/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 all [installed] php7.3-bcmath/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-cli/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-common/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-fpm/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-gd/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-intl/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-json/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-mbstring/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-mysql/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-opcache/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.3-pspell/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-readline/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.3-recode/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-soap/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-xml/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-xmlrpc/xenial,now 7.3.0-2+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] webmin-php-pear/virtualmin-universal,now 1.5 all [installed,automatic] </code></pre> </div>

无法在Ubuntu 16.04上访问http:// ip / phpmyadmin

<div class="post-text" itemprop="text"> <p>I'm on Ubuntu 16.04 Server. I've installed apache2, php5, php7, mysql. Then I installed phpmyadmin over Ubuntu 16.04 i this way:</p> <pre><code>sudo apt-get update sudo apt-get install phpmyadmin php-mbstring php-gettext </code></pre> <p>the result is this:</p> <pre><code>Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Get:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Fetched 325 kB in 0s (343 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: dbconfig-common dbconfig-mysql fontconfig-config fonts-dejavu-core javascript-common libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 php-gd php-mcrypt php-mysql php-pear php-phpseclib php-tcpdf php-xml php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-mcrypt php7.0-opcache php7.0-readline php7.3-common php7.3-gd php7.3-mbstring php7.3-mysql php7.3-xml Suggested packages: libgd-tools libmcrypt-dev mcrypt php-libsodium php-gmp php-imagick www-browser The following NEW packages will be installed: dbconfig-common dbconfig-mysql fontconfig-config fonts-dejavu-core javascript-common libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 libxslt1.1 php-gd php-gettext php-mbstring php-mcrypt php-mysql php-pear php-phpseclib php-tcpdf php-xml php7.0-mcrypt php7.3-common php7.3-gd php7.3-mbstring php7.3-mysql php7.3-xml phpmyadmin The following packages will be upgraded: php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-opcache php7.0-readline 7 upgraded, 39 newly installed, 0 to remove and 13 not upgraded. Need to get 21.3 MB of archives. After this operation, 70.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libxau6 amd64 1:1.0.8-1 [8,376 B] Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libjpeg-turbo8 amd64 1.4.2-0ubuntu3.1 [111 kB] Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libjbig0 amd64 2.1-3.1+deb.sury.org~xenial+1 [26.4 kB] Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libxdmcp6 amd64 1:1.1.2-1.1 [11.0 kB] Get:5 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb1 amd64 1.11.1-1ubuntu1 [40.0 kB] Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx11-data all 2:1.6.3-1ubuntu2.1 [113 kB] Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libx11-6 amd64 2:1.6.3-1ubuntu2.1 [570 kB] Get:8 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 dbconfig-common all 2.0.4ubuntu1 [582 kB] Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libwebp6 amd64 0.6.0-4+ubuntu16.04.1+deb.sury.org+1 [184 kB] Get:10 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 dbconfig-mysql all 2.0.4ubuntu1 [1,038 B] Get:11 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 fonts-dejavu-core all 2.35-1 [1,039 kB] Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fontconfig-config all 2.11.94-0ubuntu1.1 [49.9 kB] Get:13 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 javascript-common all 11 [6,066 B] Get:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfontconfig1 amd64 2.11.94-0ubuntu1.1 [131 kB] Get:15 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2,194 B] Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiff5 amd64 4.0.6-1ubuntu0.6 [149 kB] Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxpm4 amd64 1:3.5.11-1ubuntu0.16.04.1 [33.8 kB] Get:18 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libjs-jquery all 1.11.3+dfsg-4 [161 kB] Get:19 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libjs-underscore all 1.7.0~dfsg-1ubuntu1 [46.7 kB] Get:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libjs-sphinxdoc all 1.3.6-2ubuntu1.2 [57.8 kB] Get:21 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libmcrypt4 amd64 2.5.8-3.3 [63.0 kB] Get:22 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxslt1.1 amd64 1.1.28-2.1ubuntu0.2 [146 kB] Get:23 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 php-mcrypt all 1:7.0+35ubuntu6.1 [1,934 B] Get:24 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 php-phpseclib all 2.0.1-1build1 [173 kB] Get:25 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 php-tcpdf all 6.0.093+dfsg-1ubuntu1 [7,881 kB] Get:26 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libgd3 amd64 2.2.5-5.1+ubuntu16.04.1+deb.sury.org+1 [133 kB] Get:27 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 phpmyadmin all 4:4.5.4.1-2ubuntu2.1 [3,946 kB] Get:28 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.3-common amd64 7.3.5-1+ubuntu16.04.1+deb.sury.org+1 [935 kB] Get:29 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.3-gd amd64 7.3.5-1+ubuntu16.04.1+deb.sury.org+1 [26.4 kB] Get:30 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-gd all 2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3 [6,004 B] Get:31 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-json amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [16.9 kB] Get:32 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-opcache amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [77.3 kB] Get:33 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-fpm amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [1,289 kB] Get:34 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-readline amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [12.8 kB] Get:35 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0 all 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [55.9 kB] Get:36 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-cli amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [1,282 kB] Get:37 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-common amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [894 kB] Get:38 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.3-xml amd64 7.3.5-1+ubuntu16.04.1+deb.sury.org+1 [103 kB] Get:39 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-xml all 2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3 [6,028 B] Get:40 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-pear all 1:1.10.8+submodules+notgz-1+ubuntu16.04.1+deb.sury.org+1 [287 kB] Get:41 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-gettext all 1.0.11-2+deb.sury.org~xenial+1 [15.9 kB] Get:42 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.3-mbstring amd64 7.3.5-1+ubuntu16.04.1+deb.sury.org+1 [508 kB] Get:43 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-mbstring all 2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3 [6,020 B] Get:44 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.0-mcrypt amd64 7.0.33-7+ubuntu16.04.1+deb.sury.org+1 [14.5 kB] Get:45 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.3-mysql amd64 7.3.5-1+ubuntu16.04.1+deb.sury.org+1 [116 kB] Get:46 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-mysql all 2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3 [6,008 B] Fetched 21.3 MB in 13s (1,553 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... Selecting previously unselected package libxau6:amd64. (Reading database ... 43832 files and directories currently installed.) Preparing to unpack .../libxau6_1%3a1.0.8-1_amd64.deb ... Unpacking libxau6:amd64 (1:1.0.8-1) ... Selecting previously unselected package libjpeg-turbo8:amd64. Preparing to unpack .../libjpeg-turbo8_1.4.2-0ubuntu3.1_amd64.deb ... Unpacking libjpeg-turbo8:amd64 (1.4.2-0ubuntu3.1) ... Selecting previously unselected package libxdmcp6:amd64. Preparing to unpack .../libxdmcp6_1%3a1.1.2-1.1_amd64.deb ... Unpacking libxdmcp6:amd64 (1:1.1.2-1.1) ... Selecting previously unselected package libxcb1:amd64. Preparing to unpack .../libxcb1_1.11.1-1ubuntu1_amd64.deb ... Unpacking libxcb1:amd64 (1.11.1-1ubuntu1) ... Selecting previously unselected package libx11-data. Preparing to unpack .../libx11-data_2%3a1.6.3-1ubuntu2.1_all.deb ... Unpacking libx11-data (2:1.6.3-1ubuntu2.1) ... Selecting previously unselected package libx11-6:amd64. Preparing to unpack .../libx11-6_2%3a1.6.3-1ubuntu2.1_amd64.deb ... Unpacking libx11-6:amd64 (2:1.6.3-1ubuntu2.1) ... Selecting previously unselected package dbconfig-common. Preparing to unpack .../dbconfig-common_2.0.4ubuntu1_all.deb ... Unpacking dbconfig-common (2.0.4ubuntu1) ... Selecting previously unselected package dbconfig-mysql. Preparing to unpack .../dbconfig-mysql_2.0.4ubuntu1_all.deb ... Unpacking dbconfig-mysql (2.0.4ubuntu1) ... Selecting previously unselected package fonts-dejavu-core. Preparing to unpack .../fonts-dejavu-core_2.35-1_all.deb ... Unpacking fonts-dejavu-core (2.35-1) ... Selecting previously unselected package fontconfig-config. Preparing to unpack .../fontconfig-config_2.11.94-0ubuntu1.1_all.deb ... Unpacking fontconfig-config (2.11.94-0ubuntu1.1) ... Selecting previously unselected package javascript-common. Preparing to unpack .../javascript-common_11_all.deb ... Unpacking javascript-common (11) ... Selecting previously unselected package libfontconfig1:amd64. Preparing to unpack .../libfontconfig1_2.11.94-0ubuntu1.1_amd64.deb ... Unpacking libfontconfig1:amd64 (2.11.94-0ubuntu1.1) ... Selecting previously unselected package libjpeg8:amd64. Preparing to unpack .../libjpeg8_8c-2ubuntu8_amd64.deb ... Unpacking libjpeg8:amd64 (8c-2ubuntu8) ... Selecting previously unselected package libjbig0:amd64. Preparing to unpack .../libjbig0_2.1-3.1+deb.sury.org~xenial+1_amd64.deb ... Unpacking libjbig0:amd64 (2.1-3.1+deb.sury.org~xenial+1) ... Selecting previously unselected package libtiff5:amd64. Preparing to unpack .../libtiff5_4.0.6-1ubuntu0.6_amd64.deb ... Unpacking libtiff5:amd64 (4.0.6-1ubuntu0.6) ... Selecting previously unselected package libwebp6:amd64. Preparing to unpack .../libwebp6_0.6.0-4+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking libwebp6:amd64 (0.6.0-4+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package libxpm4:amd64. Preparing to unpack .../libxpm4_1%3a3.5.11-1ubuntu0.16.04.1_amd64.deb ... Unpacking libxpm4:amd64 (1:3.5.11-1ubuntu0.16.04.1) ... Selecting previously unselected package libgd3:amd64. Preparing to unpack .../libgd3_2.2.5-5.1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking libgd3:amd64 (2.2.5-5.1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../libjs-jquery_1.11.3+dfsg-4_all.deb ... Unpacking libjs-jquery (1.11.3+dfsg-4) ... Selecting previously unselected package libjs-underscore. Preparing to unpack .../libjs-underscore_1.7.0~dfsg-1ubuntu1_all.deb ... Unpacking libjs-underscore (1.7.0~dfsg-1ubuntu1) ... Selecting previously unselected package libjs-sphinxdoc. Preparing to unpack .../libjs-sphinxdoc_1.3.6-2ubuntu1.2_all.deb ... Unpacking libjs-sphinxdoc (1.3.6-2ubuntu1.2) ... Selecting previously unselected package libmcrypt4. Preparing to unpack .../libmcrypt4_2.5.8-3.3_amd64.deb ... Unpacking libmcrypt4 (2.5.8-3.3) ... Selecting previously unselected package libxslt1.1:amd64. Preparing to unpack .../libxslt1.1_1.1.28-2.1ubuntu0.2_amd64.deb ... Unpacking libxslt1.1:amd64 (1.1.28-2.1ubuntu0.2) ... Selecting previously unselected package php7.3-common. Preparing to unpack .../php7.3-common_7.3.5-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.3-common (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php7.3-gd. Preparing to unpack .../php7.3-gd_7.3.5- 1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.3-gd (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php-gd. Preparing to unpack .../php-gd_2%3a7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3_all.deb ... Unpacking php-gd (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Preparing to unpack .../php7.0-json_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-json (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Preparing to unpack .../php7.0-opcache_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-opcache (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Preparing to unpack .../php7.0-fpm_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-fpm (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Preparing to unpack .../php7.0-readline_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-readline (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Preparing to unpack .../php7.0_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_all.deb ... Unpacking php7.0 (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Preparing to unpack .../php7.0-cli_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-cli (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Preparing to unpack .../php7.0-common_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-common (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) over (7.0.33-0ubuntu0.16.04.4) ... Selecting previously unselected package php7.3-xml. Preparing to unpack .../php7.3-xml_7.3.5-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.3-xml (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php-xml. Preparing to unpack .../php-xml_2%3a7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3_all.deb ... Unpacking php-xml (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Selecting previously unselected package php-pear. Preparing to unpack .../php-pear_1%3a1.10.8+submodules+notgz-1+ubuntu16.04.1+deb.sury.org+1_all.deb ... Unpacking php-pear (1:1.10.8+submodules+notgz-1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php-gettext. Preparing to unpack .../php-gettext_1.0.11-2+deb.sury.org~xenial+1_all.deb ... Unpacking php-gettext (1.0.11-2+deb.sury.org~xenial+1) ... Selecting previously unselected package php7.3-mbstring. Preparing to unpack .../php7.3-mbstring_7.3.5-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.3-mbstring (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php-mbstring. Preparing to unpack .../php-mbstring_2%3a7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3_all.deb ... Unpacking php-mbstring (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Selecting previously unselected package php7.0-mcrypt. Preparing to unpack .../php7.0-mcrypt_7.0.33-7+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.0-mcrypt (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php-mcrypt. Preparing to unpack .../php-mcrypt_1%3a7.0+35ubuntu6.1_all.deb ... Unpacking php-mcrypt (1:7.0+35ubuntu6.1) ... Selecting previously unselected package php7.3-mysql. Preparing to unpack .../php7.3-mysql_7.3.5-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking php7.3-mysql (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package php-mysql. Preparing to unpack .../php-mysql_2%3a7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3_all.deb ... Unpacking php-mysql (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Selecting previously unselected package php-phpseclib. Preparing to unpack .../php-phpseclib_2.0.1-1build1_all.deb ... Unpacking php-phpseclib (2.0.1-1build1) ... Selecting previously unselected package php-tcpdf. Preparing to unpack .../php-tcpdf_6.0.093+dfsg-1ubuntu1_all.deb ... Unpacking php-tcpdf (6.0.093+dfsg-1ubuntu1) ... Selecting previously unselected package phpmyadmin. Preparing to unpack .../phpmyadmin_4%3a4.5.4.1-2ubuntu2.1_all.deb ... Unpacking phpmyadmin (4:4.5.4.1-2ubuntu2.1) ... Processing triggers for libc-bin (2.23-0ubuntu11) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for ureadahead (0.100.0-19.1) ... Processing triggers for systemd (229-4ubuntu21.21) ... Setting up libxau6:amd64 (1:1.0.8-1) ... Setting up libjpeg-turbo8:amd64 (1.4.2-0ubuntu3.1) ... Setting up libxdmcp6:amd64 (1:1.1.2-1.1) ... Setting up libxcb1:amd64 (1.11.1-1ubuntu1) ... Setting up libx11-data (2:1.6.3-1ubuntu2.1) ... Setting up libx11-6:amd64 (2:1.6.3-1ubuntu2.1) ... Setting up dbconfig-common (2.0.4ubuntu1) ... Creating config file /etc/dbconfig-common/config with new version Setting up dbconfig-mysql (2.0.4ubuntu1) ... Setting up fonts-dejavu-core (2.35-1) ... Setting up fontconfig-config (2.11.94-0ubuntu1.1) ... Setting up javascript-common (11) ... apache2_invoke: Enable configuration javascript-common Setting up libfontconfig1:amd64 (2.11.94-0ubuntu1.1) ... Setting up libjpeg8:amd64 (8c-2ubuntu8) ... Setting up libjbig0:amd64 (2.1-3.1+deb.sury.org~xenial+1) ... Setting up libtiff5:amd64 (4.0.6-1ubuntu0.6) ... Setting up libwebp6:amd64 (0.6.0-4+ubuntu16.04.1+deb.sury.org+1) ... Setting up libxpm4:amd64 (1:3.5.11-1ubuntu0.16.04.1) ... Setting up libgd3:amd64 (2.2.5-5.1+ubuntu16.04.1+deb.sury.org+1) ... Setting up libjs-jquery (1.11.3+dfsg-4) ... Setting up libjs-underscore (1.7.0~dfsg-1ubuntu1) ... Setting up libjs-sphinxdoc (1.3.6-2ubuntu1.2) ... Setting up libmcrypt4 (2.5.8-3.3) ... Setting up libxslt1.1:amd64 (1.1.28-2.1ubuntu0.2) ... Setting up php7.3-common (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Creating config file /etc/php/7.3/mods-available/calendar.ini with new version Creating config file /etc/php/7.3/mods-available/ctype.ini with new version Creating config file /etc/php/7.3/mods-available/exif.ini with new version Creating config file /etc/php/7.3/mods-available/fileinfo.ini with new version Creating config file /etc/php/7.3/mods-available/ftp.ini with new version Creating config file /etc/php/7.3/mods-available/gettext.ini with new version Creating config file /etc/php/7.3/mods-available/iconv.ini with new version Creating config file /etc/php/7.3/mods-available/pdo.ini with new version Creating config file /etc/php/7.3/mods-available/phar.ini with new version Creating config file /etc/php/7.3/mods-available/posix.ini with new version Creating config file /etc/php/7.3/mods-available/shmop.ini with new version Creating config file /etc/php/7.3/mods-available/sockets.ini with new version Creating config file /etc/php/7.3/mods-available/sysvmsg.ini with new version Creating config file /etc/php/7.3/mods-available/sysvsem.ini with new version Creating config file /etc/php/7.3/mods-available/sysvshm.ini with new version Creating config file /etc/php/7.3/mods-available/tokenizer.ini with new version Setting up php7.3-gd (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Creating config file /etc/php/7.3/mods-available/gd.ini with new version Setting up php-gd (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Setting up php7.0-common (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Setting up php7.0-json (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Setting up php7.0-opcache (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Setting up php7.0-readline (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Setting up php7.0-cli (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Replacing config file /etc/php/7.0/cli/php.ini with new version Setting up php7.0-fpm (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Installing new version of config file /etc/apache2/conf- available/php7.0-fpm.conf ... Installing new version of config file /etc/init.d/php7.0-fpm ... Installing new version of config file /etc/init/php7.0-fpm.conf ... NOTICE: Not enabling PHP 7.0 FPM by default. NOTICE: To enable PHP 7.0 FPM in Apache2 do: NOTICE: a2enmod proxy_fcgi setenvif NOTICE: a2enconf php7.0-fpm NOTICE: You are seeing this message because you have apache2 package installed. Setting up php7.0 (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Setting up php7.3-xml (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Creating config file /etc/php/7.3/mods-available/dom.ini with new version Creating config file /etc/php/7.3/mods-available/simplexml.ini with new version Creating config file /etc/php/7.3/mods-available/wddx.ini with new version Creating config file /etc/php/7.3/mods-available/xml.ini with new version Creating config file /etc/php/7.3/mods-available/xmlreader.ini with new version Creating config file /etc/php/7.3/mods-available/xmlwriter.ini with new version Creating config file /etc/php/7.3/mods-available/xsl.ini with new version Setting up php-xml (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Setting up php-pear (1:1.10.8+submodules+notgz-1+ubuntu16.04.1+deb.sury.org+1) ... Setting up php-gettext (1.0.11-2+deb.sury.org~xenial+1) ... Setting up php7.3-mbstring (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Creating config file /etc/php/7.3/mods-available/mbstring.ini with new version Setting up php-mbstring (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Setting up php7.0-mcrypt (7.0.33-7+ubuntu16.04.1+deb.sury.org+1) ... Creating config file /etc/php/7.0/mods-available/mcrypt.ini with new version Setting up php-mcrypt (1:7.0+35ubuntu6.1) ... Setting up php7.3-mysql (7.3.5-1+ubuntu16.04.1+deb.sury.org+1) ... Creating config file /etc/php/7.3/mods-available/mysqlnd.ini with new version Creating config file /etc/php/7.3/mods-available/mysqli.ini with new version Creating config file /etc/php/7.3/mods-available/pdo_mysql.ini with new version Setting up php-mysql (2:7.3+69+ubuntu16.04.1+deb.sury.org+2+php7.3) ... Setting up php-phpseclib (2.0.1-1build1) ... Setting up php-tcpdf (6.0.093+dfsg-1ubuntu1) ... Setting up phpmyadmin (4:4.5.4.1-2ubuntu2.1) ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version Creating config file /etc/phpmyadmin/config-db.php with new version granting access to database phpmyadmin for phpmyadmin@localhost: success. verifying access for phpmyadmin@localhost: success. creating database phpmyadmin: success. verifying database phpmyadmin exists: success. populating database via sql... done. dbconfig-common: flushing administrative password Processing triggers for libc-bin (2.23-0ubuntu11) ... Processing triggers for ureadahead (0.100.0-19.1) ... Processing triggers for systemd (229-4ubuntu21.21) ... Processing triggers for php7.0-fpm (7.0.33- 7+ubuntu16.04.1+deb.sury.org+1) ... NOTICE: Not enabling PHP 7.0 FPM by default. NOTICE: To enable PHP 7.0 FPM in Apache2 do: NOTICE: a2enmod proxy_fcgi setenvif NOTICE: a2enconf php7.0-fpm NOTICE: You are seeing this message because you have apache2 package installed. </code></pre> <p>But as you can see it takes effect only on PHP7, that I don't use. And if i write <a href="http://domain/phpmyadmin" rel="nofollow noreferrer">http://domain/phpmyadmin</a> the page's not found.</p> <p>HOW TO CONFIGURE IT FOR PHP5? P.S. I don't have jet ssl (HTTPS) enabled.</p> <p>Thinked more simple...</p> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

win10暴力查看wifi密码

刚才邻居打了个电话说:喂小灰,你家wifi的密码是多少,我怎么连不上了。 我。。。 我也忘了哎,就找到了一个好办法,分享给大家: 第一种情况:已经连接上的wifi,怎么知道密码? 打开:控制面板\网络和 Internet\网络连接 然后右击wifi连接的无线网卡,选择状态 然后像下图一样: 第二种情况:前提是我不知道啊,但是我以前知道密码。 此时可以利用dos命令了 1、利用netsh wlan...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

!大部分程序员只会写3年代码

如果世界上都是这种不思进取的软件公司,那别说大部分程序员只会写 3 年代码,恐怕就没有程序员这种职业。

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

美团面试,问了ThreadLocal原理,这个回答让我通过了

他想都想不到,ThreadLocal我烂熟于心

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

立即提问
相关内容推荐