Re: suggestion for section 4.3
On Wed, Jun 29, 2005 at 12:33:27PM +1000, Kai Hendry wrote:
> On Tue, Jun 28, 2005 at 02:54:23PM -0400, Tim Peeler wrote:
> > * For php applications under apache, one can use "php_value
> > auto_prepend_file" to provide configuration scripts for the
> > application
>
> What the hell is "php_valueauto_prepend_file" ? ;)
You can set php values in apache using "php_value". "auto_prepend_file"
causes php to automatically prepend the named php script to all your php
scripts. In the php.ini, this is pretty useless, but in a virtualhost
entry, or location entry in apache it can be very useful.
<Virtualhost my.web.server>
<Location /path/to/app1-instance-1>
php_value auto_prepend_file /etc/webapp/conf-file-1.php
</Location>
<Location /path/to/app1-instance-2>
php_value auto_prepend_file /etc/webapp/conf-file-2.php
</Location>
</Virtualhost>
>
> It could be as simple as :
>
> bible:505$ cat /etc/wordpress/wp-config.php
> <?php
> /** WordPress's Debianised default master config file
> Please do NOT edit and read about how the configuration works in the
> README.Debian
> **/
>
> require_once('/etc/wordpress/config-'.strtolower($_SERVER['HTTP_HOST']).'.php');
>
> define('ABSPATH', '/usr/share/wordpress/');
>
> require_once(ABSPATH.'wp-settings.php');
> ?>
>
>
> --
> To UNSUBSCRIBE, email to debian-webapps-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
Timothy Peeler <thp@LinuxForce.net>
Senior Programmer, Systems Administrator
LinuxForce Inc. (http://www.LinuxForce.net)
Reply to: