Skip to content

Upgrading PHP version to 8.1 #17882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

ThomasLandauer
Copy link
Contributor

@ThomasLandauer ThomasLandauer commented Feb 8, 2023

Page: https://symfony.com/doc/current/setup.html

... since this is now the minimum required, according to https://symfony.com/doc/current/setup.html

Edit:
Or wouldn't it be better to omit the version, and just put in fastcgi_pass unix:/var/run/php-fpm.sock;?, like the nginx docs are recommending: https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/#connecting-nginx-to-php-fpm

Besides, I would suggest to move nginx above Apache, since it's more popular today, according to https://w3techs.com/technologies/history_overview/web_server/ms/y

Page: https://symfony.com/doc/current/setup.html

... since this is now the minimum required, according to https://symfony.com/doc/current/setup.html

Besides, I would suggest to move nginx **above** Apache, since it's more popular today, according to https://w3techs.com/technologies/history_overview/web_server/ms/y
@OskarStark
Copy link
Contributor

Thank you Thomas.

@OskarStark OskarStark merged commit b59acfb into symfony:6.2 Feb 9, 2023
@ThomasLandauer ThomasLandauer deleted the patch-10 branch February 9, 2023 11:43
ThomasLandauer added a commit to ThomasLandauer/symfony-docs that referenced this pull request Feb 10, 2023
Page: https://symfony.com/doc/5.4/setup/web_server_configuration.html

This makes upgrading to a new PHP version so much easier (I just did that). If the PHP version is hardcoded in every domain's config file, it's a hassle to update them.

On the other hand: `/var/run/php/php-fpm.sock` is a symlink to the most recently installed PHP version, so this is what most people want probably.

I hope this doesn't interfere with the change I did in symfony#17882 on the 6.2 branch.
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Feb 10, 2023
…omasLandauer)

This PR was merged into the 5.4 branch.

Discussion
----------

Switching to PHP-version-agnostic socket file

Page: https://symfony.com/doc/5.4/setup/web_server_configuration.html

This makes upgrading to a new PHP version so much easier (I just did that). If the PHP version is hardcoded in every domain's config file, it's a hassle to update them.

On the other hand: `/var/run/php/php-fpm.sock` is a symlink to the most recently installed PHP version, so this is what most people want probably.

I hope this doesn't interfere with the change I did in symfony#17882 on the 6.2 branch.

Commits
-------

8440c9e Switching to PHP-version-agnostic socket file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants