Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2355519
PhabricatorSetupCheckStorage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
897 B
Referenced Files
None
Subscribers
None
PhabricatorSetupCheckStorage.php
View Options
<?php
final
class
PhabricatorSetupCheckStorage
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$local_key
=
'storage.local-disk.path'
;
$local_path
=
PhabricatorEnv
::
getEnvConfig
(
$local_key
);
if
(!
Filesystem
::
pathExists
(
$local_path
)
||
!
is_readable
(
$local_path
)
||
!
is_writable
(
$local_path
))
{
$message
=
pht
(
'Configured location for storing uploaded files on disk ("%s") does '
.
'not exist, or is not readable or writable. Verify the directory '
.
'exists and is readable and writable by the webserver.'
,
$local_path
);
$this
->
newIssue
(
'config.storage.local-disk.path'
)
->
setShortName
(
pht
(
'Local Disk Storage'
))
->
setName
(
pht
(
'Local Disk Storage Not Readable/Writable'
))
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'storage.local-disk.path'
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 1:43 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
443834
Default Alt Text
PhabricatorSetupCheckStorage.php (897 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment