Answered
Live Data / Problem with file permissions
Just trying out an old version of Dreamweaver MX 2004. I am
using my webhosting service for remote server/testing server
duties. It is running PHP 4.3.10 and MySQL 3.23.58. I was able to
set up the database connection and test-retrieve a recordset with
no problems. In following the tutorial I found that Livedata
wouldn't work, it just giving me a warning about file permissions
being wrong. It turns out that when Dreamweaver creates a temporary
file of the work-in-progress to upload to the remote server the
file is created on the server with owner=rw, group=rw, world=r
which explains why it won't run - group has to be set to group=r.
The file is created on the fly and then immediately deleted by
Dreamweaver so it is impossible to manually set the permission on
the server and probably fairly pointless too.
I tried just saving the file and previewing in the browser which again causes it to be uploaded to the remote server. The first time this resulted in the browser offering a file download box instead of running the page. The reason is - again - that Dreamweaver is setting the uploaded file permissions to include group=rw. If I manually set the permission for group to group=r it runs fine.
It turns out that Dreamweaver is always setting the file permissions on file uploads (checked php and html) to the remote/testing server to include group=rw. Once I set it manually on the remote/testing server to group=r for a php file everything is fine and subsequent uploads of the same file do not change it again.
I checked with the webhosting company and their second-line have reported back to me that the default file permission they set on uploaded files includes group=r so it must be DW that is causing the problem by setting group=rw the first time. I confirmed this by using WS-FTP to upload the same file (renamed) to the same target directory and the permissions set were owner=rw, group=r, world=r.
So
Can anyone please tell me how to change the permissions DW sets on files written to a remote server because I have spent countless hours on it without success. From looking at other posts in this forum it could be that other users are hitting the same kind of problem with DW8
I tried just saving the file and previewing in the browser which again causes it to be uploaded to the remote server. The first time this resulted in the browser offering a file download box instead of running the page. The reason is - again - that Dreamweaver is setting the uploaded file permissions to include group=rw. If I manually set the permission for group to group=r it runs fine.
It turns out that Dreamweaver is always setting the file permissions on file uploads (checked php and html) to the remote/testing server to include group=rw. Once I set it manually on the remote/testing server to group=r for a php file everything is fine and subsequent uploads of the same file do not change it again.
I checked with the webhosting company and their second-line have reported back to me that the default file permission they set on uploaded files includes group=r so it must be DW that is causing the problem by setting group=rw the first time. I confirmed this by using WS-FTP to upload the same file (renamed) to the same target directory and the permissions set were owner=rw, group=r, world=r.
So
Can anyone please tell me how to change the permissions DW sets on files written to a remote server because I have spent countless hours on it without success. From looking at other posts in this forum it could be that other users are hitting the same kind of problem with DW8
