Uploading scripts
If your script is hosted on an Unix-type box, you will need to upload
the scripts in ASCII mode. This is especially needed if you use a Windows-type
editor.
After you upload, you need to set up the permissions for the scripts
and directories.
All the files and directories should be accessible to the user that runs
the http process (or service on NT). It would be simple to have that user
own all the files, but then you will have a problem overwriting content
through your FTP connection, if you are not at least in the same group
as the web server user.
The active script is the only one that should be flagged executable,
which is "555" at least. A lot of people use to flag
it "755", but that is too much.
The directories should be flagged "755", or at least
"555". The directories that contain data files, should
be flagged "777", which will give you as FTP user access
to upload and overwrite files.
Be aware that all the data files that are being processed and changed
by the script, will change ownership to be owned by the user account that
runs the web server. Keep that in mind when you use perl scripts that
modify HTML static content, since you will not be able to change that
content, unless you delete it.
|