[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP Gallery won't install



Benedict wrote:
> 
> When I try to open index.php during install of a php gallery on a Qube 3,
> I get this warning:
> 
> Warning: Failed opening 'albums.php' for inclusion
> (include_path='/usr/sausalito/ui/libPhp')
> in /home/groups/home/web/index.php on line 107
> 
> How do I solve this? PHP *is* functional in the
> same webroot, I tested it with simple php calls.
> 
> When will there be an update pkg of PHP available from Sun ?
> Can I do this from shell and does all then still work on the Qube?
> 
> Thanks for any possible solution to this,

/etc/httpd/php.ini has the include path hardwired to be _just_
/usr/sausalito/ui/libPhp.

1. Shell in as admin
2. su -
3. vi /etc/httpd/php.ini
4. scroll down to the line that starts "include_path"
5. modify the string "/usr/sausalito/ui/libPhp" to be
".:/usr/sausalito/ui/libPhp"
6. exit and save your changes
7. /etc/rc.d/init.d/httpd reload

This assumes your include/require statements have a complete relative
path to the file(s) your including...

require("sub/directory/file.to.be.inc");   # note lack of initial "/"

--
Bruce Timberlake
Sun Cobalt Technology Engineer
Sun Microsystems, Inc.