2015-07-20 71 views
2

笨服務器運行5.4.3 PHP FastCGI的在安裝的Parallels Plesk服務器

對於交友,它完美的作品,但是,它在Plesk中服務器失敗。

下面是使用的.htaccess:

RewriteEngine on 
DirectoryIndex index.php 
RewriteCond $1 !^(index\.php|assets|upload|robots\.txt) 
RewriteRule ^(.*)$ /my_folder/index.php/$1 [L] 

在配置文件中:

$config['base_url'] = ''; 
$config['index_page'] = ''; 

當我進入主頁,它顯示:

Welcome to Parallels! 

If you are seeing this message, the website for kotechweb.com is not available at this time. 
If you are the owner of this website, one of the following things may be occurring: 

You have not put any content on your website. 
Your provider has suspended this page. 

如果我不」 t使用.htaccess,那麼它是一個codeigniter 404找不到頁面。它可以去(儘管有很多錯誤)

mydomin.com/my_folder/index.php/welcome/ 

例如,

Message: is_dir(): open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/my_domain.com/:/tmp/) 

Filename: drivers/Session_files_driver.php 

Line Number: 115 

和很多的mkdir,會話錯誤...

也不能去其他控制器,它顯示404笨找不到頁面

任何方式調試和解決?謝謝

+0

它是域默認頁面,當我進入主頁,謝謝 – user782104

回答

1

我已經弄清楚如何解決它在最後。

首先,確保控制器類的文件名是大寫字母。小寫文件名稱適用於Apache,但不適用於fastcgi。

其次,htaccess的改變:

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L]