WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#18142 closed defect (bug) (duplicate)

Wordpress should explicitly set the permissions on generated .htaccess files

Reported by: conall Owned by:
Milestone: Priority: normal
Severity: trivial Version:
Component: Permalinks Keywords:
Focuses: Cc:

Description

After installing Wordpress 3.2 into a newly setup vhost, I let Wordpress generate a .htaccess file with mod_rewrite rules for permalinks.

The vhost immediately served 500s since the newly created .htaccess file was set to only be read/write by the vhost owner and the webserver process could not read it at all.

Wordpress should not rely on the umask settings of it's install directory and should explicitly chmod a generated .htaccess file immediately after writing to the file.

Change History (1)

comment:1 ocean903 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.