New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
[Help] Installing Multiple PHP versions on ubuntu
Hi guys!
Need some to install php 5.4 to 8.1, compatible mysql and apache version on my lubuntu laptop to start php development, Is it achievable? How?
Things i've tried so far:
- installed php 5.6 - 8.0 via ondrej/php
PPA but apache can't be started due to multiple php versions (conflicting)
- Searching for alternatives, found https://launchpad.net/~sergey-dryabzhinsky but don't know how to install
- Thinking to install TinyCP locally but really doubtful if it's gonna work.
I use laragon on windows previously.
Any help will be appreciated guys. Thank you!
Comments
We use
ondrej/php
as well and it's working fine with php-fpmYou need to enable conf for your Apache2 like
For local development, docker is a choice
Sadly it's an old laptop with 3gig of ram on it, docker recomended requirements is 2gig
www.aapanel.com
Docker can be installed on some VPS with less than 1GB ram
Is it safe to be installed locally?
Yes, according to their site, 512mb is the minimum
but i still need to run some additional procesess like php, apache2, mysql, sublime text, and chrome
Will it runs?
I know the bottleneck is the laptop spec here, but,..
you need disable other php version first by using command
a2dismod php-<version>
then enable what you need by usinga2enmod
.After that restart you apache
Thanks! will definitely try it after reinstalling my lubuntu. Tried aapanel suggestion then my lubuntu f*ed up tho
But it's a new experience for me, thanks!