Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mac03733's avatar

Hosting a Laravel 5.6 app on a VPS like Digital ocean "LEMP"

i am trying to host on a VPS for the frist time .and after a long search i came across a tutorial that was helpful. problem is it was based on laravel 5.2 and the php requirement was 7.0

tutorial link incase useful --> https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/

i could use some help if anyone has a better alternative for hosting laravel 5.6 app OR the modification i could make to allow the current solution to work with my current enviroment

my ERRORs

  Problem 1
    - This package requires php ^7.1.3 but your PHP version (7.0.30) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/inflector v1.3.0 -> satisfiable by doctrine/inflector[v1.3.0].
    - doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (7.0.30) does not satisfy that requirement.
  Problem 18
    - laravel/framework v5.6.24 requires php ^7.1.3 -> your PHP version (7.0.30) does not satisfy that requirement.
    - maatwebsite/excel 2.1.28 requires illuminate/cache 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.* -> satisfiable by laravel/framework[v5.6.24].
    - Installation request for maatwebsite/excel 2.1.28 -> satisfiable by maatwebsite/excel[2.1.28].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.0/cli/php.ini
    - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.0/cli/conf.d/10-opcache.ini
    - /etc/php/7.0/cli/conf.d/10-pdo.ini
    - /etc/php/7.0/cli/conf.d/20-calendar.ini
    - /etc/php/7.0/cli/conf.d/20-ctype.ini
    - /etc/php/7.0/cli/conf.d/20-exif.ini
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.0/cli/conf.d/20-ftp.ini
    - /etc/php/7.0/cli/conf.d/20-gettext.ini
    - /etc/php/7.0/cli/conf.d/20-iconv.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-mbstring.ini
    - /etc/php/7.0/cli/conf.d/20-mysqli.ini
    - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.0/cli/conf.d/20-phar.ini
    - /etc/php/7.0/cli/conf.d/20-posix.ini
    - /etc/php/7.0/cli/conf.d/20-readline.ini
    - /etc/php/7.0/cli/conf.d/20-shmop.ini
    - /etc/php/7.0/cli/conf.d/20-sockets.ini
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
0 likes
1 reply
mac03733's avatar
mac03733
OP
Best Answer
Level 2

this solved my errors

sudo apt-add-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get install php7.1-cli php7.1-fpm php7.1-mbstring php7.1-mysql php7.1-mcrypt php7.1-curl

sudo apt-get install nginx

i update my php version hopefully it wont lead to any problems i havnt noticed yet.but so far all good

Please or to participate in this conversation.