This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
informatica:servidor_internet_2009_debian_10_part_1 [2022/08/09 16:36] miquel [Actualització a Debian 10.12 "buster" - Agost de 2022] |
informatica:servidor_internet_2009_debian_10_part_1 [2022/08/10 14:42] (current) miquel [Referències] |
||
---|---|---|---|
Line 5: | Line 5: | ||
Debian 10.12 es va publicar el 26 de març de 2022. Debian 10.0 es va publicar inicialment el 6 de juliol de 2019. | Debian 10.12 es va publicar el 26 de març de 2022. Debian 10.0 es va publicar inicialment el 6 de juliol de 2019. | ||
- | Aquesta pàgina conté la descripció detallada del procés d' | + | Aquesta pàgina conté |
Les instruccions i recomanacions per instal·lar Debian 9 " | Les instruccions i recomanacions per instal·lar Debian 9 " | ||
Line 819: | Line 818: | ||
- | ==== Instal·lació de PHP5 ==== | ||
- | Segueixo les instruccions a [[https:// | ||
- | |||
- | Primer edito el contingut del fitxer /// | ||
- | |||
- | < | ||
- | $ cat / | ||
- | ## deb [signed-by=/ | ||
- | |||
- | deb https:// | ||
- | |||
- | # apt update | ||
- | Hit:1 http:// | ||
- | Hit:2 http:// | ||
- | Get:3 https:// | ||
- | Hit:4 http:// | ||
- | Hit:5 http:// | ||
- | Get:6 http:// | ||
- | Get:7 https:// | ||
- | Get:8 http:// | ||
- | Get:9 http:// | ||
- | Fetched 4,200 kB in 2s (2,766 kB/s) | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | 54 packages can be upgraded. Run 'apt list --upgradable' | ||
- | root@sermnserver:/ | ||
- | Listing... Done | ||
- | enchant/ | ||
- | libapache2-mod-php7.0/ | ||
- | ... | ||
- | Get:68 https:// | ||
- | Get:69 https:// | ||
- | Fetched 25.3 MB in 2s (10.2 MB/s) | ||
- | Reading changelogs... Done | ||
- | Extracting templates from packages: 100% | ||
- | (Reading database ... 220576 files and directories currently installed.) | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | </ | ||
- | |||
- | < | ||
- | # php -v | ||
- | PHP 8.1.8 (cli) (built: Jul 11 2022 08:53:35) (NTS) | ||
- | Copyright (c) The PHP Group | ||
- | Zend Engine v4.1.8, Copyright (c) Zend Technologies | ||
- | with Zend OPcache v8.1.8, Copyright (c), by Zend Technologies | ||
- | |||
- | # apt install php5.6 | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following package was automatically installed and is no longer required: | ||
- | php7.3-mysql | ||
- | Use 'apt autoremove' | ||
- | The following additional packages will be installed: | ||
- | libapache2-mod-php5.6 php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-readline | ||
- | The following NEW packages will be installed: | ||
- | libapache2-mod-php5.6 php5.6 php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-readline | ||
- | 0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded. | ||
- | Need to get 3,662 kB of archives. | ||
- | After this operation, 14.2 MB of additional disk space will be used. | ||
- | Do you want to continue? [Y/n] | ||
- | Get:1 https:// | ||
- | Get:2 https:// | ||
- | Get:3 https:// | ||
- | Get:4 https:// | ||
- | Get:5 https:// | ||
- | Get:6 https:// | ||
- | Get:7 https:// | ||
- | Fetched 3,662 kB in 0s (7,763 kB/s) | ||
- | Selecting previously unselected package php5.6-common. | ||
- | (Reading database ... 220795 files and directories currently installed.) | ||
- | Preparing to unpack .../ | ||
- | Unpacking php5.6-common (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | Selecting previously unselected package php5.6-json. | ||
- | Preparing to unpack .../ | ||
- | Unpacking php5.6-json (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | ... | ||
- | Creating config file / | ||
- | Setting up php5.6-readline (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | |||
- | Creating config file / | ||
- | Setting up php5.6-cli (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | |||
- | Creating config file / | ||
- | Setting up libapache2-mod-php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | |||
- | Creating config file / | ||
- | libapache2-mod-php5.6: | ||
- | Setting up php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | Processing triggers for man-db (2.8.5-2) ... | ||
- | Processing triggers for php5.6-cli (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | Processing triggers for libapache2-mod-php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | |||
- | # update-alternatives --set php / | ||
- | update-alternatives: | ||
- | |||
- | # php -v | ||
- | PHP 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd (cli) | ||
- | Copyright (c) 1997-2016 The PHP Group | ||
- | Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies | ||
- | with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies | ||
- | </ | ||
- | |||
- | |||
- | ==== Fix Bumblebee problems ==== | ||
- | |||
- | El programa Bumblebee (servidor de reserves) dóna diversos errors. | ||
- | |||
- | < | ||
- | # tail / | ||
- | [Sun Aug 07 12: | ||
- | / | ||
- | [Sun Aug 07 12: | ||
- | / | ||
- | </ | ||
- | |||
- | Una consulta a Google indica que [[https:// | ||
- | |||
- | < | ||
- | # apt search php5* | grep mbstring | ||
- | |||
- | WARNING: apt does not have a stable CLI interface. Use with caution in scripts. | ||
- | |||
- | php-mbstring/ | ||
- | php5.6-mbstring/ | ||
- | php5.6-mbstring-dbgsym/ | ||
- | debug symbols for php5.6-mbstring | ||
- | ... | ||
- | |||
- | # apt install php5.6-mbstring | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following NEW packages will be installed: | ||
- | php5.6-mbstring | ||
- | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | ||
- | Need to get 468 kB of archives. | ||
- | After this operation, 1,514 kB of additional disk space will be used. | ||
- | Get:1 https:// | ||
- | Fetched 468 kB in 0s (2,757 kB/s) | ||
- | Selecting previously unselected package php5.6-mbstring. | ||
- | (Reading database ... 226308 files and directories currently installed.) | ||
- | Preparing to unpack .../ | ||
- | Unpacking php5.6-mbstring (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | Setting up php5.6-mbstring (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | |||
- | Creating config file / | ||
- | Processing triggers for libapache2-mod-php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | Processing triggers for php5.6-cli (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ... | ||
- | |||
- | # apache2ctl restart | ||
- | </ | ||
- | |||
- | i el problema sembla haver-se resolt, però quan intento crear una reserva surt un nou missatge d' | ||
- | |||
- | < | ||
- | 2022-08-07 11:47:50 15798 [Warning] Aborted connection 15798 to db: ' | ||
- | </ | ||
- | |||
- | Una cerca a Google indica que [[https:// | ||
- | |||
- | La solució és assignar un nou valor a aquesta variable a la secció '' | ||
- | |||
- | < | ||
- | # / | ||
- | # cp 50-server.cnf 50-server.cnf.BKUP-20220807 | ||
- | # vi 50-server.cnf | ||
- | </ | ||
- | |||
- | i afegir les línies | ||
- | |||
- | <code diff> | ||
- | # diff 50-server.cnf 50-server.cnf.BKUP-20220807 | ||
- | 45,53d44 | ||
- | < # * Local Tuning - MCE - 20220807 | ||
- | < # | ||
- | < # MySQL Got timeout reading communication packets when reading federated table | ||
- | < # https:// | ||
- | < # | ||
- | < wait_timeout=3600 | ||
- | < | ||
- | < | ||
- | < # | ||
- | 73,77c64,68 | ||
- | < slow_query_log_file | ||
- | < long_query_time | ||
- | < log_slow_rate_limit | ||
- | < log_slow_verbosity | ||
- | < log-queries-not-using-indexes | ||
- | --- | ||
- | > # | ||
- | > # | ||
- | > # | ||
- | > # | ||
- | > # | ||
- | </ | ||
- | |||
- | Referències: | ||
- | |||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | |||
- | Amb aquest canvi, desapareix aquest error, però llavors apareix un de nou, | ||
- | |||
- | < | ||
- | [Sun Aug 07 16: | ||
- | / | ||
- | [Sun Aug 07 16: | ||
- | / | ||
- | </ | ||
- | |||
- | que sembla indicar que hi ha un problema d' | ||
- | |||
- | < | ||
- | # mariadb bmbdb117 -u sermnadmin -p | ||
- | Enter password: | ||
- | Reading table information for completion of table and column names | ||
- | You can turn off this feature to get a quicker startup with -A | ||
- | |||
- | Welcome to the MariaDB monitor. | ||
- | Your MariaDB connection id is 670 | ||
- | Server version: 10.3.34-MariaDB-0+deb10u1 Debian 10 | ||
- | |||
- | Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. | ||
- | |||
- | Type ' | ||
- | |||
- | MariaDB [bmbdb117]> | ||
- | +---------------------------+ | ||
- | | Tables_in_bmbdb117 | ||
- | +---------------------------+ | ||
- | | ACTIVE_USERS | ||
- | | bookings | ||
- | | consumables | ||
- | | consumables_use | ||
- | | costs | | ||
- | | groups | ||
- | | instrumentclass | ||
- | | instruments | ||
- | | permissions | ||
- | | permissions.BKUP-20210517 | | ||
- | | permissions.BKUP-20210607 | | ||
- | | permissions.BKUP-20211215 | | ||
- | | projectgroups | ||
- | | projectrates | ||
- | | projects | ||
- | | roleusers | ||
- | | userclass | ||
- | | usergroups | ||
- | | userprojects | ||
- | | users | | ||
- | | users.BKUP-20210914 | ||
- | +---------------------------+ | ||
- | 21 rows in set (0.000 sec) | ||
- | |||
- | MariaDB [bmbdb117]> | ||
- | +------------+----------------------+------+-----+---------+----------------+ | ||
- | | Field | Type | Null | Key | Default | Extra | | ||
- | +------------+----------------------+------+-----+---------+----------------+ | ||
- | | id | int(10) unsigned | ||
- | | bookwhen | ||
- | | duration | ||
- | | instrument | smallint(5) unsigned | NO | ||
- | | bookedby | ||
- | | userid | ||
- | | projectid | ||
- | | discount | ||
- | | ip | char(16) | ||
- | | comments | ||
- | | log | text | YES | | NULL | | | ||
- | | deleted | ||
- | +------------+----------------------+------+-----+---------+----------------+ | ||
- | 12 rows in set (0.001 sec) | ||
- | |||
- | MariaDB [bmbdb117]> | ||
- | Bye | ||
- | </ | ||
- | |||
- | Per eliminar l' | ||
- | |||
- | <code diff> | ||
- | # diff db.php db.php.BKUP-20220807 | ||
- | 46c46 | ||
- | < | ||
- | tabase subsystem.</ | ||
- | --- | ||
- | > | ||
- | database subsystem.</ | ||
- | </ | ||
- | |||
- | intento crear una reserva sense èxit, i comprovo el missatge d' | ||
- | |||
- | < | ||
- | 2022-08-07 18:36:08 590 [Warning] Aborted connection 590 to db: ' | ||
- | </ | ||
- | |||
- | Una consulta a Google indica que [[https:// | ||
- | |||
- | Per intentar resoldre l' | ||
- | |||
- | <code diff> | ||
- | # diff 50-server.cnf 50-server.cnf.BKUP-20220807 | ||
- | 34c34 | ||
- | < max_allowed_packet | ||
- | --- | ||
- | > # | ||
- | 45,53d44 | ||
- | < # * Local Tuning - MCE - 20220807 | ||
- | < # | ||
- | < # MySQL Got timeout reading communication packets when reading federated table | ||
- | < # https:// | ||
- | < # | ||
- | < wait_timeout=3600 | ||
- | < | ||
- | < | ||
- | < # | ||
- | 73,77c64,68 | ||
- | < slow_query_log_file | ||
- | < long_query_time | ||
- | < log_slow_rate_limit | ||
- | < log_slow_verbosity | ||
- | < log-queries-not-using-indexes | ||
- | --- | ||
- | > # | ||
- | > # | ||
- | > # | ||
- | > # | ||
- | > # | ||
- | </ | ||
- | |||
- | Però el problema persisteix. | ||
- | |||
- | Finalment, després d' | ||
- | |||
- | <code php> | ||
- | [error_handling] | ||
- | ; Browser error stream: | ||
- | ; Set these to 0 for production systems, 1 for development/ | ||
- | ; Show all SQL statements in the browser | ||
- | ; VerboseSQL = 0 | ||
- | VerboseSQL = 1 | ||
- | ; Show all PHP warnings (such as uninitialised variables) | ||
- | AllWarnings = 1 | ||
- | ; Show a warning if install folder still is in the server location | ||
- | ignore_installer = 1 | ||
- | ; Show all GET and POST data provided by the browser | ||
- | ; VerboseData = 0 | ||
- | VerboseData = 0 | ||
- | ; Use the dBug class from http:// | ||
- | ; and debug output (designed for developer use only; you need to put dBug.php | ||
- | ; somewhere in your include path for this to work). | ||
- | UseDBug = 0 | ||
- | </ | ||
- | |||
- | aconsegueixo veure que l' | ||
- | |||
- | * [[https:// | ||
- | * [[https:// | ||
- | |||
- | trobo que la forma més fàcil de resoldre **provisionalment** el problema, és fer ús de l' | ||
- | |||
- | < | ||
- | Normally INSERT stops and rolls back when it encounters an error. | ||
- | |||
- | By using the IGNORE keyword all errors are converted to warnings, which will not stop inserts of additional rows. | ||
- | |||
- | The IGNORE and DELAYED options are ignored when you use ON DUPLICATE KEY UPDATE. | ||
- | |||
- | Prior to MySQL and MariaDB 5.5.28, no warnings were issued for duplicate key errors when using IGNORE. You can get the old behavior if you set OLD_MODE to NO_DUP_KEY_WARNINGS_WITH_IGNORE. | ||
- | < | ||
- | ([[https:// | ||
- | </ | ||
- | </ | ||
- | |||
- | Per això cal modificar el fitxer ''/ | ||
- | |||
- | <code diff> | ||
- | # diff dbrow.php dbrow.php.BKUP-20220807 | ||
- | 252c252 | ||
- | < $q = ' | ||
- | --- | ||
- | > $q = ' | ||
- | </ | ||
- | |||
- | Després de fer el canvi, comprovo que es poden crear reserves i un nou compte d' | ||
- | |||
- | ==== [PENDENT] Install phpmyadmin ==== | ||
- | |||
- | <WRAP important> | ||
- | La instal·lació de phpmyadmin no s'ha pogut completar perquè requereix PHP-7, però mentre no actualitzi el servidor de reserves, hem de mantenir la versió PHP-5. | ||
- | </ | ||
- | |||
- | |||
- | < | ||
- | # apt install -f phpmyadmin | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | Some packages could not be installed. This may mean that you have | ||
- | requested an impossible situation or if you are using the unstable | ||
- | distribution that some required packages have not yet been created | ||
- | or been moved out of Incoming. | ||
- | The following information may help to resolve the situation: | ||
- | | ||
- | The following packages have unmet dependencies: | ||
- | | ||
- | E: Unable to correct problems, you have held broken packages. | ||
- | |||
- | # apt-cache madison php-twig | ||
- | php-twig | 2.14.3-1~bpo10+1 | http:// | ||
- | php-twig | 2.6.2-2 | http:// | ||
- | twig | 2.6.2-2 | http:// | ||
- | php-twig | 2.14.3-1~bpo10+1 | http:// | ||
- | root@sermnserver:/ | ||
- | phpmyadmin | 4: | ||
- | phpmyadmin | 4: | ||
- | |||
- | # apt install php-twig/ | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | Selected version ' | ||
- | The following package was automatically installed and is no longer required: | ||
- | php7.3-mysql | ||
- | Use 'apt autoremove' | ||
- | Suggested packages: | ||
- | php-twig-doc | ||
- | The following NEW packages will be installed: | ||
- | php-twig | ||
- | 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. | ||
- | Need to get 121 kB of archives. | ||
- | After this operation, 906 kB of additional disk space will be used. | ||
- | Get:1 http:// | ||
- | Fetched 121 kB in 1s (220 kB/s) | ||
- | Selecting previously unselected package php-twig. | ||
- | (Reading database ... 220929 files and directories currently installed.) | ||
- | Preparing to unpack .../ | ||
- | Unpacking php-twig (2.14.3-1~bpo10+1) ... | ||
- | Setting up php-twig (2.14.3-1~bpo10+1) ... | ||
- | |||
- | # apt autoremove | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following packages will be REMOVED: | ||
- | php7.3-mysql | ||
- | 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. | ||
- | After this operation, 458 kB disk space will be freed. | ||
- | Do you want to continue? [Y/n] | ||
- | (Reading database ... 221331 files and directories currently installed.) | ||
- | Removing php7.3-mysql (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4) ... | ||
- | Processing triggers for libapache2-mod-php7.3 (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4) ... | ||
- | root@sermnserver:/ | ||
- | PHP 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd (cli) | ||
- | Copyright (c) 1997-2016 The PHP Group | ||
- | Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies | ||
- | with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies | ||
- | |||
- | # apt install -f phpmyadmin | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following packages were automatically installed and are no longer required: | ||
- | php-gettext php-php-gettext | ||
- | Use 'apt autoremove' | ||
- | The following additional packages will be installed: | ||
- | libc-ares2 libjs-bootstrap4 libjs-codemirror libjs-jquery-mousewheel libjs-jquery-timepicker libjs-openlayers libjs-popper.js libnode64 libuv1 node-jquery nodejs nodejs-doc php-apcu p | ||
- | hp-google-recaptcha | ||
- | php-mariadb-mysql-kbs php-phpmyadmin-motranslator php-phpmyadmin-shapefile php-phpmyadmin-sql-parser php-psr-cache php-psr-container php-psr-log php-psr-simple-cache php-symfony-cache | ||
- | | ||
- | php-symfony-dependency-injection php-symfony-expression-language php-symfony-filesystem php-symfony-yaml php-twig-i18n-extension php8.1-apcu | ||
- | Suggested packages: | ||
- | libjs-requirejs npm php-dbase php-symfony-finder php-symfony-proxy-manager-bridge php-symfony-console php-recode php-gd2 php-pragmarx-google2fa-qrcode php-samyoul-u2f-php-server | ||
- | The following NEW packages will be installed: | ||
- | libc-ares2 libjs-bootstrap4 libjs-codemirror libjs-jquery-mousewheel libjs-jquery-timepicker libjs-openlayers libjs-popper.js libnode64 libuv1 node-jquery nodejs nodejs-doc php-apcu p | ||
- | hp-google-recaptcha | ||
- | php-mariadb-mysql-kbs php-phpmyadmin-motranslator php-phpmyadmin-shapefile php-phpmyadmin-sql-parser php-psr-cache php-psr-container php-psr-log php-psr-simple-cache php-symfony-cache | ||
- | | ||
- | php-symfony-dependency-injection php-symfony-expression-language php-symfony-filesystem php-symfony-yaml php-twig-i18n-extension php8.1-apcu | ||
- | The following packages will be upgraded: | ||
- | phpmyadmin | ||
- | 1 upgraded, 30 newly installed, 0 to remove and 0 not upgraded. | ||
- | Need to get 14.8 MB of archives. | ||
- | After this operation, 60.9 MB of additional disk space will be used. | ||
- | Do you want to continue? [Y/n] | ||
- | Get:1 https:// | ||
- | Get:2 http:// | ||
- | Get:3 https:// | ||
- | ... | ||
- | Get:30 http:// | ||
- | Get:31 http:// | ||
- | Fetched 14.8 MB in 4s (3,653 kB/s) | ||
- | Reading changelogs... Done | ||
- | apt-listchanges: | ||
- | Extracting templates from packages: 100% | ||
- | Preconfiguring packages ... | ||
- | Determining localhost credentials from / | ||
- | Selecting previously unselected package php8.1-apcu. | ||
- | (Reading database ... 221319 files and directories currently installed.) | ||
- | Preparing to unpack .../ | ||
- | Unpacking php8.1-apcu (5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5) ... | ||
- | Selecting previously unselected package php-apcu. | ||
- | Preparing to unpack .../ | ||
- | Unpacking php-apcu (5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5) ... | ||
- | ... | ||
- | Setting up php-phpmyadmin-motranslator (5.2.0-1~bpo10+1) ... | ||
- | Setting up phpmyadmin (4: | ||
- | |||
- | Configuration file '/ | ||
- | | ||
- | | ||
- | What would you like to do about it ? Your options are: | ||
- | Y or I : install the package maintainer' | ||
- | N or O : keep your currently-installed version | ||
- | D : show the differences between the versions | ||
- | Z : start a shell to examine the situation | ||
- | The default action is to keep your current version. | ||
- | *** apache.conf (Y/ | ||
- | |||
- | Configuration file '/ | ||
- | | ||
- | | ||
- | What would you like to do about it ? Your options are: | ||
- | Y or I : install the package maintainer' | ||
- | N or O : keep your currently-installed version | ||
- | D : show the differences between the versions | ||
- | Z : start a shell to examine the situation | ||
- | The default action is to keep your current version. | ||
- | *** config.inc.php (Y/ | ||
- | Installing new version of config file / | ||
- | Determining localhost credentials from / | ||
- | dbconfig-common: | ||
- | creating database backup in / | ||
- | applying upgrade sql for 4: | ||
- | dbconfig-common: | ||
- | The blowfish_secret configured in / | ||
- | A backup of the file has been placed at / | ||
- | The webbased installer was disabled on debian with phpmyadmin version 4.9.1. | ||
- | An existing configuration was found under / | ||
- | A backup of the file has been placed at / | ||
- | apache2_invoke phpmyadmin: no action - configuration was disabled by local admin | ||
- | Processing triggers for hicolor-icon-theme (0.17-2) ... | ||
- | Processing triggers for doc-base (0.10.8) ... | ||
- | Processing 1 changed doc-base file, 2 added doc-base files... | ||
- | Registering documents with dwww... | ||
- | Registering documents with scrollkeeper... | ||
- | Processing triggers for libc-bin (2.28-10+deb10u1) ... | ||
- | Processing triggers for man-db (2.8.5-2) ... | ||
- | Processing triggers for php8.1-cli (8.1.8-1+0~20220711.23+debian10~1.gbp5e9cbc) ... | ||
- | Processing triggers for libapache2-mod-php8.1 (8.1.8-1+0~20220711.23+debian10~1.gbp5e9cbc) ... | ||
- | </ | ||
- | |||
- | però quan intento accedir a PHPMyAdmin em surt el missatge d' | ||
- | |||
- | * PHP 7.1.3+ is required.\\ Currently installed version is: 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd | ||
- | |||
- | de forma que hauré de configurar Apache amb PHP-FPM perquè faci servir diferents versions de PHP en funció de quina aplicació web es visiti, | ||
- | |||
- | ==== [CANCEL·LADA] Configuració d' | ||
- | |||
- | Comprovo quines versions de PHP hi ha instal·lades, | ||
- | |||
- | < | ||
- | # ls -l /etc/php/ | ||
- | total 16 | ||
- | drwxr-xr-x 5 root root 4096 Aug 5 16:04 5.6 | ||
- | drwxr-xr-x 5 root root 4096 Aug 4 22:24 7.0 | ||
- | drwxr-xr-x 5 root root 4096 Aug 5 13:05 7.3 | ||
- | drwxr-xr-x 5 root root 4096 Aug 5 15:47 8.1 | ||
- | </ | ||
- | |||
- | i desinstal·lo la versió 7.0 perquè ja hi ha instal·lada una versió de PHP 7 més actual, | ||
- | |||
- | < | ||
- | # apt remove php7.0 | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following packages will be REMOVED: | ||
- | php7.0 | ||
- | 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. | ||
- | After this operation, 87.0 kB disk space will be freed. | ||
- | Do you want to continue? [Y/n] | ||
- | (Reading database ... 226316 files and directories currently installed.) | ||
- | Removing php7.0 (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ... | ||
- | |||
- | # apt remove php7.0-* | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | Note, selecting ' | ||
- | Note, selecting ' | ||
- | Note, selecting ' | ||
- | ... | ||
- | Package ' | ||
- | Package ' | ||
- | The following packages will be REMOVED: | ||
- | libapache2-mod-php7.0 php7.0-bz2 php7.0-cli php7.0-common php7.0-gd php7.0-json php7.0-mbstring php7.0-opcache php7.0-pgsql php7.0-readline php7.0-xml php7.0-zip | ||
- | 0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded. | ||
- | After this operation, 16.5 MB disk space will be freed. | ||
- | Do you want to continue? [Y/n] Y | ||
- | (Reading database ... 226309 files and directories currently installed.) | ||
- | Removing libapache2-mod-php7.0 (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ... | ||
- | apache2_invoke php7.0 prerm: No action required | ||
- | Removing php7.0-bz2 (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ... | ||
- | ... | ||
- | Removing php7.0-readline (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ... | ||
- | Removing php7.0-common (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ... | ||
- | Processing triggers for man-db (2.8.5-2) ... | ||
- | |||
- | # apt list --installed | grep ^php7\.0 | ||
- | |||
- | WARNING: apt does not have a stable CLI interface. Use with caution in scripts. | ||
- | </ | ||
- | |||
- | Llavors instal·lo els paquets, | ||
- | |||
- | * php5.6-fpm | ||
- | * libapache2-mod-php5.6 | ||
- | * php7.3-fpm | ||
- | * libapache2-mod-php7.3 | ||
- | * libapache2-mod-fcgid | ||
- | |||
- | però al final aquesta solució no em serveix perquè només funciona amb diferents hosts-virtuals, | ||
- | |||
- | < | ||
- | # apt remove php5.6-fpm php7.3-fpm libapache2-mod-fcgid | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following packages will be REMOVED: | ||
- | libapache2-mod-fcgid php5.6-fpm php7.3-fpm | ||
- | ... | ||
- | Registering documents with scrollkeeper... | ||
- | </ | ||
- | |||
- | i comprovo que els corresponents serveis s' | ||
- | |||
- | < | ||
- | # systemctl status php5.6-fpm | ||
- | ? php5.6-fpm.service | ||
- | | ||
- | | ||
- | Main PID: 27345 (code=exited, | ||
- | | ||
- | |||
- | Aug 07 17:20:58 sermnserver systemd[1]: Starting The PHP 5.6 FastCGI Process Manager... | ||
- | Aug 07 17:20:58 sermnserver systemd[1]: Started The PHP 5.6 FastCGI Process Manager. | ||
- | Aug 07 18:36:08 sermnserver systemd[1]: Stopping The PHP 5.6 FastCGI Process Manager... | ||
- | Aug 07 18:36:08 sermnserver systemd[1]: php5.6-fpm.service: | ||
- | Aug 07 18:36:08 sermnserver systemd[1]: Stopped The PHP 5.6 FastCGI Process Manager. | ||
- | |||
- | # systemctl status php7.3-fpm | ||
- | ? php7.3-fpm.service | ||
- | | ||
- | | ||
- | Main PID: 27268 (code=exited, | ||
- | | ||
- | |||
- | Aug 07 17:20:56 sermnserver systemd[1]: Starting The PHP 7.3 FastCGI Process Manager... | ||
- | Aug 07 17:20:56 sermnserver systemd[1]: Started The PHP 7.3 FastCGI Process Manager. | ||
- | Aug 07 18:36:16 sermnserver systemd[1]: Stopping The PHP 7.3 FastCGI Process Manager... | ||
- | Aug 07 18:36:17 sermnserver systemd[1]: php7.3-fpm.service: | ||
- | Aug 07 18:36:17 sermnserver systemd[1]: Stopped The PHP 7.3 FastCGI Process Manager. | ||
- | </ | ||
- | |||
- | Tot seguit desactivo altres mòduls d' | ||
- | |||
- | < | ||
- | # a2dismod actions fcgid proxy_fcgi | ||
- | Module actions already disabled | ||
- | Module fcgid already disabled | ||
- | Module proxy_fcgi disabled. | ||
- | To activate the new configuration, | ||
- | systemctl restart apache2 | ||
- | </ | ||
- | |||
- | Finalment, reinicio Apache per aplicar els canvis: | ||
- | |||
- | < | ||
- | # apache2ctl configtest | ||
- | Syntax OK | ||
- | # systemctl restart apache2 | ||
- | </ | ||
Line 1523: | Line 832: | ||
* [[https:// | * [[https:// | ||
- | + | <WRAP box > | |
+ | **Continuació: | ||
+ | </ |