[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 {let upload_results=$test_result[2]} 3 {*<h3>{$result_number}. {"File uploading is disabled"|i18n("design/standard/setup/tests")}</h3>*} 4 <h3>{$result_number}. {"File uploading is not possible"|i18n("design/standard/setup/tests")}</h3> 5 6 {section show=$upload_results.php_upload_is_enabled|not} 7 <p> 8 {"File uploading is not enabled which means that it's impossible for eZ publish to handle file uploading. All other parts of eZ publish will still work fine but it's recommended to enable file uploads."|i18n("design/standard/setup/tests")} 9 </p> 10 <h3>{"Configuration"|i18n("design/standard/setup/tests")}</h3> 11 <p> 12 {"Enabling file uploads is done by setting %1 in php.ini. Refer to the PHP manual for how to set configuration switches"|i18n("design/standard/setup/tests",,array('<tt class="option">file_uploads = "1"</tt>'))} 13 {"More information on enabling the extension can be found by reading %1 and %2"|i18n("design/standard/setup/tests",,array('<a target="_other" href="http://www.php.net/manual/en/features.file-upload.php">file uploads</a>','<a target="_other" href="http://www.php.net/manual/en/configuration.directives.php#ini.file-uploads">configuration directives</a>'))}. 14 </p> 15 {/section} 16 17 {section show=$upload_results.upload_dir_exists|not} 18 {* START: directory existance *} 19 <p> 20 {"The PHP upload directory %upload_dir does not exists or is not accessible, without this you will not be able to upload files or images to eZ publish."|i18n( 'design/standard/setup/tests',, hash( '%upload_dir', concat( '<i>', $upload_results.php_upload_dir, '</i>' ) ) )} 21 </p> 22 <p> 23 {"Create the directory %upload_dir on your system. If you do not have the possibility to create this yourself ask the administrator to create it for you."|i18n( 'design/standard/setup/tests',, hash( '%upload_dir', concat( '<i>', $upload_results.php_upload_dir, '</i>' ) ) )} 24 </p> 25 26 {section show=$upload_results.php_upload_is_root} 27 <blockquote class="note"> 28 <p> 29 <b>{'Note'|i18n( 'design/standard/setup/tests' )}:</b>{'The upload directory is currently placed in the directory of the root user. 30 This is a security problem and should be changed to another global temporary directory'|i18n( 'design/standard/setup/tests' )} 31 </p> 32 </blockquote> 33 {/section} 34 35 {* START: mkdir examples *} 36 <h3>{'Shell commands'|i18n( 'design/standard/setup/tests' )}</h3> 37 <p>{"This shell command will create the upload directory."|i18n( 'design/standard/setup/tests' )}</p> 38 <pre class="example">mkdir -p {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section}</pre> 39 {* END: mkdir examples *} 40 41 {* END: directory existance *} 42 43 {section-else} 44 45 {section show=or( $upload_results.upload_dir_writeable|not, $upload_results.upload_dir_create_file|not )} 46 {* START: directory permission *} 47 <p> 48 {"The PHP upload directory %upload_dir is not writeable. This means that it will be impossible to upload files or images to eZ publish."|i18n( 'design/standard/setup/tests',, hash( '%upload_dir', concat( '<i>', $upload_results.php_upload_dir, '</i>' ) ) )} 49 </p> 50 <p> 51 {"You must change the permission on the directory %upload_dir. If you do not have the possibility to create this yourself ask the administrator to do this for you."|i18n( 'design/standard/setup/tests',, hash( '%upload_dir', concat( '<i>', $upload_results.php_upload_dir, '</i>' ) ) )} 52 </p> 53 54 {section show=$upload_results.php_upload_is_root} 55 <blockquote class="note"> 56 <p> 57 <b>{'Note'|i18n( 'design/standard/setup/tests' )}:</b>{'The upload directory is currently placed in the directory of the root user. 58 This is a security problem and should be changed to another global temporary directory'|i18n( 'design/standard/setup/tests' )} 59 </p> 60 </blockquote> 61 {/section} 62 63 {* START: chmod examples *} 64 {section show=$upload_results.user_info.has_extension} 65 <h3>{'Shell commands'|i18n( 'design/standard/setup/tests' )}</h3> 66 <p>{"These shell commands will give proper permission to the upload directory."|i18n( 'design/standard/setup/tests' )}</p> 67 <pre class="example">chown {$upload_results.user_info.user_name}:{$upload_results.user_info.group_name} {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section} 68 69 chmod ug+rwx {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section}</pre> 70 71 <h3>{'Alternative shell commands'|i18n( 'design/standard/setup/tests' )}</h3> 72 <p>{"If you don't have permissions to change the ownership you can try this command."|i18n( 'design/standard/setup/tests' )}</p> 73 <pre class="example">chmod a+rwx {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section}</pre> 74 {section-else} 75 <p> 76 {"eZ publish could not detect the user and group of the webserver. 77 If you know the user and group of the webserver it's recommended to change the ownership of the upload directory to match this user and group. 78 To do this you need to change the %chown commands under Alternative shell commands."|i18n( 'design/standard/setup/tests',, hash( '%chown', '<tt class="note">chown</tt>' ) )} 79 </p> 80 <h3>{'Shell commands'|i18n( 'design/standard/setup/tests' )}</h3> 81 <p>{"This shell command will give proper permission to the upload directory."|i18n( 'design/standard/setup/tests' )}</p> 82 <pre class="example">chmod a+rwx {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section}</pre> 83 84 <h3>{'Alternative shell commands'|i18n( 'design/standard/setup/tests' )}</h3> 85 <p>{"If you know the user and group of the webserver you can try this command. Replace apache:apache with the user and group."|i18n( 'design/standard/setup/tests' )}</p> 86 <pre class="example">chmod ug+rwx {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section} 87 88 chown apache:apache {section var=dir loop=$upload_results.php_upload_split_dirs}{$dir}{delimiter}{' '}{/delimiter}{/section}</pre> 89 {/section} 90 {* END: chmod examples *} 91 92 {* END: directory permission *} 93 {/section} 94 95 {/section} 96 97 {/let}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |