1. 在/var/www/...下建立文件夹
sync -a html/* html-zhxue/
2.修改配置文件,添加网站的数据库信息
vi sites/default/settings.php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'opencirrus3',
'username' => 'zhxue',
'password' => 'zhxue',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
3. 导入数据库
先把已有的倒出来:
再把导入新的:
4. 更改http配置文件使得网站可访问
vi /etc/httpd/conf/httpd.conf
<VirtualHost *:82>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html-zhxue
ServerName opencirrus3
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
基于Drupal的CMS构建
最新推荐文章于 2024-02-22 00:10:48 发布