From: Stephe C. <cam...@cn...> - 2004-03-30 19:47:15
|
Mr. Deugau, I obviously need to read more about webmin and all of its options. I kind of got lost on the php_admin_value stuff. I'm not sure about newer releases of apache, but I set options like listed below all of the time, using Directory sections inside of a VirtualHost section. It does the same thing as the .htaccess files. I'm guessing that's what you meant. Any way, good hearing from you again (remember me from my sendmail questions elsewhere of which you were so helpful?). BTW I'm still undecided about all of _that_ stuff and which way to go with sendmail. Steve Campbell cam...@cn... Charleston Newspapers ----- Original Message ----- From: "Kris Deugau" <kd...@we...> To: <web...@li...> Sent: Tuesday, March 30, 2004 1:15 PM Subject: Re: [webmin-l] apache directory question > Stephe Campbell wrote: > > Doing this manually is what I do now. Creating a VirtualHost usually > > means copying about 10-12 lines from the httpd.conf file and changing > > the few pertinent lines. > > Do it once, copy from the manual. > > Do it twice, copy from the first time. > > Do it three or more times, script it. <g> > > > I was hoping that maybe Webmin would help a little by using > > templates and the like. > > > > Are you saying this can be done in webmin or not? > > It appears that the current release can see *some* PHP directives; I'm > just checking whether what Webmin does actually works... > > In the test case I used, Webmin's directive does NOT work. > > Supposedly, the difference between php_value and php_admin_value (and > php_flag/php_admin_flag, respectively), is that php_admin_* entries are > only valid in the Apache configuration and not in .htaccess files. I > haven't been able to find any specific documentation on which PHP > directives are valid in one form and not another- but it appears that > there *are* a few. :( > > > Something similar to the following is what I am trying to accomplish: > > > > <VirtualHost blah.blah> > > Server.... > > ErrorLog ... > > ..... > > <Directory /.......> > > php_value include_path blah...... > > </Directory> > > </VirtualHost> > > > > The operative lines are the Directory lines. I can make webmin insert > > the Directory lines, I just don't see how to include the php lines > > inside of the Directory part using webmin. > > Ummmm. To the best of my recollection, Apache will toss an error > message and either not start at all, or ignore the directives if you try > to set PHP options per-directory. The directives are valid inside the > parent VirtualHost section though. > > I just checked on the hosting server here, and the php_flag options for > the one user who requested that register_globals be set off *does* show > up, but adding an entry for open_basedir to a test vhost added it as: > > php_value open_basedir {path} > > rather than > > php_admin_value open_basedir {path} > > The Webmin entry failed to properly restrict access (I was able to read > /etc/passwd from a test script, which I could NOT do with the original > configuration). > > Clicking on a virtual host in Webmin brought up another page of icon > categories, one of which was PHP. YMMV. > > -kgd > -- > "Sendmail administration is not black magic. There are legitimate > technical reasons why it requires the sacrificing of a live chicken." > - Unknown > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |