Knowledgebase
Moodle templates, images and login issues associated with ini_set errors (Invalid JSON string)
Posted by WestNIC Support on 05 December 2012 12:23 AM

If you receive "Warning: ini_set() has been disabled for security reasons in /home/byeru/public_html/lib/setup.php error right after new Moodle install, please follow these steps:

1. Create blank php.ini file inside script directory with any FTP client or cPanel File Manager

2. Add following lines to that php.ini file:

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, allow_url_fopen, ini_alter, proc_terminate, proc_get_status, proc_nice, escapeshell, eshellarg, escapeshellcmd, dl, symlink

3. Save file

4. Set permissions 600 to php.ini file (to protect/lock it).

If you cannot login to existing Drupal website, your templates look broken, please distribute (copy) same php.ini file inside following directories:

login
admin
admin/registration
auth
backup
cache
themes
lib

Then set permissions 600 to each php.ini file.

 

Important note: WestNIC does allow to run own configuration files (php.ini) where you may override some PHP variables. However, most functions cannot be enabled and your website must be on suPHP white-list. Please contact us for assistance with php.ini files or Moodle installation.

About Moodle

Moodle is a Course Management System (CMS), also known as a Learning Management System (LMS) or a Virtual Learning Environment (VLE). It is a Free web application that educators can use to create effective online learning sites. You can install it within few clicks inside cPanel > Softaculous or manually directly from script vendor: moodle.org.


(0 vote(s))
This article was helpful
This article was not helpful

Help Desk Software by Kayako Resolve