This repository was archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
MAGEDOC-3966 PHP version update #5046
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e01debb
Upgrading PHP version. MD fix-ups.
dobooth 99d09a5
Merge master
dobooth 184e8af
Fixed links and markdown errors.
dobooth 27b40a8
Small fixes.
dobooth c120422
Merge branch 'master' into db_php_upgrade
dobooth bdc27f0
Merge branch 'develop' into db_php_upgrade
dobooth eef2c9e
Merge branch 'develop' into db_php_upgrade
dobooth 6db1e2f
Update guides/v2.2/cloud/before/before-workspace-magento-prereqs.md
dobooth 8cc884c
Added innumberable codeblocks. Fixed redirect.
dobooth 4ae4c58
Update guides/v2.2/install-gde/prereq/php-settings.md
dobooth 92b301b
Merge branch 'develop' into db_php_upgrade
dobooth bac1cc5
Code block
dobooth 709fbda
Code fence
dobooth ce855de
remove cloud topic
dobooth cf6b3ff
Merge branch 'db_php_upgrade' of github.com:magento/devdocs into db_p…
dobooth 1739716
Merge branch 'develop' into db_php_upgrade
dobooth 17a6bb2
Removed recursive redirects.
dobooth 64fb3e1
Fixed broken data links.
dobooth 0e3d36f
Merge branch 'develop' into db_php_upgrade
dobooth c7b660a
Fixed up broken links.
dobooth 489cc96
Merge branch 'db_php_upgrade' of github.com:magento/devdocs into db_p…
dobooth 33dade4
Update guides/v2.3/cloud/before/before-workspace-magento-prereqs.md
dobooth 45bd7a5
Update guides/v2.2/cloud/before/before-workspace-magento-prereqs.md
dobooth 227fbb6
Merge branch 'develop' into db_php_upgrade
dobooth 5c138bd
Merge branch 'develop' into db_php_upgrade
dobooth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,22 +10,22 @@ functional_areas: | |
|
||
You can have one build system that meets the following requirements: | ||
|
||
* All Magento code is under source control in the same repository as the development and production systems | ||
* Make sure all of the following are _included_ in source control: | ||
|
||
* `app/etc/config.php` | ||
* `generated` directory (and subdirectories) | ||
* `pub/media` directory | ||
* `pub/media/wysiwyg` directory (and subdirectories) | ||
* `pub/static` directory (and subdirectories) | ||
* Must have a compatible PHP version installed | ||
* Must have Composer installed | ||
* It has Magento file system ownership and permissions set as discussed in [Prerequisite for your development, build, and production systems]({{ page.baseurl }}/config-guide/deployment/pipeline/technical-details.html#config-deploy-prereq). | ||
* All Magento code is under source control in the same repository as the development and production systems | ||
* Make sure all of the following are _included_ in source control: | ||
|
||
* `app/etc/config.php` | ||
* `generated` directory (and subdirectories) | ||
* `pub/media` directory | ||
* `pub/media/wysiwyg` directory (and subdirectories) | ||
* `pub/static` directory (and subdirectories) | ||
* Must have a compatible PHP version installed | ||
* Must have Composer installed | ||
* It has Magento file system ownership and permissions set as discussed in [Prerequisite for your development, build, and production systems]({{ page.baseurl }}/config-guide/deployment/pipeline/technical-details.html#config-deploy-prereq). | ||
|
||
The build system does _not_ need any of the following: | ||
|
||
* Magento database connection | ||
* Magento software installed (only the code must be present) | ||
* Magento database connection | ||
* Magento software installed (only the code must be present) | ||
|
||
{:.bs-callout .bs-callout-info} | ||
The build machine can be on its own host or on the same host as an installed Magento system. | ||
|
@@ -42,47 +42,62 @@ The following sections discuss how to configure the build machine. | |
|
||
To install PHP, see one of the following topics: | ||
|
||
* [CentOS]({{ page.baseurl }}/install-gde/prereq/php-centos.html) | ||
* [Ubuntu]({{ page.baseurl }}/install-gde/prereq/php-ubuntu.html) | ||
* [PHP]({{ page.baseurl }}/install-gde/prereq/php-settings.html) | ||
|
||
### Set up the build system | ||
|
||
To set up the build system: | ||
|
||
1. Log in to the build system as, or switch to, the Magento file system owner. | ||
2. Retrieve the Magento code from source control. | ||
1. Log in to the build system as, or switch to, the Magento file system owner. | ||
1. Retrieve the Magento code from source control. | ||
|
||
If you use Git, use the following command: | ||
If you use Git, use the following command: | ||
|
||
git clone [-b <branch name>] <repository URL> | ||
2. Change to the Magento root directory and enter: | ||
```bash | ||
git clone [-b <branch name>] <repository URL> | ||
``` | ||
|
||
composer install | ||
3. Wait for Magento dependencies to update. | ||
4. Set ownership: | ||
1. Change to the Magento root directory and enter: | ||
|
||
chown -R <magento file system owner name>:<web server username> . | ||
```bash | ||
composer install | ||
``` | ||
|
||
For example, | ||
1. Wait for Magento dependencies to update. | ||
1. Set ownership: | ||
|
||
chown -R magento_user:apache . | ||
4. If you use Git, open `.gitignore` in a text editor. | ||
5. Start each of the following lines with a `#` character to comment them out: | ||
```bash | ||
chown -R <magento file system owner name>:<web server username> . | ||
``` | ||
|
||
# app/etc/config.php | ||
# pub/media/* | ||
# generated/* | ||
# pub/media/*.* | ||
# pub/media/wysiwyg/* | ||
# pub/static/* | ||
6. Save your changes to `.gitignore` and exit the text editor. | ||
7. If you use Git, use the following commands to commit the change: | ||
For example, | ||
|
||
git add .gitignore && git commit -m "Modify .gitignore for build and production" | ||
```bash | ||
chown -R magento_user:apache . | ||
jeff-matthews marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
See the [`.gitignore` reference]({{ page.baseurl }}/config-guide/prod/config-reference-gitignore.html) for more information. | ||
1. If you use Git, open `.gitignore` in a text editor. | ||
1. Start each of the following lines with a `#` character to comment them out: | ||
|
||
```text | ||
# app/etc/config.php | ||
# pub/media/* | ||
# generated/* | ||
# pub/media/*.* | ||
# pub/media/wysiwyg/* | ||
# pub/static/* | ||
``` | ||
|
||
1. Save your changes to `.gitignore` and exit the text editor. | ||
1. If you use Git, use the following commands to commit the change: | ||
|
||
```bash | ||
git add .gitignore && git commit -m "Modify .gitignore for build and production" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needs code fences There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
``` | ||
|
||
See the [`.gitignore` reference]({{ page.baseurl }}/config-guide/prod/config-reference-gitignore.html) for more information. | ||
|
||
#### Related topics | ||
|
||
* [Set up your development systems]({{ page.baseurl }}/config-guide/deployment/pipeline/development-system.html) | ||
* [Set up your production system]({{ page.baseurl }}/config-guide/deployment/pipeline/production-system.html) | ||
* [Set up your development systems]({{ page.baseurl }}/config-guide/deployment/pipeline/development-system.html) | ||
* [Set up your production system]({{ page.baseurl }}/config-guide/deployment/pipeline/production-system.html) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.