Custom php5

apps

#1

Regarding the script for custom php5 posted over on wiki.dreamhost:

Is there a place in the script to change the location of the php.ini file? I have two domains set up and I’d like the custom php for one and not the other.

I was thinking it was here:

cd $HOME

mkdir -p etc/php5

cp $HOME/src/php/php-5.0.4/php.ini-dist $HOME/etc/php5/php.ini

…but I’m new at this and would appreciate any help.


#2

In the wiki script, there is a discussion comment:

I just tried this (4 Sept 2005) and libxml and all its dependencies (libxslt, php) wouldn’t compile with errors like:

./.libs/libxml2.so: undefined reference to `pthread_getspecific’

I’m getting these errors also. But when I attempt to use the fix recommended by the author of the comment, I get:

configure: error: unrecognized option: —with-threads=no

Using ./configure --help seems to indicate that the option takes no arguments.

Anybody suggest a way to get around the undefined reference issue?

Edit: syntax error in the Wiki

—with-threads=no

should have been

–with-threads=no

Corrected syntax in Wiki