2016-01-12 113 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> 

我希望這是現在很清楚:)

相關問題