简体   繁体   中英

uploading new files to vhost. Need to change the privacy settings. Linux

My website has a feature that uploads files and displays them. So there is a folder in the public directory that stores those files.

But the main problem is that after each upload, I have to manually change the privacy of that particular file, otherwise it gives me error 403 Forbidden.

Can anyone please tell me how to make it world readable automatically, without me manually updating it each time?

This is Linux - Fedora

ps Just a beginner

Using php command - chmod($target_path, 0644);

http://php.net/manual/en/function.chmod.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM