php: fix component order
This commit is contained in:
parent
3a364b8a1e
commit
a40872eb65
1 changed files with 17 additions and 17 deletions
|
@ -176,23 +176,6 @@ class Php < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
To enable PHP in Apache add the following to httpd.conf and restart Apache:
|
||||
LoadModule php7_module #{opt_lib}/httpd/modules/libphp7.so
|
||||
|
||||
<FilesMatch \\.php$>
|
||||
SetHandler application/x-httpd-php
|
||||
</FilesMatch>
|
||||
|
||||
Finally, check DirectoryIndex includes index.php
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
The php.ini and php-fpm.ini file can be found in:
|
||||
#{etc}/php/#{php_version}/
|
||||
EOS
|
||||
end
|
||||
|
||||
def post_install
|
||||
pear_prefix = pkgshare/"pear"
|
||||
pear_files = %W[
|
||||
|
@ -258,6 +241,23 @@ class Php < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
To enable PHP in Apache add the following to httpd.conf and restart Apache:
|
||||
LoadModule php7_module #{opt_lib}/httpd/modules/libphp7.so
|
||||
|
||||
<FilesMatch \\.php$>
|
||||
SetHandler application/x-httpd-php
|
||||
</FilesMatch>
|
||||
|
||||
Finally, check DirectoryIndex includes index.php
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
The php.ini and php-fpm.ini file can be found in:
|
||||
#{etc}/php/#{php_version}/
|
||||
EOS
|
||||
end
|
||||
|
||||
def php_version
|
||||
version.to_s.split(".")[0..1].join(".")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue