I am creating a pipe script, hashbang is correct and I did chmod it to 755, but it includes lots of other files like composer’s autoloader and some classes. should I chmod all of them to 755?
If yes, what can I do to avoid this as this is bad idea to chmod all of them to 755?
As long as you have read access to your included files, which your almost certainly do if you are using composer, then there is no need to change their file permissions.
When I created a pipe script I only needed to chmod the script itself. That’s the only one being directly run from the pipe. The includes work the same way they work for any PHP script whether called as a web page, a cron or a pipe.
1 Like
Thanks very much.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.