Godaddy对Drupal默认安装只支持到7.22,目前Drupal已经升级到7.28,安装完Drupal 7.22后,只能手工升级。
安装Drupal在:https://hostingconnection.godaddy.com/Application/Drupal.aspx
-
去 Administration > Configuration > Development > Maintenance mode下. 把"Put site into maintenance mode" 选择框打勾,并保存配置
-
做好原来文件和数据库的备份
-
删除(除了sites目录和 .htaccess)所有文件
-
上传新版本的Drupal,一定要用Hosting -> Files & FTP -> File Manager
-
Upload “drupal-7.xx.zip”
-
右点 “drupal-7.xx.zip” ,选“Extract”,选你放的目录,点 OK
-
进入解压缩的目录,选中所有的目录和文件(除了sites)
-
选 Move ,在打开的“Move Files and Folders”对话框里选目录,点OK
-
-
修正http://www.yoursite.com/admin/reports/status下的错误:
Temporary files directory Not fully protected
See http://drupal.org/SA-CORE-2013-003 for information about the recommended .htaccess file which should be added to the /tmp directory to help protect against arbitrary code execution.
这个错误是由于tmp目录的权限不对:-
建立一个.htaccess文件,内容是:
Deny from all
# Turn off all options we don't need.
Options None
Options +FollowSymLinks
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule> -
建立tmp目录(为了安全,最好是和drupal平级目录)
-
Administration > Configuration > Media > File system
-
修改 Temporary directory,成为../tmp (如果tmp和drupal平级)
-
把.htaccess放到tmp的目录下
-