I solved that problem and shp2img doesn't give errors and i can visulize the output with the browser, but when i put the path of that mapfile in the src img for apache i can't see anything