[Cartoweb-users] php startup error
oliver
oliver.christen at camptocamp.com
Wed Dec 7 08:52:11 EST 2005
Hi Paul,
It seems the problem come from the fact OSX comes with PHP4 preintalled, so
when trying to launch a php script in the Terminal, it is php4 that is used
instead of php5.
To be sure, in the Terminal, type php -v and see what is the php version in
use.
Either fix the path to the default php executable in your system or start
the script by specifying the path to the correct php5 executable:
/etc/path/to/correct/executable/php cw3setup.php --install --base-utl
http://yourbaseurl
Let me know it this solve your problem.
Oliver Christen
Camptocamp SA
> Hi,
>
> Thanks Oliver for that one. You were correct on that verification:
>
> <?php
> exit();
>
> This 'php' was indeed missing in 'cw3setup.php' but still the same
> error occurs when i try to start php cw3setup again just as below:-
>
> in 'Terminal' i get:---
>
> Parse error: parse error in
> /Library/WebServer/Documents/cartoweb3/cw3setup.php on line 271
>
> when pointing the Browser at 'http://localhost/cartoweb3/htdocs/' i
get:---
>
>
>
>
> An exception in early stage occured:
> object(CartoclientException)#35 (7) {
> ["msg:private"]=>
> string(48) "You need to set cartoclientBaseUrl in client.ini"
> ["message:protected"]=>
> string(777) "You need to set cartoclientBaseUrl in client.ini
> Backtrace:
>
> file: 121 - /Library/WebServer/Documents/cartoweb3/client/Cartoclient.php
> call: ClientConfig::__construct()
>
> file: 403 - /Library/WebServer/Documents/cartoweb3/client/Cartoclient.php
> call: ClientConfig->__construct(Object(ClientProjectHandler))
>
> file: 550 - /Library/WebServer/Documents/cartoweb3/client/Cartoclient.php
> call: Cartoclient->getConfig()
>
> file: 362 - /Library/WebServer/Documents/cartoweb3/client/Cartoclient.php
> call: Cartoclient->initializePlugins()
>
> file: 36 - /Library/WebServer/Documents/cartoweb3/htdocs/client.php
> call: Cartoclient->__construct()
>
> file: 3 - /Library/WebServer/Documents/cartoweb3/htdocs/demoCW3.php
> call:
require_once("/Library/WebServer/Documents/cartoweb3/htdocs/client.php")
>
> "
> ["string:private"]=>
> string(0) ""
> ["code:protected"]=>
> int(0)
> ["file:protected"]=>
> string(61)
"/Library/WebServer/Documents/cartoweb3/client/Cartoclient.php"
> ["line:protected"]=>
> int(121)
> ["trace:private"]=>
> array(6) {
> [0]=>
> array(5) {
> ["file"]=>
> string(61)
"/Library/WebServer/Documents/cartoweb3/client/Cartoclient.php"
> ["line"]=>
> int(121)
> ["function"]=>
> string(11) "__construct"
>
> .......etc....
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
More information about the Cartoweb-users
mailing list