Re: php.ini in /usr/local/etc

2007-02-12 Thread Bill Moran
In response to Noah <[EMAIL PROTECTED]>:
> 
> some flavors of linux place php/ini in /usr/local/lib.  I am wondering 
> if there is a web page and/or document that describes the convention 
> and  importance of placing config and ini files in /usr/local/etc

man hier is the best reference I know.

The basic rule is that stuff that is installed through ports gets its
config in /usr/local/etc.

-- 
Bill Moran
Collaborative Fusion Inc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: php.ini in /usr/local/etc

2007-02-12 Thread Hugo Silva

Noah wrote:

Hi there,

some flavors of linux place php/ini in /usr/local/lib.  I am wondering 
if there is a web page and/or document that describes the convention 
and  importance of placing config and ini files in /usr/local/etc


cheers,

Noah



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


It's a 3rd party configuration file, hence it's in /usr/local/etc and 
not /etc/ , and imo it wouldn't make sense if it was anywhere else.


Check man hier(7)

Hugo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: php.ini

2005-01-16 Thread Xian
On Sunday 16 January 2005 12:47, Dick Hoogendijk wrote:
> I installed php4 from ports. In /usr/local/etc are two files,
> php.ini-recommended and php.ini-dist. I have two questions:
> (a) I understand the recommended file is the most secure (?)
> (b) To what location do I have to copy one of them as php.ini? I read
> somewhere that I need to copy the file to /usr/local/lib. Is that right?
> The manual does not mention it ;-(
> Any help would be appreciated.

I installed PHP from the source code not ports, but my php.ini file 
is /usr/local/lib/php.ini

-- 
/Xian

"You cannot shake hands with a clenched fist"
Golda Meir
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PHP.ini

2003-11-15 Thread Kevin D. Kinsey, DaleCo, S.P.
Ian Barnes wrote:

Hi,

I appologise for duplicate posting. I forgot to attach the file

I am having problems parsing php variables.

say now i goto http://www.testdomain.com/index.php?news=TODAY its not
carrying the news=TODAY variable to the next page.
I have gone through my php.ini file and i cant find any problems. Now im
fairly sure that it is my php.ini file thats causing the problems. Attached
is my php.ini, if someone could find a fault i would be most gratefull.
I am running PHP 4-4.3.3.r1_1,1 withApache 1.3.27_5 on FreeBSD 4.9 Stable.

Thanks.

Ian
 

While it would be more appropriate to post this in
some forum or list that deals specifically with PHP
--- I'd recommend the forums at phpbuilder.com or
phpfreaks.com; both are friendly and have knowledgeable
PHP coders present.
However, this is absolutely the #1 FAQ re:
PHP at present, and it couldn't hurt, in light of the
continual growth in popularity of this scripting
language, to address it here.
PHP is now shipped with register_globals=OFF,
as noted in your attached file.  If you access the
URL http://www.foo.com/foo.php?bar=baz, and then attempt
this in the script "foo.php"


echo $bar;

?>

You will get no output.  It is recommended that
you code foo.php thus:


echo $_GET['bar'];

?>

which is the above case would echo "baz"
to the browser.
The workarounds are many; the one you are
looking for is to change the register_globals
directive in your php.ini to =ON and restart
Apache.  This is not recommended for several
security reasons.
As mentioned before, it's *recommended highly*
that you begin converting your scripts to the latter
usage.
Kevin Kinsey
DaleCo, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PHP.ini

2003-11-15 Thread Matthew Seaman
On Sat, Nov 15, 2003 at 07:08:40PM +0200, Ian Barnes wrote:

> I am having problems parsing php variables.
> 
> say now i goto http://www.testdomain.com/index.php?news=TODAY its not
> carrying the news=TODAY variable to the next page.
> 
> I have gone through my php.ini file and i cant find any problems. Now im
> fairly sure that it is my php.ini file thats causing the problems. Attached
> is my php.ini, if someone could find a fault i would be most gratefull.

register_globals is turned off for security reasons nowadays.  You
should be very careful of turning off register_globals on any machine
exposed to the internet.

The recommended way to access the CGI data is through the $_GET[]
array (or $_POST[] for scripts that work by that action)

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: PHP.ini

2003-11-15 Thread Peter Zyumbilev
This:
register_globals = Off
 shol
uld be:
register_globals = On

BIVOL
- Original Message - 
From: "Ian Barnes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 15, 2003 7:08 PM
Subject: PHP.ini


> Hi,
>
> I appologise for duplicate posting. I forgot to attach the file
>
> I am having problems parsing php variables.
>
> say now i goto http://www.testdomain.com/index.php?news=TODAY its not
> carrying the news=TODAY variable to the next page.
>
> I have gone through my php.ini file and i cant find any problems. Now im
> fairly sure that it is my php.ini file thats causing the problems.
Attached
> is my php.ini, if someone could find a fault i would be most gratefull.
>
> I am running PHP 4-4.3.3.r1_1,1 withApache 1.3.27_5 on FreeBSD 4.9 Stable.
>
> Thanks.
>
> Ian
>






> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: php.ini

2002-11-28 Thread Ceri Davies
On Thu, Nov 28, 2002 at 11:12:12PM +0800, adrian kok wrote:
> 
> I installed mod_php4 by port
> 
> But where is a file php.ini?

/usr/local/etc/php.ini-dist

Ceri
-- 
Your ignorance shall be your last breath!

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: php.ini

2002-11-28 Thread Jack L. Stone
At 11:12 PM 11.28.2002 +0800, adrian kok wrote:
>Hi all
>
>I installed mod_php4 by port
>
>But where is a file php.ini?
>
>Thank you for your help
>

Should be in /usr/local/etc

Your will have to rename it php.ini and edit any lines needed

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message