
Originally Posted by
cPanelDon
What method is being used to modify the EasyApache build profile?
To help clarify, what is the precise indication that "everything" is being rewritten like the (default?) previous file?
Please disregard my last reply as quoted above. When testing further I was able to reproduce the issue as described; to the best of my knowledge I believe this current behavior is intended by design.

Originally Posted by
touma
Guys,
I was trying to change on hand the line Cpanel::Easy::PHP5::SOAP: 0 to 1, but found on /scripts/makecpphp the system '/scripts/cpanel_easy_sanity_check', '--quiet'; command that overwrites the makecpphp.profile.yaml file on every run.
It's safe to disable this line? If it is, a cpanel update won't bring back this line?
Can i manually change the yaml file?
Thanks!

Originally Posted by
t00r
when i do /scripts/makecpphp the /scripts/cpanel_easy_sanity_check in makecpphp everything rewrite like was in previous file. please help me
In regard to modifying the stock-default EasyApache3 (EA3) build profile for "makecpphp" we are considering and evaluating ways simplify the process; for reference, this feature enhancement is being tracked via the following internal case ID number: #30130
In the meantime here are a set of steps as an alternative to the last revised set of commands.
1.) Prepare and save the build profile using EasyApache, then copy the newly-saved build profile; in the following command replace "example.yaml" with the original file name of your custom build profile:
Code:
# cp -pv /var/cpanel/easy/apache/profile/custom/example.yaml /var/cpanel/easy/apache/profile/makecpphp_custom.profile.yaml
2.) Save a fresh backup of the original script "makecpphp":
Code:
# cp -pv /scripts/makecpphp /scripts/makecpphp.backup
3.) For reference purposes, check the existing build profile path before it's updated in the next step:
Code:
# grep "^my \$makecpphp_profile" /scripts/makecpphp
4.) Update the variable defining the build profile path used by the script:
Code:
# perl -p -i -e 's/makecpphp\.profile\.yaml/makecpphp_custom\.profile\.yaml/g' /scripts/makecpphp
5.) For confirmation, verify the build profile path was updated correctly:
Code:
# grep "^my \$makecpphp_profile" /scripts/makecpphp
6.) If the path was updated successfully, proceed to run the script "makecpphp":
Code:
# /scripts/makecpphp
The following command may be used if needing to restore the "makecphp" script from the backup that was saved earlier:
Code:
# cp -pv /scripts/makecpphp.backup /scripts/makecpphp