Re: Hiding the source!
| From: | Claude Cormier | Date: | Thu, 17 Aug 2000 23:09:28 +0000 |
| Subject: | Re: Hiding the source! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12376@lists.php.net to get a copy of this message | ||
Thanks for the explanation Mat.
Matt McClanahan wrote:
>
> On Thu, 17 Aug 2000, Claude Cormier wrote:
>
> > Matt McClanahan wrote:
> > > Ah.. I was operating on the assumption that PHP was an Apache module in
> > > the above scenario. So if you're referring to using PHP as CGI,
> > > pretty much nothing of what I proposed applies. :)
> >
> > Do you conclude that it is easier to make a CGI installation safe than
> > it is for a module installation?... even if both can be make very safe.
> > I mean it is very simple to change the permissions of your cgi-bin
> > directory.
>
> Having virtually no experience with CGI installations of PHP, I wouldn't
> really make a call on that. My preference for the module stems from
> habits towards using modularity wherever possible and logical. :)
>
> > > Web root: /web/www.mydomain.com/webhome
> >
> > BTW, where does one make the change is he wants to have its root as
> >
> > Web root: /web/www.mydomain.com/home or whatever?
>
> In the case of a virtual host in Apache, it would be done in the
> VirtualHost directive, often in the httpd.conf. For example a virtual
> host template may look something like this:
>
> <VirtualHost www.mydomain.com>
> ServerName www.mydomain.com
> ServerAlias web.mydomain.com
> ServerAdmin sysadmin@mydomain.com
>
> DocumentRoot /web/www.mydomain.com/webhome
> <Directory /web/www.mydomain.com/webhome>
> # Whatever directory restrictions may apply
> </Directory>
>
> #ScriptAlias /cgi-bin/ /web/www.mydomain.com/cgi-bin
> <Directory /web/www.mydomain.com/cgi-bin>
> # Whatever directory restrictions may apply
> </Directory>
>
> CustomLog /web/www.mydomain.com/logs/access_log
> ErrorLog /web/www.mydomain.com/logs/error_log
> LogLevel warn
>
> php_value include_path /web/phpglobal:/web/www.mydomain.com/php
> php_value
> </VirtualHost>
>
> Matt
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net