raksmart活动促销

分享

写回答

发帖

[提问] 文件不能删除了

HostMonster HostMonster 1911 人阅读 | 6 人回复

发表于 2008-5-21 19:46:04 | 显示全部楼层 |阅读模式

在我的public_html目录里面,我前天安装过drupal!今天准备删除它,我先把数据库删除了!ftp和控制面板都不能,问客服很久了  没有响应!
文件夹可以更名,不能覆盖,权限是755!

结构
    public_html
                000(原来是test)
                                     sites
                                      default
                                                 settings.php(不能更改任何内容)
                                                       default.settings.php同上
                                                       files 文件夹

回答|共 6 个

潜水学习

发表于 2008-5-21 19:47:04 | 显示全部楼层

2个文件内容

default.settings.php
  1. default.settings.php
  2. PHP script text
  3. --------------------------------------------------------------------------------

  4. <?php
  5. // $Id: default.settings.php,v 1.8 2007/12/20 09:35:10 goba Exp $

  6. /**
  7. * @file
  8. * Drupal site-specific configuration file.
  9. *
  10. * IMPORTANT NOTE:
  11. * This file may have been set to read-only by the Drupal installation
  12. * program. If you make changes to this file, be sure to protect it again
  13. * after making your modifications. Failure to remove write permissions
  14. * to this file is a security risk.
  15. *
  16. * The configuration file to be loaded is based upon the rules below.
  17. *
  18. * The configuration directory will be discovered by stripping the
  19. * website's hostname from left to right and pathname from right to
  20. * left. The first configuration file found will be used and any
  21. * others will be ignored. If no other configuration file is found
  22. * then the default configuration file at 'sites/default' will be used.
  23. *
  24. * For example, for a fictitious site installed at
  25. * http://www.drupal.org/mysite/test/, the 'settings.php'
  26. * is searched in the following directories:
  27. *
  28. *  1. sites/www.drupal.org.mysite.test
  29. *  2. sites/drupal.org.mysite.test
  30. *  3. sites/org.mysite.test
  31. *
  32. *  4. sites/www.drupal.org.mysite
  33. *  5. sites/drupal.org.mysite
  34. *  6. sites/org.mysite
  35. *
  36. *  7. sites/www.drupal.org
  37. *  8. sites/drupal.org
  38. *  9. sites/org
  39. *
  40. * 10. sites/default
  41. *
  42. * If you are installing on a non-standard port number, prefix the
  43. * hostname with that number. For example,
  44. * http://www.drupal.org:8080/mysite/test/ could be loaded from
  45. * sites/8080.www.drupal.org.mysite.test/.
  46. */

  47. /**
  48. * Database settings:
  49. *
  50. * Note that the $db_url variable gets parsed using PHP's built-in
  51. * URL parser (i.e. using the "parse_url()" function) so make sure
  52. * not to confuse the parser. If your username, password
  53. * or database name contain characters used to delineate
  54. * $db_url parts, you can escape them via URI hex encodings:
  55. *
  56. *   : = %3a   / = %2f   @ = %40
  57. *   + = %2b   ( = %28   ) = %29
  58. *   ? = %3f   = = %3d   & = %26
  59. *
  60. * To specify multiple connections to be used in your site (i.e. for
  61. * complex custom modules) you can also specify an associative array
  62. * of $db_url variables with the 'default' element used until otherwise
  63. * requested.
  64. *
  65. * You can optionally set prefixes for some or all database table names
  66. * by using the $db_prefix setting. If a prefix is specified, the table
  67. * name will be prepended with its value. Be sure to use valid database
  68. * characters only, usually alphanumeric and underscore. If no prefixes
  69. * are desired, leave it as an empty string ''.
  70. *
  71. * To have all database names prefixed, set $db_prefix as a string:
  72. *
  73. *   $db_prefix = 'main_';
  74. *
  75. * To provide prefixes for specific tables, set $db_prefix as an array.
  76. * The array's keys are the table names and the values are the prefixes.
  77. * The 'default' element holds the prefix for any tables not specified
  78. * elsewhere in the array. Example:
  79. *
  80. *   $db_prefix = array(
  81. *     'default'   => 'main_',
  82. *     'users'     => 'shared_',
  83. *     'sessions'  => 'shared_',
  84. *     'role'      => 'shared_',
  85. *     'authmap'   => 'shared_',
  86. *     'sequences' => 'shared_',
  87. *   );
  88. *
  89. * Database URL format:
  90. *   $db_url = 'mysql://username:password@localhost/databasename';
  91. *   $db_url = 'mysqli://username:password@localhost/databasename';
  92. *   $db_url = 'pgsql://username:password@localhost/databasename';
  93. */
  94. $db_url = 'mysql://username:password@localhost/databasename';
  95. $db_prefix = '';

  96. /**
  97. * Access control for update.php script
  98. *
  99. * If you are updating your Drupal installation using the update.php script
  100. * being not logged in as administrator, you will need to modify the access
  101. * check statement below. Change the FALSE to a TRUE to disable the access
  102. * check. After finishing the upgrade, be sure to open this file again
  103. * and change the TRUE back to a FALSE!
  104. */
  105. $update_free_access = FALSE;

  106. /**
  107. * Base URL (optional).
  108. *
  109. * If you are experiencing issues with different site domains,
  110. * uncomment the Base URL statement below (remove the leading hash sign)
  111. * and fill in the URL to your Drupal installation.
  112. *
  113. * You might also want to force users to use a given domain.
  114. * See the .htaccess file for more information.
  115. *
  116. * Examples:
  117. *   $base_url = 'http://www.example.com';
  118. *   $base_url = 'http://www.example.com:8888';
  119. *   $base_url = 'http://www.example.com/drupal';
  120. *   $base_url = 'https://www.example.com:8888/drupal';
  121. *
  122. * It is not allowed to have a trailing slash; Drupal will add it
  123. * for you.
  124. */
  125. # $base_url = 'http://www.example.com';  // NO trailing slash!

  126. /**
  127. * PHP settings:
  128. *
  129. * To see what PHP settings are possible, including whether they can
  130. * be set at runtime (ie., when ini_set() occurs), read the PHP
  131. * documentation at http://www.php.net/manual/en/ini.php#ini.list
  132. * and take a look at the .htaccess file to see which non-runtime
  133. * settings are used there. Settings defined here should not be
  134. * duplicated there so as to avoid conflict issues.
  135. */
  136. ini_set('arg_separator.output',     '&amp;');
  137. ini_set('magic_quotes_runtime',     0);
  138. ini_set('magic_quotes_sybase',      0);
  139. ini_set('session.cache_expire',     200000);
  140. ini_set('session.cache_limiter',    'none');
  141. ini_set('session.cookie_lifetime',  2000000);
  142. ini_set('session.gc_maxlifetime',   200000);
  143. ini_set('session.save_handler',     'user');
  144. ini_set('session.use_only_cookies', 1);
  145. ini_set('session.use_trans_sid',    0);
  146. ini_set('url_rewriter.tags',        '');

  147. /**
  148. * Drupal automatically generates a unique session cookie name for each site
  149. * based on on its full domain name. If you have multiple domains pointing at
  150. * the same Drupal site, you can either redirect them all to a single domain
  151. * (see comment in .htaccess), or uncomment the line below and specify their
  152. * shared base domain. Doing so assures that users remain logged in as they
  153. * cross between your various domains.
  154. */
  155. # $cookie_domain = 'example.com';

  156. /**
  157. * Variable overrides:
  158. *
  159. * To override specific entries in the 'variable' table for this site,
  160. * set them here. You usually don't need to use this feature. This is
  161. * useful in a configuration file for a vhost or directory, rather than
  162. * the default settings.php. Any configuration setting from the 'variable'
  163. * table can be given a new value. Note that any values you provide in
  164. * these variable overrides will not be modifiable from the Drupal
  165. * administration interface.
  166. *
  167. * Remove the leading hash signs to enable.
  168. */
  169. # $conf = array(
  170. #   'site_name' => 'My Drupal site',
  171. #   'theme_default' => 'minnelli',
  172. #   'anonymous' => 'Visitor',
  173. /**
  174. * A custom theme can be set for the off-line page. This applies when the site
  175. * is explicitly set to off-line mode through the administration page or when
  176. * the database is inactive due to an error. It can be set through the
  177. * 'maintenance_theme' key. The template file should also be copied into the
  178. * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  179. * Note: This setting does not apply to installation and update pages.
  180. */
  181. #   'maintenance_theme' => 'minnelli',
  182. /**
  183. * reverse_proxy accepts a boolean value.
  184. *
  185. * Enable this setting to determine the correct IP address of the remote
  186. * client by examining information stored in the X-Forwarded-For headers.
  187. * X-Forwarded-For headers are a standard mechanism for identifying client
  188. * systems connecting through a reverse proxy server, such as Squid or
  189. * Pound. Reverse proxy servers are often used to enhance the performance
  190. * of heavily visited sites and may also provide other site caching,
  191. * security or encryption benefits. If this Drupal installation operates
  192. * behind a reverse proxy, this setting should be enabled so that correct
  193. * IP address information is captured in Drupal's session management,
  194. * logging, statistics and access management systems; if you are unsure
  195. * about this setting, do not have a reverse proxy, or Drupal operates in
  196. * a shared hosting environment, this setting should be set to disabled.
  197. */
  198. #   'reverse_proxy' => TRUE,
  199. /**
  200. * reverse_proxy accepts an array of IP addresses.
  201. *
  202. * Each element of this array is the IP address of any of your reverse
  203. * proxies. Filling this array Drupal will trust the information stored
  204. * in the X-Forwarded-For headers only if Remote IP address is one of
  205. * these, that is the request reaches the web server from one of your
  206. * reverse proxies. Otherwise, the client could directly connect to
  207. * your web server spoofing the X-Forwarded-For headers.
  208. */
  209. #   'reverse_proxy_addresses' => array('a.b.c.d', ...),
  210. # );

  211. /**
  212. * String overrides:
  213. *
  214. * To override specific strings on your site with or without enabling locale
  215. * module, add an entry to this list. This functionality allows you to change
  216. * a small number of your site's default English language interface strings.
  217. *
  218. * Remove the leading hash signs to enable.
  219. */
  220. # $conf['locale_custom_strings_en'] = array(
  221. #   'forum'      => 'Discussion board',
  222. #   '@count min' => '@count minutes',
  223. # );
