Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.26.0

Request #10955 pearweb installation script should remember your alternative DSN
Submitted: 2007-05-06 06:21 UTC Modified: 2008-02-01 15:46 UTC
From: doconnor Assigned:
Status: Open Package: pearweb (version 1.15.0)
PHP Version: 5.2.1 OS:
Roadmaps: 1.19.0    

 [2007-05-06 06:21 UTC] doconnor (Daniel O'Connor)
Description: ------------ When you first install pearweb, you (sometimes) go through the fooling about of pointing to an alternative DSN. After you've done that, you get connection failures when you visit the installation in your browser. the run-script should: 1. prompt me for my DSN 2. if it's different to the default, write it out to file (pear-local-configuration.php) along with any other configuration (PEAR_TMPDIR; for instance; on windows systems) 3. alter the httpd.conf to include your defaults as well php_value auto_prepend_file pear-local-configuration.php


 [2008-01-10 16:54 UTC] dufuz (Helgi Þormar Þorbjörnsson)
actually most of these options if not all can be done via _ENV, i.e. SetEnv in apache, I guess we should set at least the dsn that way if it's a non default one
 [2008-02-01 15:46 UTC] dufuz (Helgi Þormar Þorbjörnsson)
I have a solution but it's not pretty, because these tasks are always defined in package.xml then we have to use the generated value so basically you'd have to run package.php to get an updated task group for the database which is a hop too much I think, at least I haven't found a way for now to automagically change the default values, as in make pearweb.php (the postinstall script) change those values and then you run install / upgrade I'll keep looking but I'm not too optimistic about it atm.