2015-06-11 52 views
0

我有一個在Linode VPS中使用Ubuntu 12.04託管的Symfony 1.4項目。出於某些原因,我必須將Ubuntu 12.04升級到Ubuntu/Trusty64 14.04。當我上傳我的symfony 1.4時,它顯示我空白屏幕,我已經通過在生產環境中運行php symfony cc清除了緩存。我剛剛複製了舊版Apache2站點啓用配置和.htaccess,它適用於Ubuntu 12.04使用Ubuntu 14.04將Symfony1項目部署到Linode顯示空白屏幕

可用站點/mysite.conf

<VirtualHost _default_:80> 
    DocumentRoot /var/www/mysite/web 
</VirtualHost> 

而且這是.htaccesss

Options +FollowSymLinks +ExecCGI 

<IfModule mod_rewrite.c> 
RewriteEngine On 

# uncomment the following line, if you are having trouble 
# getting no_script_name to work 
#RewriteBase/

# we skip all files with .something 
#RewriteCond %{REQUEST_URI} \..+$ 
#RewriteCond %{REQUEST_URI} !\.html$ 
#RewriteRule .* - [L] 

# we check if the .html version is here (caching) 
RewriteRule ^$ index.html [QSA] 
RewriteRule ^([^.]+)$ $1.html [QSA] 
RewriteCond %{REQUEST_FILENAME} !-f 

# no, so we redirect to our front web controller 
RewriteRule ^(.*)$ index.php [QSA,L] 

這說明我當我試圖谷歌的我nspect元件

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 

任何想法如何解決這個問題?

回答

1

您可能忘記啓用Apache2的重寫模塊

sudo a2enmod rewrite 
sudo service apache2 restart 

希望它可以幫助