Install PHP 8 in ubuntu for virtualmin

Hi

1-In installing php8 from this tutorials : https://www.virtualmin.com/multiplephp/ with SUDO command in ubuntu 20.04 TLS Server I faced with error :

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

What Should I do for that?

2-what command should I use to installing OPcach , php-cache , nginx caches ?

3-With php 8 can I install the Source-Guardian module?

&& is executing another command, and it is without sudo. So…permission denied, obviously. You need sudo for every command that needs root access.

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.