php@5.6: fix component order
This commit is contained in:
parent
a40872eb65
commit
7e51438f22
1 changed files with 17 additions and 17 deletions
|
@ -181,23 +181,6 @@ class PhpAT56 < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
To enable PHP in Apache add the following to httpd.conf and restart Apache:
|
||||
LoadModule php5_module #{opt_lib}/httpd/modules/libphp5.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[
|
||||
|
@ -263,6 +246,23 @@ class PhpAT56 < Formula
|
|||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
To enable PHP in Apache add the following to httpd.conf and restart Apache:
|
||||
LoadModule php5_module #{opt_lib}/httpd/modules/libphp5.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