<div dir="ltr">Dear Charles, dear list,<br><br>As I said, I used your piece of map-file code and made the connection. Now I try the same but with another shapefile to another table in the same database, and I receive a segmentation fault of the Apache!<br>
<br>Here follows the code from the map-file:<br><br>- this works just fine - the simple layer from the shapefile:<br><br>&nbsp;&nbsp; LAYER # States point layer 1 begins here from the shapefile<br>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;cpoints&quot;<br>
&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; controlpoints_v04<br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<br>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POINT<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL &#39;circle&#39;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 255<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 243 255 17<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp; END # States point layer 1 ends here<br><br>- this works fine: <br><br>LAYER # States point layer 1 begins here<br>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;synoptic_stations&quot;<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE ogr<br>&nbsp;&nbsp;&nbsp; CONNECTION &quot;../data/ESRI/UTM/synoptic_stations.shp&quot;<br>
&nbsp;&nbsp;&nbsp; DATA &quot;SELECT * FROM synoptic_stations LEFT JOIN &#39;MYSQL:meteo,host=myhost,user=mysqluseraccount,password=mysqluserpasswd&#39;.bgc ON synoptic_stations.A = bgc.sin_kod&quot;<br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<br>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POINT<br>
&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL &#39;circle&#39;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp; END # States point layer 1 ends here<br><br>- this fails with a segmentation fault: <br><br>LAYER # States point layer 1 begins here<br>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;cpoints&quot;<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE ogr<br>&nbsp;&nbsp;&nbsp; CONNECTION &quot;../data/ESRI/mt/controlpoints_v04.shp&quot;<br>
&nbsp;&nbsp;&nbsp; DATA &quot;SELECT * FROM controlpoints_v04 LEFT JOIN &#39;MYSQL:meteo,host=myhost,user=mysqluseraccount,password=mysqluserpasswd&#39;.controlpoint ON controlpoints_v04.ID=controlpoint.CODENUM&quot;<br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<br>
&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POINT<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL &#39;circle&#39;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp; END # States point layer 1 ends here<br><br>So: the database is the same, mysql user and passwd are the same, the connection is from the same Apache server with the same php mapscript application. The shapefiles are different and the tables in the database are different.<br>
<br>Where could be the problem? <br><br>Thanks!<br>Minka<br></div>