Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


[Help] Installing Multiple PHP versions on ubuntu
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.

[Help] Installing Multiple PHP versions on ubuntu

suyadi92suyadi92 Member
edited December 2021 in Help

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

  • xTomxTom Member, Patron Provider
    edited December 2021

    We use ondrej/php as well and it's working fine with php-fpm

    You need to enable conf for your Apache2 like

    a2enconf php8.0-fpm
    

    For local development, docker is a choice

    Thanked by 3suyadi92 yoursunny tux
  • @xTom said:

    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

    Thanked by 1suyadi92
  • xTomxTom Member, Patron Provider

    @suyadi92 said:

    @xTom said:

    For local development, docker is a choice

    Sadly it's an old laptop with 3gig of ram on it, docker recomended requirements is 2gig

    Docker can be installed on some VPS with less than 1GB ram

    Thanked by 3suyadi92 yoursunny tux
  • suyadi92suyadi92 Member
    edited December 2021

    @zhi said:
    www.aapanel.com

    Is it safe to be installed locally?

  • @xTom said:
    Docker can be installed on some VPS with less than 1GB ram

    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 using a2enmod.

    After that restart you apache

    Thanked by 2corbpie suyadi92
  • @ailice said:
    you need disable other php version first by using command a2dismod php-<version> then enable what you need by using a2enmod.

    After that restart you apache

    Thanks! will definitely try it after reinstalling my lubuntu. Tried aapanel suggestion then my lubuntu f*ed up tho :D
    But it's a new experience for me, thanks!

Sign In or Register to comment.