[augeas-devel] [Augeas] #210: Update PHP lens to include Zend Server configuration files or create new lens
Augeas
trac at fedorahosted.org
Tue Jul 5 03:49:52 UTC 2011
#210: Update PHP lens to include Zend Server configuration files or create new
lens
--------------------+-------------------------------------------------------
Reporter: denmat | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.8.0
Keywords: |
--------------------+-------------------------------------------------------
The community edition of the Zend Server installs into the /usr/local/zend
directory (on Centos anyway).
The php.ini file is located here /usr/local/zend/etc/php.ini and the
module configuration directory is /usr/local/zend/etc/conf.d.
On my system I just created a new lense that I copied from the existing
PHP lens.
--- /usr/share/augeas/lenses/dist/php.aug 2010-04-20
06:38:26.000000000 +1000
+++ /usr/share/augeas/lenses/dist/phpzend.aug 2011-07-05
13:36:31.000000000 +1000
@@ -1,8 +1,9 @@
-(* PHP module for Augeas *)
+(* PHPZEND module for Augeas *)
(* Author: Raphael Pinson <raphink at gmail.com> *)
+(* Updated: Den Mat <tu2Bgone at gmail.com> *)
(* *)
-module PHP =
+module PHPZEND =
autoload xfm
(************************************************************************
@@ -43,9 +44,8 @@
*************************************************************************)
let lns = record_anon? . record*
-let filter = (incl "/etc/php*/*/*.ini")
- . (incl "/etc/php.ini")
- . (incl "/etc/php.d/*.ini")
+let filter = (incl "/usr/local/zend/etc/php.ini")
+ . (incl "/usr/local/zend/etc/conf.d/*.ini")
. Util.stdexcl
let xfm = transform lns filter
I'm not sure what the right approach of this should be so I raised this
ticket. You can possibly include it or ignore it if you wish.
Cheers,
Den
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/210>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list