Forum Moderators: coopster

Message Too Old, No Replies

OS X Server php config

Where in blazes does Apple put their copy of php.ini

         

HeadBut

2:10 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



I'd like to make an include directory and hide my secret php files but I can't for the life of me find the php.ini file.
Also how do I modify the file to include paths outside of my web server path?

coopster

4:17 pm on Sep 18, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It's probably in your bin directory
/usr/local/bin/php.ini
or (if your don't have a local directory)
/usr/bin/php.ini
.

Resource:
Compiling for OS X Server [php.net]

>>Also how do I modify the file to include paths outside of my web server path?

Just key them in to the include_path [php.net] configuration directive.

HeadBut

9:28 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



ok, found it! Now how do I add an include path to this:

#! /bin/sh

prefix="/usr"
version="4.1.2"
includedir="${prefix}/include/php"
includes="-I$includedir -I$includedir/main -I$includedir/Zend"
if test '@TSRM_DIR@'!= ''; then
includes="$includes -I$includedir/TSRM"
fi
extension_dir='/usr/lib/php/extensions/no-debug-non-zts-20010901'

case "$1" in
--prefix)
echo $prefix;;
--includes)
echo $includes;;
--extension-dir)
echo $extension_dir;;
--version)
echo $version;;
*)
echo "Usage: $0 [--prefix¦--includes¦--extension-dir¦--version]"
exit 1;;
esac

exit 0

thanks!

HeadBut

9:35 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



Maybe I should just use the .htaccess, but the OS won't let me save the file.