[BlueOnyx:21042] Re: Command for chmod for All php files

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Tue May 16 10:25:25 -05 2017


Hi RC

On 5/16/2017 10:13 AM, Richard Barker wrote:
> Ran the command and got this error
>
> ./fixphp
> find: paths must precede expression: wp-activate.php
> Usage: find [-H] [-L] [-P] [-Olevel] [-D
> help|tree|search|stat|rates|opt|exec] [path...] [expression]

I've found it quickest and easiest to just go through and recursively 
set all files to 644 and directories to 755, which is the recommendation 
from WordPress.  Do that with these 2 commands:

find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

Good luck!

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list