Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
Install PHP without Apache
These installs were preformed on Debian 10 Buster
Clean install without Apache
No previous installs of PHP nor Apache were preformed since Debian was installed
In aptitude
- search for ^php$
- do + (This selects the latest stable PHP version for the installed Debian release: PHP 7.3)
- search for ^php-fpm$
- do +
- search for ^php-curl$ ( Needed for composer 2 )
- do +
- do g
- select apache2
- do - (deselect, uninstall)
- this also unselects
- apache2-data
- apache2-utils
- repeat for libapache2-mod-php7.3 which also unselects
- apace2-bin
- libapr1
- libaprutil1
- libaprutil1-dbd-sqlite3
- libaprutil1-ldap
- ssl-cert
- do g again and thereby install PHP. This will install, from /var/log/aptitude
Check, in a terminal, if PHP works with
php -r 'echo "Hello\n";'
Clean install with Apache post uninstall
No previous installs of PHP nor Apache were preformed since Debian was installed
In aptitude
- search for ^php$
- do + (This selects the latest stable PHP version for the installed Debian release: PHP 7.3)
- search for ^php-fpm$
- do +
- do g and again g and thereby install PHP. This will install, from /var/log/aptitude
Will install 19 packages, and remove 0 packages. 26.0 MB of disk space will be used ======================================== [INSTALL, DEPENDENCIES] apache2:amd64 2.4.38-3+deb10u5 [INSTALL, DEPENDENCIES] apache2-bin:amd64 2.4.38-3+deb10u5 [INSTALL, DEPENDENCIES] apache2-data:amd64 2.4.38-3+deb10u5 [INSTALL, DEPENDENCIES] apache2-utils:amd64 2.4.38-3+deb10u5 [INSTALL, DEPENDENCIES] libapache2-mod-php7.3:amd64 7.3.29-1~deb10u1 [INSTALL, DEPENDENCIES] libapr1:amd64 1.6.5-1+b1 [INSTALL, DEPENDENCIES] libaprutil1:amd64 1.6.1-4 [INSTALL, DEPENDENCIES] libaprutil1-dbd-sqlite3:amd64 1.6.1-4 [INSTALL, DEPENDENCIES] libaprutil1-ldap:amd64 1.6.1-4 [INSTALL, DEPENDENCIES] liblua5.2-0:amd64 5.2.4-1.1+b2 [INSTALL, DEPENDENCIES] libsodium23:amd64 1.0.17-1 [INSTALL, DEPENDENCIES] php-common:amd64 2:69 [INSTALL, DEPENDENCIES] php7.3-cli:amd64 7.3.29-1~deb10u1 [INSTALL, DEPENDENCIES] php7.3-common:amd64 7.3.29-1~deb10u1 [INSTALL, DEPENDENCIES] php7.3-json:amd64 7.3.29-1~deb10u1 [INSTALL, DEPENDENCIES] php7.3-opcache:amd64 7.3.29-1~deb10u1 [INSTALL, DEPENDENCIES] php7.3-readline:amd64 7.3.29-1~deb10u1 [INSTALL, DEPENDENCIES] ssl-cert:amd64 1.0.39 [INSTALL] php7.3:amd64 7.3.29-1~deb10u1 ========================================
Uninstall Apache
- In aptitude select apache2
- do _ (purge)
- this also selects apache2-data and apache2-utils
- repeat for libapache2-mod-php7.3 which also selects apace2-bin
- libapr1, libaprutil1, libaprutil1-dbd-sqlite3, libaprutil1-ldap, liblua5.2-0 and ssl-cert will also be uninstalled (no longer used)
The Apache2 uninstall log can be found here
Install after uninstall
After we did an install with Apache included, uninstalled it and did In aptitude
- search for ^php7.3$
- do +
- search for ^php7.3-fpm$
- do +
- do g
- select apache2
- do _ (purge)
- repeat for apace2-bin, libapache2-mod-php7.3, apache2-utils
- do g and thereby install PHP
and got:*
Not replacing deleted config file /etc/php/7.3/mods-available/opcache.ini WARNING: Module opcache ini file doesn't exist under /etc/php/7.3/mods-available Not replacing deleted config file /etc/php/7.3/mods-available/json.ini WARNING: Module json ini file doesn't exist under /etc/php/7.3/mods-available Not replacing deleted config file /etc/php/7.3/mods-available/readline.ini WARNING: Module readline ini file doesn't exist under /etc/php/7.3/mods-available
Isseus
On our first install, without ^php7.3-fpm$, opcache.ini, json.ini and readline.ini installed fine
We did not need Apache so we undid the whole install
On then next install we got the warning messages*. One more time uninstalling and installing again and we got an extra, identical, warning line added
Reintalling (L in aptitude) did not solve the issue
Solution: We installed PHP with Apache on an other computer, copied opcache.ini, json.ini and readline.ini to the first computer. Now PHP worked fine on the first computer
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.