I have Ubuntu 22.04 and I wish to install Apache, MySQL, PHP and Composer altogether via apt
.
How to install Apache, MySQL, PHP and Composer via apt
? Something like this?
apt install curl lamp-server^ php-curl composer
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityYes, it is possible. As per the man page, the install subcommand of apt accepts one or more packages:
install, remove, purge (apt-get(8))
Performs the requested action on one or more packages specified via regex(7), glob(7)
or exact match.