Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ubuntu中drupal localhost到域名_Ubuntu_Drupal_Apache2 - Fatal编程技术网

ubuntu中drupal localhost到域名

ubuntu中drupal localhost到域名,ubuntu,drupal,apache2,Ubuntu,Drupal,Apache2,我已经在本地机器上安装了drupal Buntu 12.04。当我点击http//localhost/drupal时,它成功运行。我想将localhost更改为我的网站。我曾尝试过谷歌it,但解决方案直到现在都不起作用。我的/etc/apache2/sites enabled/drupal如下所述 <VirtualHost 127.0.0.1:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Director

我已经在本地机器上安装了drupal Buntu 12.04。当我点击http//localhost/drupal时,它成功运行。我想将localhost更改为我的网站。我曾尝试过谷歌it,但解决方案直到现在都不起作用。我的/etc/apache2/sites enabled/drupal如下所述

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

作为Drupal用户,我强烈推荐Acquidev桌面作为运行Drupal的一种方式。它有许多功能,包括命名您的域名

我可以用德鲁什吗?我已经安装了drupal,在上面安装drush可以吗?