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

Add initial support for php70 #7 #9

Closed
wants to merge 1 commit into from

Conversation

mirfilip
Copy link

Hi,
just a quick take on mentioned task. Please review it, it has been ages since I have done any scripting in bash.

Two things to mention:

  • I thought about naming convention for php7x. Even though it's still beta, I went on with current conversion and didn't do anything like 70b or similar.
  • As for php7x apache module name and key for httpd.conf got changed, I needed some conditional logic.

Also, I noticed there is something broken with substitution of LoadModule php5_module ... in httpd.conf in HEAD. It's not related to my changes. I didn't change any logic except naming, but I will revisit the matter later.

@@ -21,7 +21,7 @@ Your Apache config must be setup using the same paths as below. Replace homebrew
Version
----

1.4
1.5
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I though you'd like to release the new version if that PR comes through.

@akrabat
Copy link

akrabat commented Aug 23, 2015

Any news on if this is likely to be merged?

@philcook
Copy link
Owner

@akrabat apologise I have been away on holiday and not been able to review this. I will take a look this week.

@akrabat
Copy link

akrabat commented Aug 24, 2015

Thanks @philcook :)

@@ -68,9 +74,14 @@ then
echo "Switching your apache conf"
for j in ${php_installed_array[@]}
do
sudo sed -i.bak "s/^LoadModule[ \t]php5_module[ \t]$php_opt_path$j$apache_php_lib_path/\#LoadModule php5_module $php_opt_path$j$apache_php_lib_path/g" $apache_conf_path
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mirfilip this part is required to comment out all existing PHP modules in apache conf not just the one being selected.

@philcook
Copy link
Owner

@mirfilip checked out your code and unfortunately it doesnt quite work due to the fact it doesnt comment out any other PHP module lines in the apache code.

However I have done some work myself and put it in a php7 branch.

This version has a few advantages as well that I have been meaning to put in. Mainly that if the PHP module apache conf line its already in the apache conf it will now add it for you.

I will merge mine into master shortly but in the meantime if you want to checkout this branch your more than welcome to.

@philcook philcook closed this Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants