Most likely a permissions issue. The file in question looks like it will be
created wherever your php script is executed from, which depends on how your
web server is configured. You could try changing the log location to an
absolute path... to a directory that you know the user running the php/web
server has permission to write to.

-Justin

On Mon, Feb 21, 2011 at 10:30 AM, Carlos Henriquez <[email protected]>wrote:

> hi, i'm trying to make geoserver to reload stores using curl, in previous
> versions(1.7 i think) of geoserver they used this line to do this:
> **
> *<?php*
> *exec("curl 
> **http://localhost:".$port."/geoserver/admin/loadFromXML.do*<http://localhost:%22.$port.%22/geoserver/admin/loadFromXML.do>
> *");*
> *?>*
> **
> now i'm trying to do the same in 2.0.2 version, so i'm following online
> documentation but i can't get the PHP/cURL tutorial working
> url for the tutorial =
> http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples-php.html
>
> i've run some curl examples without any problem but this tutorial fails in
> the first line i get the message: "can't open log file" when the script
> tries to open and overwrite "GeoserverPHP.log" file, i looked for this file
> in my server but i couldn't find it,
> i'm using *geoserver 2.0.2* over *ubuntu 10.04*
>
> anyone any ideas why i get this message?
>
> thank you very much
>
> Carlos.-
> **
> **
>
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to