[nycphp-talk] Upgrading php problem....
Hans Zaunere
zaunere at yahoo.com
Tue May 28 17:50:41 EDT 2002
> -rwxr-xr-x 1 root root 1105740 Jul 16 2001 php
> -rwxr-xr-x 1 root root 426 Jul 16 2001 php-config
> -rwxr-xr-x 1 root root 593 Jul 16 2001 phpextdist
> -rwxr-xr-x 1 root root 688 Jul 16 2001 phpize
>
>
> And of course my /usr/local/etc looks like this [where i've installed
>
> apache]:
>
> lrwxrwxrwx 1 root root 24 May 28 11:56 php ->
> /usr/local/etc/php-4.2.1
> drwxrwxr-x 16 root root 4096 May 28 11:48 php-4.2.1
> -rw-r--r-- 1 root root 18974720 May 28 11:26 php-4.2.1.tar
> lrwxrwxrwx 1 root root 29 May 28 11:25 httpd ->
> /usr/local/etc/apache_1.3.22/
> drwxr-xr-x 13 root root 4096 May 28 11:24 apache_1.3.22
>
Ick.. this IS an odd install structure (why everything in
/usr/local/etc? personally, I make /usr/local/apache and
/usr/local/php).
> SO THE QUESTION IS: [yes, i tried symbolic links, did not work.]
> Before
> I start hacking away [probably in the startup scripts], is there an
> easy
> way to just remap something here? The configuration that rackspace
> provided seems VERY different then what the regular php install
> writes
> out. SINCE everything has been working great, I dont want to have to
> reinstall postgres, apache, etc.
Anyway, it looks like /bin/php is a binary, and the link
/usr/local/etc/php is a link to a dir. Assuming the new php lives in
/usr/local/etc/php-4.2.1 and that permissions are ok (which they look
to be), maybe something like:
mv /bin/php /bin/php.original
ln -s /usr/local/etc/php-4.2.1/bin/php /bin/php
would help. Symbolic links should really clear things up, but take
note of some Apache and PHP settings about following symbolic links.
Maybe a similar problem with httpd->apache, or maybe I'm way off.
Always dumps vendor provided configurations when he can,
Hans Z.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
More information about the talk
mailing list