2014-02-23 51 views
0

我在本地機器上安裝了drupal(ubuntu 12.04)。當我點擊http // localhost/drupal時,它運行成功。我想將localhost更改爲mywebsite。我已經嘗試谷歌它,但解決方案沒有工作到現在。我的/ etc/apache2的/啓用的站點 -/Drupal是下面drupal localhost在ubuntu中的域名

<VirtualHost 127.0.0.1:80> 
ServerAdmin [email protected] 

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> 

回答

0

提到Drupal用戶,我強烈建議Acquia Dev Desktop作爲運行的Drupal的一種方式。它有許多功能,包括命名你的酒莊。

+0

我可以用Drush嗎?我已經安裝了drupal,會不會安裝它呢? –

+0

是的,它會:)請投票,所以這個問題關閉 – SpencerX

+0

我到現在沒有得到任何解決方案投票 –