#6631 closed enhancement (maybelater)
File and Directory Persmission are not checked by install.php
Reported by: | hakre | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Upload | Keywords: | |
Focuses: | Cc: |
Description
I personally and many other users according to the feedback I see and discuss in the support forums theses days encounter upgrade and installation problems because the file upload does not work. For version 2.5 this might escalate a lot, because there are numerous technical issues with a new uploader software that ships the first time with that version.
Anyway it would help a lot, if the install and/or upgrade script does check for the right persmissions in the wp-upload folder while upgrading / installing.
Those are:
- The user php is executed under can access the directory
- That user can create a directory inside that directory
- That user can create a file inside that created direcotry
A simple mkdir and temporary file creation could verify that. If those tests fail, it would be a good idea to display a message. Maybe it's a good Idea as well to provide such a test inside the admin sothat the blogs setup can be checked later on as well.
Change History (14)
#6
follow-up:
↓ 11
@
15 years ago
- Component changed from Upgrade/Install to Upload
There is another ticket related to giving a warning upon upgrade in 2.9 if the PHP versions are out of date.. Maybe it's time to introduce a few health checks and display a dismissable notice about such items..
See #10116
#8
@
15 years ago
I agree. We need some checks to avoid problems. One of them must be 'be sure all your plugins are deactivated' before upgrading.
#9
follow-up:
↓ 10
@
15 years ago
"Be sure all your plugins are deactivated" is not desirable at all. There are hooks in the upgrade API that would become totally useless. Better check, using readme.txt files whether the plugins are compatible with the latest and greatest WP, and suggest deactivating those that aren't.
#10
in reply to:
↑ 9
@
15 years ago
Yes :) thanks for the correction.
Learning a lot here :)
Replying to Denis-de-Bernardy:
"Be sure all your plugins are deactivated" is not desirable at all. There are hooks in the upgrade API that would become totally useless. Better check, using readme.txt files whether the plugins are compatible with the latest and greatest WP, and suggest deactivating those that aren't.
#11
in reply to:
↑ 6
@
15 years ago
Replying to dd32:
There is another ticket related to giving a warning upon upgrade in 2.9 if the PHP versions are out of date.. Maybe it's time to introduce a few health checks and display a dismissable notice about such items..
See #10116
+1 that would create the opportunity to collect some check routines in one place. where to place the health checks?
Somewhere On the PHP website, there is a function suggested to verify if a path is writeable or not. It workaround some known bugs already.