Skip to content
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

Added required PHP modules to composer.json #2064

Merged
merged 6 commits into from
Jul 10, 2022

Conversation

fballiano
Copy link
Contributor

Everything is explained in ISSUE #2017

Added required PHP modules to composer.json
@github-actions github-actions bot added the composer Relates to composer.json label May 3, 2022
@fballiano
Copy link
Contributor Author

@tmotyl could you help me updating the composer lock?

@tmotyl
Copy link
Contributor

tmotyl commented May 3, 2022

composer update —lock should be enough

@fballiano
Copy link
Contributor Author

to be able to run composer update --lock I had to update the composer.json file again adding a few things, do you think it's ok?

Sdfendor
Sdfendor previously approved these changes May 3, 2022
@ADDISON74
Copy link
Contributor

This is the list of PHP extensions installed in production on my servers (PHP 7.0 to 7.4):

php7.x-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.x-cli - command-line interpreter for the PHP scripting language
php7.x-common - documentation, examples and common module for PHP
php7.x-curl - CURL module for PHP
php7.x-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.x-gd - GD module for PHP
php7.x-json - JSON module for PHP
php7.x-mbstring - MBSTRING module for PHP
php7.x-mcrypt - libmcrypt module for PHP
php7.x-mysql -  MySQL module for PHP
php7.x-opcache - Zend OpCache module for PHP
php7.x-readline - readline module for PHP
php7.x-soap - SOAP module for PHP
php7.x-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
php7.x-zip - Zip module for PHP

IMPORTANT: Starting with PHP 7.2+ mcrypt needs to be disabled (in Linux command phpdismod php7.x-mcrypt or by editing php.ini file).

@tmotyl
Copy link
Contributor

tmotyl commented May 10, 2022

I can't say whether the change of ""magento-root-dir": "."" is correct or not, I'm not sure what it does.

@fballiano
Copy link
Contributor Author

I can't say whether the change of ""magento-root-dir": "."" is correct or not, I'm not sure what it does.

it seems to be where composer installs magento, it's weird but without that any composer command wouldn't work

@luigifab
Copy link
Contributor

I think that the good composer command is: composer update --lock --no-install
With it, magento-root-dir changes are not required.

@fballiano
Copy link
Contributor Author

Did as @luigifab and worked flawlessly, thank you so much! :-)

@fballiano fballiano requested review from tmotyl and luigifab May 19, 2022 08:07
@luigifab
Copy link
Contributor

If we add that, peoples need to install php-ftp and php-iconv, right?
I never installed them, and I don't want to install them (ok I use --ignore-platform-reqs, but...).

@fballiano
Copy link
Contributor Author

fballiano commented May 20, 2022

If we add that, peoples need to install php-ftp and php-iconv, right? I never installed them, and I don't want to install them (ok I use --ignore-platform-reqs, but...).

I think so. But you sent me the list of extensions :-)

@fballiano
Copy link
Contributor Author

would do I have to do about this? I don't care about this PR but I created cause @Flyingmana requested it in #2017 so we do something or close both.
I think our implementation of composer is just weird so I don't really care about it

@luigifab
Copy link
Contributor

Remove ext-ftp and ext-iconv, zlib? I don't know, and let's go.

@fballiano
Copy link
Contributor Author

mmm but it seems to me that the ConfigurableSwatches module uses iconv and it is required by app/code/core/Mage/Install/etc/install.xml

composer.json Outdated Show resolved Hide resolved
@Flyingmana
Copy link
Contributor

so following https://magento.stackexchange.com/questions/61377/minimum-number-of-php-modules-needed-to-run-magento it seems we got all the commonly needed exceptions.
Only ftp seems to not be commonly needed, so if we remove this one I think the PR is ready.

Thanks for all the work already :)

@fballiano
Copy link
Contributor Author

ftp extension removed

@fballiano fballiano merged commit e06fe2d into OpenMage:1.9.4.x Jul 10, 2022
@fballiano fballiano deleted the issue_2017 branch July 10, 2022 22:00
@github-actions
Copy link
Contributor

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
7 runs  ±0  5 ✔️ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit e06fe2d. ± Comparison against base commit 8624d5e.

elidrissidev pushed a commit to elidrissidev/magento-lts that referenced this pull request Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
composer Relates to composer.json
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants