Hello, i did new clear install, I would like to install PHP version, so i try this manual How to install PHP 5.6 and 7.0 - 8.2 with PHP-FPM and FastCGI mode for ISPConfig 3.2 with apt on Ubuntu 18.04 - 22.04 (howtoforge.com) . When i wrote command, i get command not found. So i tried to install sudo apt install software-properties-common now i can use sudo add-apt-repository ppandrej/php but i get Code: root@samantos:~# sudo add-apt-repository ppa:ondrej/php Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 362, in <module> sys.exit(0 if addaptrepo.main() else 1) ^^^^^^^^^^^^^^^^^ File "/usr/bin/add-apt-repository", line 345, in main shortcut = handler(source, **shortcut_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler return handler(shortcut, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 86, in __init__ if self.lpppa.publish_debug_symbols: ^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 126, in lpppa self._lpppa = self.lpteam.getPPAByName(name=self.ppaname) ^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 113, in lpteam self._lpteam = self.lp.people(self.teamname) ^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'people' In case i type command to install PHP version, i get Code: E: Unable to locate package php7.0-mbstring E: Couldn't find any package by glob 'php7.0-mbstring' E: Couldn't find any package by regex 'php7.0-mbstring' E: Unable to locate package php7.0-soap E: Couldn't find any package by glob 'php7.0-soap' E: Couldn't find any package by regex 'php7.0-soap' E: Unable to locate package php7.0-opcache E: Couldn't find any package by glob 'php7.0-opcache' E: Couldn't find any package by regex 'php7.0-opcache' E: Package 'php7.0-common' has no installation candidate E: Unable to locate package php7.0-json E: Couldn't find any package by glob 'php7.0-json' E: Couldn't find any package by regex 'php7.0-json' E: Unable to locate package php7.0-readline E: Couldn't find any package by glob 'php7.0-readline' E: Couldn't find any package by regex 'php7.0-readline' E: Unable to locate package php7.0-xml E: Couldn't find any package by glob 'php7.0-xml' E: Couldn't find any package by regex 'php7.0-xml' In case i do apt update, get Code: W: http://rspamd.com/apt-stable/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. Any idea please? And second, i can not acces to webmail, I see just forbidden page on mydomain:8080/webmail with SSL. What should i check? I follow step by step your manual here on howtoforge.
Problem with webmail solved. In tutorial perfect server you have Code: Alias /roundcube /var/lib/roundcube Alias /webmail /var/lib/roundcube but right way is Code: Alias /roundcube /var/lib/roundcube/public_html Alias /webmail /var/lib/roundcube/public_html So now i have to solved just problem with repository surry to install php.
As suggested before, I would reinstall the server and not fiddle around too much manually with things, as it breaks more than it fixes.
I install python3-launchpadlib. Now i can see Code: PPA publishes dbgsym, you may need to include 'main/debug' component Repository: 'deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ bookworm main' Description: Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided. Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa You can get more information about the packages at https://deb.sury.org IMPORTANT: The <foo>-backports is now required on older Ubuntu releases. BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting CAVEATS: 1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman 2. If you are using apache2, you are advised to add ppa:ondrej/apache2 3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline or ppa:ondrej/nginx PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/ WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround: # LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php More info: https://launchpad.net/~ondrej/+archive/ubuntu/php Adding repository. Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-bookworm.list Adding deb entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-bookworm.list Found existing deb-src entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-bookworm.list Adding disabled deb-src entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-bookworm.list Adding key to /etc/apt/trusted.gpg.d/ondrej-ubuntu-php.gpg with fingerprint 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C Hit:1 http://security.debian.org/debian-security bookworm-security InRelease Hit:2 http://deb.debian.org/debian bookworm InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://rspamd.com/apt-stable bookworm InRelease Ign:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm InRelease Err:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm Release 404 Not Found [IP: 185.125.190.52 443] Hit:7 https://deb.goaccess.io bookworm InRelease Reading package lists... Done E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. root@samantos:~# In case i want to install any php, i get Code: ldn't find any package by regex 'php8.1-zip' E: Unable to locate package php8.1-mbstring E: Couldn't find any package by glob 'php8.1-mbstring' E: Couldn't find any package by regex 'php8.1-mbstring' E: Unable to locate package php8.1-soap E: Couldn't find any package by glob 'php8.1-soap' E: Couldn't find any package by regex 'php8.1-soap' E: Unable to locate package php8.1-opcache E: Couldn't find any package by glob 'php8.1-opcache' E: Couldn't find any package by regex 'php8.1-opcache' E: Package 'php8.1-common' has no installation candidate E: Unable to locate package php8.1-readline E: Couldn't find any package by glob 'php8.1-readline' E: Couldn't find any package by regex 'php8.1-readline' E: Unable to locate package php8.1-xml E: Couldn't find any package by glob 'php8.1-xml' E: Couldn't find any package by regex 'php8.1-xml'
I reinstall all debian, did clear install of debian 12 from iso step by step from your manual and install ispconfig by your manual. All is working, only i can not install to php version.
Just can not install php version, i still get Code: E: Couldn't find any package by regex 'php7.0-readline' I guess i have to add Code: add-apt-repository -y ppa:ondrej/php But is not possible, i get Code: root@samantos:~# add-apt-repository -y ppa:ondrej/php PPA publishes dbgsym, you may need to include 'main/debug' component Repository: 'deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ bookworm main' Description: Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided. Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa You can get more information about the packages at https://deb.sury.org IMPORTANT: The <foo>-backports is now required on older Ubuntu releases. BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting CAVEATS: 1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman 2. If you are using apache2, you are advised to add ppa:ondrej/apache2 3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline or ppa:ondrej/nginx PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/ WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround: # LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php More info: https://launchpad.net/~ondrej/+archive/ubuntu/php Adding repository. Adding deb entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-bookworm.list Adding disabled deb-src entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-bookworm.list Adding key to /etc/apt/trusted.gpg.d/ondrej-ubuntu-php.gpg with fingerprint 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C Hit:1 http://security.debian.org/debian-security bookworm-security InRelease Hit:2 http://deb.debian.org/debian bookworm InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Ign:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm InRelease Hit:4 https://rspamd.com/apt-stable bookworm InRelease Err:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm Release 404 Not Found [IP: 185.125.190.52 443] Hit:7 https://deb.goaccess.io bookworm InRelease Reading package lists... Done E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu bookworm Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
The recommended way to install ISPConfig on Debian 12 is to use the auto-installer https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ and the auto installer installs already all additional PHP versions automatically.
Thank you. What should i do now? I did install of debian and ispconfig step by step your site. All services are working, only i need to install php and can not add sury to do that and can not found why. Thank you.
The manual guide is much more complicated and for professional users that need highly customized setups only. The guide recommends to use the auto-installer in the first chapter. @Th0m explained that in post #11: you can not use a command from Ubuntu on Debian. You must use the matching Debian instructions instead: https://www.howtoforge.com/ispconfig-php-debian/
Thank you, till! This is what i looking for. Everything is working have a nice rest of the day and thank you for everyrhing