Wednesday, February 29, 2012

A specified logon session does not exist. It may already have been terminated." while binding SSL certificates

Assalamualaikum,
today in a running nose mode.. I still manage to solve above problem..

Here is the solution;
1. Right click on ssl certificate
2. Choose export...Export it, to say, desktop.
3. Then import this version back in.

Done.. :)

Friday, February 24, 2012

Remote your windows desktop from ubuntu

OK.. new years with new environment...
Now I start using ubuntu desktop.. :) How is it... I will test for 1 month and wil forward a review from windows admin vision.. :)

Here is the command to remote your windows PC/server to your ubuntu desktop
rdesktop -g 1300x800 ip_pc_ko

or you can also go to Ubuntu Software Center and find software name remmina...

Here I would send a best reward to my sifu Sirap.. thanks a lot.. :)

Thursday, February 23, 2012

Drupal Multisite

Hoyee... finally sis salina and i did it :)

Here is the step:
1. Install Drupal 7 the normal way
2. Create DNS name eg: MainSite.example.com Site1.example.com Site2.example.com
3. Configure the web server so that the second site's domain points to the same directory.
Different web hosting providers has a different procedure for this (usually adding an add-on domain and changing its root directory to your Drupal installation root directory), If, however, you are working on your local server, supposing it is Apache, just add the second site's domain to ServerAlias directive. (or if you need separate logs, you can make a new virtual host with the same DocumentRoot)
Here is an example of Apache configuration..


4.Make a new directory with name equal to the second site's domain (Site1.example.com) under Drupal's sites directory.
Suppose you have uploaded Drupal files in a folder named "drupal" so there is "drupal/includes/","drupal/misc/","drupal/modules",..etc. now your new directory should be "drupal/sites/my-second-domain.com". (the folder name is "my-second-domain.com")

5.Copy default.settings.php to the new directory renaming it to settings.php and make a new directory called files there then change permissions so that both are changeable by everyone.
Following what we previously supposed, you will copy the default.settings.php file (found in drupal/sites/default/) to /drupal/sites/my-second-domain.com/ and rename it to settings.php then change its permissions to 666 (make it changeable by everyone) and then make a new directory under /drupal/sites/my-second-domain.com/ and name it "files" then change permissions of it to 777.
In Linux (if you are working on your own local server or have SSH access to your host) this can be done as follows :

6.Navigate to the second site's domain and install Drupal normally.
Just like the first step above.


Problem that we are facing where the pcre 8.30 are not compatible to drupal7.
It will give warning



With help by Sifu Zaman.. we finally success downgrade to pcre8.21 but the problem is this pcre are dependence to other package such apache22. So, we decide to maintain the pcre 8.30 since it is only giving warning not error :)


You can add how many sites you want.. and you can do the same thing as above steps.

make sure the file name for setting.php is "SETTINGS.PHP" with 's' .. that is my problem when i did the third sites where in the beginning it is not working.

Tuesday, February 21, 2012

SSO Office 365

Alhamdulillah, finally I manage to sync the AD to Office 365. Now our 365 already SSO with AD.

Overall, after done setup 2 type of SSO... one is SSO from ldap to drupal and another one is AD to office 365. I feel it is not easy to troubleshoot Office 365 error. But finally i manage to solved the problem .

So, now our AD user can login to our office 365 using AD username and password... I will continue update the step later because I have to read how to setup drupal for multisite..

lalala... lalala... laalalala.. keep dancing with world of IT :)

Tuesday, February 14, 2012

Intergrate CAS, LDAP with Drupal

Today I and Sis Salina successfully connect cas, ldap with our new drupal 7.
ALHAMDULILLAH :)

Actually this in not the actual objective that we want to do. Our first plan is to integrate cas, ldap with wordpress as per requested by our webmaster. The problem is, the configuration in wordpress are to complicated. Because of that we doing underground project which we intergrate it to drupal 7. Ha.. and then it is working..Hoyeee..

Here is the pros and cons; drupal can easily integrate with cas, ldap and it also have multisite features. While wordpress have problem during integrate with cas and ldap... where the we cannot login to wp-admin. Some more, we also have problem to setup multisite which need complex configuration and manual things... and really make myself headache.. Houuhh.. Hope our Web master do understand on this plan B.

Ok let move to another topic where is problem that we are facing during intergrate Ldap and Cas with ldap.

1. Install Drupal
a. The problem that we are facing here where we cannot see the mysql setting gui.
REMINDER: read the prerequisite so that you will not be crazy because cannot see the setting.
Solution : 1. Drupal 7: MySQL 5.0.15 or higher with PDO, SQLite 3.3.7 or higher
php5-pdo_mysql-5.3.10 (install this then the setting will come out)

2. Configure cas and ldap
a. Password for ldapadmin are wrong. Thanks to Sifu Zaman for his expertise in troubleshoot the password validity.
b. Cas need php-curl (extention)






Thursday, February 2, 2012

Date Problem... cannot login

php error at date.time zone
A. # cd usr/local/etc/
# ee php.ini
--> search date.time format
setting : http://www.php.net/manual/en/timezones.asia.php
then change add "eg: date.timezone = "Asia/Kuala_Lumpur""

Checking date in server
#date

if not same you have to setting up using this command
#ntpdate asia.pool.ntp.org

Thanks for sifu John...

for changing setting at php.ini (8. php error at date.time zone) : need to restart apache.

How to restart apache but will not disturbe the connection?
#/usr/local/etc/rc.d/apache graceful