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

August 13, 2012

Failed to download pecl/ssh2 within preferred state “stable”, latest release is version 0.11.3

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

Today I was trying to upgrade a php on centos 5.4 from php 5.2 to php 5.3
The upgrade was run using

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic update php

Well everythins was ok, however after upgrade I see that if I run php -v i got some errors, memcache and ssh2 was installed using pecl and they should be reinstalled.
Well the pecl install memcache work well however
pecl install ssh2
return this error
Failed to download pecl/ssh2 within preferred state “stable”, latest release is version 0.11.3,

Well I did manage to install it by using
pecl install “channel://pecl.php.net/ssh2-0.11.3”

Regards

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

« Newer PostsOlder Posts »

Powered by WordPress