How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

July 30, 2012

PHP Fatal error: Class ‘PHPUnit_Extensions_Database_TestCase’ not found

Filed under: Linux — Tags: , , , — admin @ 10:05 am

Well today I was playing with continous integration jenkins method, and I have this error at some point. First I was thinking that I miss some files from repositories however, from what I see it was missing DbUnit.

So to install it just run
pear -d preferred_state=beta install phpunit/DbUnit

Regards

July 27, 2012

how to view the body of a message that is in the queue

Filed under: Linux — Tags: , , — admin @ 11:14 am

Well first of all this is for postfix
First run
mailq
to see the queue for the server, after this you take the id and run
postcat -q ID
This will print full e-mail from queue

July 18, 2012

PAM adding faulty module: /lib64/security/pam_fprintd.so centos 6 problem

Filed under: Linux — Tags: , , — admin @ 11:45 pm

I found the following in a /var/log/secure log on a RHEL6 minimal installation:

Jul 18 22:35:01 ns3 crond[19830]: PAM adding faulty module: /lib64/security/pam_fprintd.so
Jul 18 22:35:01 ns3 crond[19831]: PAM unable to dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory

To disable using the PAM module, I used the following command:
authconfig --disablefingerprint --update

How to install wordpress plugin without ftp user/password

Filed under: Php — Tags: , , , — admin @ 11:30 am

Hello
Well I try today to install a plugin on a wordpress. But when I try to install it it request me the ftp user password host, for my hosting account.
Well, i try to chmod 777 the wp-content, still the same, so I force the wordpress to not require ftp by adding some code into wp-config.php

So to fix this chmod 777 wp-content
and add
define('FS_METHOD', 'direct');
to wp-config.php

July 14, 2012

How do I remove my USER NAME from the auto-fill on chrome

Filed under: Scrambled — Tags: , , — admin @ 7:25 pm

Hello
Well, from time to time , is happening that you misspell your username or your e-mail and after this google chrome keep that wrong user on auto-fill. Sometime this can be annoying.
So, how to remove username from auto fill on google chrome ?
This is a easy task
Just go with mouse over it, or press down arrow and when you are on wrong user just press “Delete” keyword

Powered by WordPress