If you share some more information, why not ... what is the problem ?
Getting Laravel 9 App Running on Synology NAS
Could someone help me to run laravel 9 on Nas synology.
I have a nas synology with DSM 7.1 system with a docker installed. this system still doesn't have php 8.1 only php 8.0.1. so I have to use doker but I don't know how to install. If I go by the "sail" documentation, it says, "docker not started". I can only download the image of sail81 from doker from then on I don't know the commands or anything. And I can't find anything on the internet about it.
@w3v3rt0n Oh ok ... sorry ... I can't help you. Perhaps anyone else ?
@vincent15000 thank you
@w3v3rt0n hey there, so, I followed the directions on the installation instructions on the Laravel site to install laravel with docker using their curl command. Of course after the install if you try "./vendor/bin/sail up -d" you run into all manner of heck, regarding not having php 8.1...
you need to update sail, but if you use the update command you run into that php version error.
Someone pointed me to a workaround, found here, just modify it to match your config. I set it to run with php82, but you could use php81 probably and be good.
https://gist.github.com/njbair/58d664b66fc9d927f89c9d8311c386ff
e.g.
docker run --rm \
-v $(pwd):/opt \
-w /opt laravelsail/php82-composer:latest \
bash -c "composer require --dev laravel/sail && composer install && php artisan sail:install --with=mysql"
essentially it creates a container for the sole purpose of updating the necessary files/dependencies, then dies.
After that you should be able to run ./vendor/bin/sail up -d
is this development environment?
Laravel Sail is a light-weight command-line interface for interacting with Laravel's default Docker development environment.
@w3v3rt0n Did you managed to deployed your app on the Synology NAS? I'm facing the same problem if you found a way please help me out.
@Stephen Victor Probably not... I'm running into the same problem. Synology NAS models afaik do not support PHP 8.1 so it's impossible to get composer to run, artisan to run, or anything that requires php 8.1
Synology doesn't have apt, so you're forced to use their proprietary package manager tool dpkg but documentation is sparse. Even with OpenAI I'm having trouble sussing out what to do about it.
You can go so far as getting a Laravel project created in a specified folder, but every instructional command after that (sail up) fails because of the PHP version issue.
Even using Sudo Su doesn't put you in your typical root user environment, since it defaults to sh. Fun times.
@Stephen Victor ACTUALLY .... a friend helped me out.
I'm going to reply to w3v3rt0n momentarly
Now DSM 7.2 is out on release it has the ability to use php 8.2 for docker containers
this set up works as i have Laravel 9 up and running, the only issue I'm facing at the moment is https requests are not functioning but that's a setting i may have missed - it use php 8.1 https://devpress.csdn.net/cloudnative/62fb7084c677032930800090.html
@readus-01 I had the same issue... Do share if you find a workaround.
Have you guys been able to get it up & running? I’m praying you say yes.
Please or to participate in this conversation.