复制代码

潜水学习

发表于 2008-5-21 19:48:12 | 显示全部楼层

settings.php
  1. settings.php
  2. PHP script text
  3. --------------------------------------------------------------------------------

  4. <?php
  5. // $Id: default.settings.php,v 1.8 2007/12/20 09:35:10 goba Exp $

  6. /**
  7. * @file
  8. * Drupal site-specific configuration file.
  9. *
  10. * IMPORTANT NOTE:
  11. * This file may have been set to read-only by the Drupal installation
  12. * program. If you make changes to this file, be sure to protect it again
  13. * after making your modifications. Failure to remove write permissions
  14. * to this file is a security risk.
  15. *
  16. * The configuration file to be loaded is based upon the rules below.
  17. *
  18. * The configuration directory will be discovered by stripping the
  19. * website's hostname from left to right and pathname from right to
  20. * left. The first configuration file found will be used and any
  21. * others will be ignored. If no other configuration file is found
  22. * then the default configuration file at 'sites/default' will be used.
  23. *
  24. * For example, for a fictitious site installed at
  25. * http://www.drupal.org/mysite/test/, the 'settings.php'
  26. * is searched in the following directories:
  27. *
  28. *  1. sites/www.drupal.org.mysite.test
  29. *  2. sites/drupal.org.mysite.test
  30. *  3. sites/org.mysite.test
  31. *
  32. *  4. sites/www.drupal.org.mysite
  33. *  5. sites/drupal.org.mysite
  34. *  6. sites/org.mysite
  35. *
  36. *  7. sites/www.drupal.org
  37. *  8. sites/drupal.org
  38. *  9. sites/org
  39. *
  40. * 10. sites/default
  41. *
  42. * If you are installing on a non-standard port number, prefix the
  43. * hostname with that number. For example,
  44. * http://www.drupal.org:8080/mysite/test/ could be loaded from
  45. * sites/8080.www.drupal.org.mysite.test/.
  46. */

  47. /**
  48. * Database settings:
  49. *
  50. * Note that the $db_url variable gets parsed using PHP's built-in
  51. * URL parser (i.e. using the "parse_url()" function) so make sure
  52. * not to confuse the parser. If your username, password
  53. * or database name contain characters used to delineate
  54. * $db_url parts, you can escape them via URI hex encodings:
  55. *
  56. *   : = %3a   / = %2f   @ = %40
  57. *   + = %2b   ( = %28   ) = %29
  58. *   ? = %3f   = = %3d   & = %26
  59. *
  60. * To specify multiple connections to be used in your site (i.e. for
  61. * complex custom modules) you can also specify an associative array
  62. * of $db_url variables with the 'default' element used until otherwise
  63. * requested.
  64. *
  65. * You can optionally set prefixes for some or all database table names
  66. * by using the $db_prefix setting. If a prefix is specified, the table
  67. * name will be prepended with its value. Be sure to use valid database
  68. * characters only, usually alphanumeric and underscore. If no prefixes
  69. * are desired, leave it as an empty string ''.
  70. *
  71. * To have all database names prefixed, set $db_prefix as a string:
  72. *
  73. *   $db_prefix = 'main_';
  74. *
  75. * To provide prefixes for specific tables, set $db_prefix as an array.
  76. * The array's keys are the table names and the values are the prefixes.
  77. * The 'default' element holds the prefix for any tables not specified
  78. * elsewhere in the array. Example:
  79. *
  80. *   $db_prefix = array(
  81. *     'default'   => 'main_',
  82. *     'users'     => 'shared_',
  83. *     'sessions'  => 'shared_',
  84. *     'role'      => 'shared_',
  85. *     'authmap'   => 'shared_',
  86. *     'sequences' => 'shared_',
  87. *   );
  88. *
  89. * Database URL format:
  90. *   $db_url = 'mysql://username:password@localhost/databasename';
  91. *   $db_url = 'mysqli://username:password@localhost/databasename';
  92. *   $db_url = 'pgsql://username:password@localhost/databasename';
  93. */
  94. $db_url = 'mysqli://bbslianm_test:702069564@localhost/bbslianm_test';
  95. $db_prefix = '';

  96. /**
  97. * Access control for update.php script
  98. *
  99. * If you are updating your Drupal installation using the update.php script
  100. * being not logged in as administrator, you will need to modify the access
  101. * check statement below. Change the FALSE to a TRUE to disable the access
  102. * check. After finishing the upgrade, be sure to open this file again
  103. * and change the TRUE back to a FALSE!
  104. */
  105. $update_free_access = FALSE;

  106. /**
  107. * Base URL (optional).
  108. *
  109. * If you are experiencing issues with different site domains,
  110. * uncomment the Base URL statement below (remove the leading hash sign)
  111. * and fill in the URL to your Drupal installation.
  112. *
  113. * You might also want to force users to use a given domain.
  114. * See the .htaccess file for more information.
  115. *
  116. * Examples:
  117. *   $base_url = 'http://www.example.com';
  118. *   $base_url = 'http://www.example.com:8888';
  119. *   $base_url = 'http://www.example.com/drupal';
  120. *   $base_url = 'https://www.example.com:8888/drupal';
  121. *
  122. * It is not allowed to have a trailing slash; Drupal will add it
  123. * for you.
  124. */
  125. # $base_url = 'http://www.example.com';  // NO trailing slash!

  126. /**
  127. * PHP settings:
  128. *
  129. * To see what PHP settings are possible, including whether they can
  130. * be set at runtime (ie., when ini_set() occurs), read the PHP
  131. * documentation at http://www.php.net/manual/en/ini.php#ini.list
  132. * and take a look at the .htaccess file to see which non-runtime
  133. * settings are used there. Settings defined here should not be
  134. * duplicated there so as to avoid conflict issues.
  135. */
  136. ini_set('arg_separator.output',     '&amp;');
  137. ini_set('magic_quotes_runtime',     0);
  138. ini_set('magic_quotes_sybase',      0);
  139. ini_set('session.cache_expire',     200000);
  140. ini_set('session.cache_limiter',    'none');
  141. ini_set('session.cookie_lifetime',  2000000);
  142. ini_set('session.gc_maxlifetime',   200000);
  143. ini_set('session.save_handler',     'user');
  144. ini_set('session.use_only_cookies', 1);
  145. ini_set('session.use_trans_sid',    0);
  146. ini_set('url_rewriter.tags',        '');

  147. /**
  148. * Drupal automatically generates a unique session cookie name for each site
  149. * based on on its full domain name. If you have multiple domains pointing at
  150. * the same Drupal site, you can either redirect them all to a single domain
  151. * (see comment in .htaccess), or uncomment the line below and specify their
  152. * shared base domain. Doing so assures that users remain logged in as they
  153. * cross between your various domains.
  154. */
  155. # $cookie_domain = 'example.com';

  156. /**
  157. * Variable overrides:
  158. *
  159. * To override specific entries in the 'variable' table for this site,
  160. * set them here. You usually don't need to use this feature. This is
  161. * useful in a configuration file for a vhost or directory, rather than
  162. * the default settings.php. Any configuration setting from the 'variable'
  163. * table can be given a new value. Note that any values you provide in
  164. * these variable overrides will not be modifiable from the Drupal
  165. * administration interface.
  166. *
  167. * Remove the leading hash signs to enable.
  168. */
  169. # $conf = array(
  170. #   'site_name' => 'My Drupal site',
  171. #   'theme_default' => 'minnelli',
  172. #   'anonymous' => 'Visitor',
  173. /**
  174. * A custom theme can be set for the off-line page. This applies when the site
  175. * is explicitly set to off-line mode through the administration page or when
  176. * the database is inactive due to an error. It can be set through the
  177. * 'maintenance_theme' key. The template file should also be copied into the
  178. * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
  179. * Note: This setting does not apply to installation and update pages.
  180. */
  181. #   'maintenance_theme' => 'minnelli',
  182. /**
  183. * reverse_proxy accepts a boolean value.
  184. *
  185. * Enable this setting to determine the correct IP address of the remote
  186. * client by examining information stored in the X-Forwarded-For headers.
  187. * X-Forwarded-For headers are a standard mechanism for identifying client
  188. * systems connecting through a reverse proxy server, such as Squid or
  189. * Pound. Reverse proxy servers are often used to enhance the performance
  190. * of heavily visited sites and may also provide other site caching,
  191. * security or encryption benefits. If this Drupal installation operates
  192. * behind a reverse proxy, this setting should be enabled so that correct
  193. * IP address information is captured in Drupal's session management,
  194. * logging, statistics and access management systems; if you are unsure
  195. * about this setting, do not have a reverse proxy, or Drupal operates in
  196. * a shared hosting environment, this setting should be set to disabled.
  197. */
  198. #   'reverse_proxy' => TRUE,
  199. /**
  200. * reverse_proxy accepts an array of IP addresses.
  201. *
  202. * Each element of this array is the IP address of any of your reverse
  203. * proxies. Filling this array Drupal will trust the information stored
  204. * in the X-Forwarded-For headers only if Remote IP address is one of
  205. * these, that is the request reaches the web server from one of your
  206. * reverse proxies. Otherwise, the client could directly connect to
  207. * your web server spoofing the X-Forwarded-For headers.
  208. */
  209. #   'reverse_proxy_addresses' => array('a.b.c.d', ...),
  210. # );

  211. /**
  212. * String overrides:
  213. *
  214. * To override specific strings on your site with or without enabling locale
  215. * module, add an entry to this list. This functionality allows you to change
  216. * a small number of your site's default English language interface strings.
  217. *
  218. * Remove the leading hash signs to enable.
  219. */
  220. # $conf['locale_custom_strings_en'] = array(
  221. #   'forum'      => 'Discussion board',
  222. #   '@count min' => '@count minutes',
  223. # );
复制代码

inori

发表于 2008-5-21 21:34:29 | 显示全部楼层

可以用SHELL删,又快又好
单删文件
rm 文件名
删文件夹
rm -r floder_name
RAKSmart

潜水学习

发表于 2008-5-21 21:46:21 | 显示全部楼层

SHELLftp 命令吗  不懂

我已经解决了

评分

参与人数 1威望 +15 收起 理由
神猪 + 15 怎么解决的 心得写上来 还你的威望 ...

查看全部评分

lamengao

发表于 2008-5-21 23:33:51 | 显示全部楼层

改成 777 再删看看

潜水学习

发表于 2008-5-22 13:00:43 | 显示全部楼层

我是这样删除的

用ftp不行,权限也改了!

用这个文件管理器
TT截图未命名.jpg
  原来不能

我用这个就可以了
TT截图未命名0.jpg
  我从来不用它
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

潜水学习

发表主题