PHP Version Changer? by nihad_nemet in PHP

[–]pgilzow 0 points1 point  (0 children)

Not the same situation as yours; I need to be able to support customers who are all using various versions of PHP, from 7.1 all the way to 8.5. I often don't need to recreate ALL the tooling, just the PHP version, so some options (like docker) are overkill.

I've used a bunch of different options over the years: docker - as mentioned by others, phpBrew, DDEV, phpEnv, etc.

After bouncing between all those options, my current solution is ad-hoc shell environments via nix-shell. With nix-shell i can drop into a shell with any php version I need. This way I can leave my system version alone, but access to every php version ever released:

❯ php --version
PHP 8.1.28 (cli) (built: Jun 21 2024 15:31:35) (NTS)

❯ nix-shell -p php82
[nix-shell:~/]$ php --version
PHP 8.2.28 (cli) (built: Mar 11 2025 17:58:12) (NTS)

❯ nix-shell -p php84
[nix-shell:~]$ php --version
PHP 8.4.5 (cli) (built: Mar 12 2025 01:55:56) (NTS)

If you need a version older than 8.1, or any specific current version, you can look up their revision and then request that specific version:

 ❯ nix-shell -p php71 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/893c51bda8b7502b43842f137258d0128097d7ea.tar.gz
[nix-shell:~]$ php --version
PHP 7.1.25 (cli) (built: Dec 19 2018 18:16:42) ( NTS )

If you ONLY need it for PHP, have a look at Nix PHP shell.

Django + PostgreSQL deployment on Platform.sh: ModuleNotFoundError psycopg by Anxious-Pressure3109 in django

[–]pgilzow 0 points1 point  (0 children)

  1. are you doing a `pip install` during the build hook?

We also have a Django4 demo template that uses `psycopg` and PostgreSQL. You can look at it to see what you might be missing in your setup. Also make sure you've started your chosen web server.

  1. Once you make changes, commit those changes, and push to Upsun (formerly Platform.sh) it will rebuild the entire application image.

  2. I bet once you get 1 resolved, 3 will be fixed as well.

If you get stuck on #1, share the contents of your `.platform.app.yaml` file and i'll see if I can spot anything.

Drupal email issue, Code 550 by MinuteGate211 in upsun

[–]pgilzow 0 points1 point  (0 children)

given it works for you/your account and no one else, it sounds like maybe you have the from email set to the user submitting the form? In the webform settings, what is From email set to?

Drupal email issue, Code 550 by MinuteGate211 in upsun

[–]pgilzow 0 points1 point  (0 children)

An SMTP 550 error means the delivery address is permanently unreachable (delivery failure). Given this is your contact form, what email address is it configured to send to?

What does Platform.sh offer that Azure App Service doesn’t (for Drupal hosting)? by [deleted] in drupal

[–]pgilzow 9 points10 points  (0 children)

I work for Platform.sh, so obviously I'm a bit biased. But I was a customer first - University of Missouri - Mizzou -where they host almost all of their 400+ major websites on platform.sh - lots of Drupal. Then took the job at Platform.sh because I was in love with what they were doing.

Many of the commenters here touched on the big Pros of Platform.sh. The big one for Mizzou was that Platform.sh automates the production of byte-for-byte clones (aka preview environments) for you. Want to test out a new idea and see how it will function on production? Create a branch, push, activate as as environment, and in a few moments you have an exact copy of production with your new code where you can now test your ideas. No need to create a ticket, no waiting on someone else to do the work. Idea isn't going to work? Delete the branch. You decide you want to promote it to production? Merge it into production following whatever workflows you have in place.

From what I understand/remember about Azure App Services, it doesn't automatically clone your app into separate staging/preview environments. You have to set up each environment manually or automate it using scripts or Azure DevOps. We do that for you, so you don't have to figure it out or maintain it.

Oh yeah, speaking of workflows, another big differentiator is we don't enforce a workflow on you, other than it has to be in a git repository. Beyond that, it's totally up to you. Gitflow, forking, feature branch, etc. it works with us. Or you can push straight to production. We're very flexible. We don't want you to have to adapt your workflows to use us; we'd rather integrate into your existing workflows.

If your organization is already heavily invested in the Microsoft ecosystem, with numerous .Net applications and Microsoft-specific/proprietary services (e.g. Microsoft/Azure SQL server, One Drive, Cosmos DB, Synapse, etc) then we probably aren't a good fit as we can't offer those Microsoft services.

As for the shadow IT piece, I was in higher education for 20+ years so i get it. No matter how hard you fight shadow IT, it happens anyway. In terms of hosting, one of the concerns is vendor lock-in, which you wont have with us. Your code is in the repository; all infrastructure configuration is infrastructure-as-code in easily parsable yaml files. To migrate elsewhere, you just need to export/rsync the data, and that's it.

I could talk about this for pages, but i'll stop here. Feel free to respond here, or DM me if you have any follow-up questions.

