user3399035
user3399035

Reputation: 57

CKEditor integration with Wiris PHP plugin: open_basedir restriction

As per Wiris guide.

  1. Give execution rights to the web server user on the PHP files contained at to ckeditor/plugins/ckeditor_wiris/integration.
    → My settings: Folder "integration": 755. All files inside this folder: 754
  2. Give write permissions to ckeditor/plugins/ckeditor_wiris/cache and to ckeditor/plugins/ckeditor_wiris/formulas directories to the web server user. Those folders will be used to store formula MathML codes and temporal images.
    → My settings for these folder: 775

However, I get following warnings while trying to open Wiris "Math Popup", and doesn't open properly.

Warning: is_file(): open_basedir restriction in effect. File(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../../../lib/moodlelib.php) is not within the allowed path(s): (/home/my_user_name:/usr/lib/php:/tmp) in /home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php on line 39

Warning: is_file(): open_basedir restriction in effect. File(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../lib/moodlelib.php) is not within the allowed path(s): (/home/my_user_name:/usr/lib/php:/tmp) in /home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php on line 39

Are my permissions correct? Do these warnings relate to file/folder permissions? I am using www.serversfree.com webhosting to test this out.

Upvotes: 0

Views: 2117

Answers (3)

alim
alim

Reputation: 1

Please give permission to 777 to folder named cache and formulas

inside path

ckeditor4/plugins/ckeditor_wiris

Upvotes: 0

user3306551
user3306551

Reputation:

Your permissions are correct. Those warnings are related to an extra check in the /integration/bootstrap.php file, it checks a directory several levels above your working directory and you're not allowed to do so due to an open_basedir restriction in your server. This issue will be fixed in our next plugin release. To supress the warning simply comment the whole bootstrap.php file or add a return true; right after <?php.

Edit: This issue is currently fixed in our latest version.

Upvotes: 0

user3306551
user3306551

Reputation:

It looks like there's an issue in your installation. Please check the plugin test page: <url>/ckeditor/plugins/ckeditor_wiris/integration/test.php. There shouldn't be any errors there. Please review the installation instructions at http://www.wiris.com/plugins/docs/ckeditor.

Upvotes: 1

Related Questions