When I call the command via the ssh console under root everything works, but when I call from the program, that is, with the rights of the apache user, it does not work. Here is the team
gdal_translate -of GTiff -co "TILED=YES" \ /opt/path/path/TCSHAPE/11-38-137-\(109-3\).tif \ /opt/path/path/TCSHAPE/all/TCSHAPE.tif
apacheuser does not have permissions to write to the/opt/path/path/TCSHAPE/all? - Dmitri Chubarov