Linux Apache Server Web development – note
February 24, 2010 § Leave a comment
Couple things to note.
1.What is the UID of the files that generate by server side script?
It is ‘apache’
2. Why I cannot use chmod 777 on that file, but I can chmod the file I just created using FTP software?
Because the ftp login UID is not apache.
3. Why my script is not working on deployment server, but work in localhost in windows enviroment?
Many reasons, if it related to above issues, then it would be a UID named ‘user’ script want to write something on that folder with UID named ‘apache’ (this folder probably you use mkdir command to generate ).
It will happens to be a issue once if the PHP < 6.0 safe mode is turn on .