Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install codeigniter in parallels plesk server

The server runs 5.4.3 PHP with FastCGI

For Cpanel, it works perfectly, however, it fail in plesk server.

Here is the .htaccess used:

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

In config file:

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

When I enter the home page, it shows:

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.

If I don't use .htaccess, then it is a codeigniter 404 not found page. And it can go (although with a lot of error)

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

eg.

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

And a lot mkdir , session error...

also can not go other controller, it show 404 codeigniter not found page

Any way to debug and fix it? Thanks

like image 779
user782104 Avatar asked Apr 13 '26 14:04

user782104


1 Answers

try this go to php settings -> open_basedir turn it to none worked for me with htaccess above

like image 88
Nefnaf Raouf Avatar answered Apr 16 '26 03:04

Nefnaf Raouf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!