2016-01-12 71 views
0

enter image description here安装程序到我的服务器

照片显示,我把终端:

须藤的vim /etc/apache2/sites-available/fusion_invoice.dev.conf

后,在sitepoint .com说我需要复制下面的贴:

<VirtualHost *:80> 
     ServerAdmin [email protected] 
     DocumentRoot /var/www/fusioninvoice 

     ServerName fusion.invoice.dev #change this setting according to your domain name 

     DirectoryIndex index.php 

     <Directory /var/www/fusioninvoice> 
      RewriteEngine On 
      RewriteBase/

      RewriteCond %{REQUEST_FILENAME} !-f 
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteRule ^(.*)$ index.php [QSA,L] 
     </Directory> 

     ErrorLog ${APACHE_LOG_DIR}/error.log 
     CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost> 

我不知道要改变哪条路。

帮助!

+1

这不是编程相关的。尝试您正在尝试部署的应用程序的支持区域。另外,如果您真的在运行该应用程序,请在开始制作之前了解apache和php。 – viraptor

+0

好的Viraptor。谢谢。 –

回答

0

在你所提到的文件,Apache的配置文件,添加以下代码:

<VirtualHost *:80> 
     ServerAdmin [email protected] 
     DocumentRoot /var/www/fusioninvoice # <<< CHANGE THIS PATH TO THE ABSOLUTE PATH ON YOUR SERVER WHERE THE CODE IS STORED 

     ServerName fusion.invoice.dev #change this setting according to your domain name 

     DirectoryIndex index.php 

     <Directory /var/www/fusioninvoice> # <<< ALSO, CHANGE THIS PATH TO THE ABSOLUTE PATH ON YOUR SERVER WHERE THE CODE IS STORED. SAME AS ABOVE 
      RewriteEngine On 
      RewriteBase/

      RewriteCond %{REQUEST_FILENAME} !-f 
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteRule ^(.*)$ index.php [QSA,L] 
     </Directory> 

     ErrorLog ${APACHE_LOG_DIR}/error.log 
     CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost> 

我希望这是现在很清楚:)

相关问题