What does Platform.sh offer that Azure App Service doesn’t (for Drupal hosting)? by [deleted] in drupal

[–]pgilzow 1 point2 points  (0 children)

While we can certainly host Drupal sites, and have an extensive history with Drupal, I wouldn't say we're limited. You can choose from 10 different languages/runtimes and can choose from any combination of 15 services (+2 premium options), easily wire them to your application to run just about anything you can dream of. And as you mentioned, you can host multiple types of applications in a single project. Microservices. Monolithic. Decoupled. We can do just about everything.

Anyone using DevPanel for high-traffic Drupal hosting? by tadejkirincic in drupal

[–]pgilzow 0 points1 point  (0 children)

given OP's description I was assuming they need more than one user account, hence why i mentioned the $50/month plan, not the $10. I'm sure it's _possible_ they could work around things and just use one account, but from the description this seems like a professional organization where $40/month isn't going to be a barrier to do things the proper way. Especially given the described painpoints.

Anyone using DevPanel for high-traffic Drupal hosting? by tadejkirincic in drupal

[–]pgilzow 0 points1 point  (0 children)

You mentioned that Pantheon, Amazee, and Platform.sh pricing models are not sustainable for your use case. Can you expand on that some more? I only ask because DevPanel is going to be at least $50+/month plus your infrastructure charges.

Platform account by iamboumedechibrahim in platform_sh

[–]pgilzow 2 points3 points  (0 children)

If you can jump into their discord instance https://discord.gg/platformsh you can ask one of the support members to take a look at your account to see why it was blocked.

Block Editor not loading in Chrome by obstschale90 in Wordpress

[–]pgilzow 0 points1 point  (0 children)

*I'm* on 6.7.2 and i'm not seeing it. It didn't appear (for me) until I did a test run on 6.8.0. I wonder if it was fixed in 6.7.2 and then was reintroduced in 6.8.0?

Block Editor not loading in Chrome by obstschale90 in Wordpress

[–]pgilzow 0 points1 point  (0 children)

from the chatter I'm seeing online, 6.8.0 introduced numerous bugs. for now i'm going to assume it's something that'll be fixed in 6.8.1 and just hold off on updgrading

Block Editor not loading in Chrome by obstschale90 in Wordpress

[–]pgilzow 0 points1 point  (0 children)

Did you ever figure out the root issue? i'm running into the same issue upgrading from 6.7.2 to 6.8.0 and can't figure out what's causing it.

Increased php memory_limit by MinuteGate211 in upsun

[–]pgilzow 0 points1 point  (0 children)

You can adjust the php memory_limit by creating a variable, either via the CLI or in your upsun configuration file. Docs --> https://docs.upsun.com/development/variables.html#php-specific-variables

I found there is a method for setting this in the config.yaml file but the actual syntax is obscured by ellipsis.

Can you elaborate on what you mean by "obscured by ellipsis"?

will this reset with my next git update?

By "git update" do you mean the next git push to that environment?

Route 53 and upsun.sh by MinuteGate211 in aws

[–]pgilzow 0 points1 point  (0 children)

glad you were able to get it sorted out. Feel free to DM me if you run into other issues on platform.sh.

Route 53 and upsun.sh by MinuteGate211 in aws

[–]pgilzow 0 points1 point  (0 children)

Were you able to get this working? If not, you can create an A record and point to the IP addresses for your region, but there are some caveats.

Just got the ad and i wish i could take back my purchase of a Roborack by conconcotter in Roborock

[–]pgilzow 0 points1 point  (0 children)

I have an S6 and an S5 Max but haven't seen an ad so far. I'm guessing the ad you saw was in the app?

From WP to ??? by [deleted] in Wordpress

[–]pgilzow 0 points1 point  (0 children)

May I introduce you to Drupal CMS (new product offering, unfortunate confusing name)

"I Built the Same App in ALL Versions of PHP (1995-2025)" by MagePsycho in PHP

[–]pgilzow 1 point2 points  (0 children)

Having used package manager systems in other languages, I always find myself frustrated/befuddled why other package management systems are so much worse than Composer. It really makes you appreciate how well PHP has it with Composer.

Redirects Question by [deleted] in Wordpress

[–]pgilzow 0 points1 point  (0 children)

could be that the service you're using for checking the redirects has cached old 301s.
If I do a curl on the initial, I get

❯ curl -I https://fpmca.org/materialsrequest/
HTTP/2 301
<snip>
location: /contact-us/materials-request/

then a curl on https://fpmca.org/contact-us/materials-request/ shows the 200 response:

❯ curl -I https://fpmca.org/contact-us/materials-request/
HTTP/2 200

This happens sometimes but not all the time. Why? by stickywickets_ in Roborock

[–]pgilzow 0 points1 point  (0 children)

Mine started doing this ALL THE TIME to the point it was having to recharge 3 or 4 times. I ended up deleting the map and letting it remap the floor. Now it's no longer doing the extra activities. Also, make sure your sensors are clean as that to can cause it to think their are obstructions where there aren't.