Friday, January 30, 2009

Debugging in moodle config.php

To turn on debugging in moodle config.php, you need to add code

@error_reporting(1023);
@ini_set('display_errors', '1');
$CFG->debug = 38911;
$CFG->debugdisplay = true;

To show only to your user account
$CFG->debugusers = '2';   (replace 2 with your moodle userid)

$CFG->debug = X

Where X can be:
0 - none
5 - minimal
15 - normal
6143 - all
38911 - developer

And to show it

$CFG->debugdisplay (1, or 0)

controls whether debug messages are included in the HTML output. 0 means it goes to Apache's error log.

Monday, January 19, 2009

Rebuild apache to include mssql or ldap

Please look at the info below

http://www.cpanel.net/documentation/easyapache/ea3custom_flags.html

insert --with-ldap=shared,/usr on all_php5

and

http://c**.r*.net/index.php?action=DetailView&module=HelpDesk&record=2942

Before that, you have to install freetds for mssql
Just do yum install freetds-devel

or install openldap-devel for ldap
yum install openldap-devel

If for some reason, cpanel is trying to give error about looking for libtds.so,
go to /usr/lib
then type
ln -s /usr/lib64/libtds.so
ln -s /usr/lib64/libtds.so.5
ln -s /usr/lib64/libtds.so.5.0.0

Another site to look at
http://forums.cpanel.net/showthread.php?t=88561

That's all.

Wednesday, December 3, 2008

Clone Drupal Site

If you're trying to close drupal site to a subdomain or subfolder, please aware to copy .htaccess and change the rewritebase

Also other important note to bypass the login.

to login when there is the problem however you can do the following
http://***.net/stage?q=user/login
Then when you login you will have to type in the following url
http://***.net/stage?q=admin/settings/clean-urls

Friday, October 10, 2008

Park Domain Error in Cpanel

If you're trying to Park A Domain which name server you didn't control, you have to go

Under WHM | Tweak Settings | DNS I had to enable "** Allow Creation of Parked/Addon Domains that resolve to other servers (i.e. domain transfers)".

Tuesday, September 9, 2008

Rebuild PHP with Ldap in cpanel

After you did the software apache update, you have to create a file here /var/cpanel/easy/apache/rawopts/all_php5 and put --with-ldap in it to make it install the ldap php module

Then rebuild the apache again.

Wednesday, August 20, 2008

Moodle latex and dvips

If you go to filter settings and found /usr/bin/latex and /usr/bin/dvips is not installed, do a yum install tetex-latex

Now if you also have a red X next to convert binary your path is incorrect or you need to install gostscript or ImageMagic I installed ImageMagic and if fixed the problem.
yum install ImageMagick (It's case sensitive)

Saturday, August 2, 2008

How to turn debug on during upgrade

If you're upgrading moodle and it just saying processing assignment and it's not going anywhere, it's worth a shot to debug the process.

Go to config.php and add $CFG->debug=1;
Then setting debug to true in the mod/assignment/db/upgrade.php