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

November 24, 2011

install fileinfo with pecl problem on centos

Filed under: Linux — admin @ 11:29 am

Today I was trying to install fileinfo on a server and get this error.

checking for magic files in default path… not found
configure: error: Please reinstall the libmagic distribution
ERROR: `/tmp/pear/download/Fileinfo-1.0.4/configure’ failed

After i try to install yum install libmagic , libmagic-dev , libmagic-devel and see don’t work the panic was here. After a long search I discover that the solution was to install
yum install file-devel

So if you are on same situation hope this will help you .

Regards

October 25, 2010

mysql pc speaker beep

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

Well today I was trying some commands  on mysql and suddenly because my command was wrong speaker blow up my ear.  I know  that  it wasn’t the  sound card speaker and it was the system speaker, so the question remain.

How to disable system speaker for mysql ?

Well after a small search I find out that I have to add –no-beep or -b on mysql command.

So the solution is or to add –no-beep or -b or to make a sql.bat and enter in this file mysql –no-beep

My solution was to modify windows path variable to add path to my mysql directory, and after that I run sql from start>run>sql , and I have a client witch don’t beep me any more.

Hope to help u.

August 19, 2010

How to Check if Apache is Running Prefork or Worker

Filed under: Linux — Tags: , , , , — admin @ 8:36 pm

Today I want to change some settings on one of my server. But when to change I didn’t know if it’s prefork or worker module at the power of my apache.

So what to tune ?

Well this information is compile in Apache and is not loaded as module.

So if you want to find out what MPM module Apache is running you should run: httpd -l

And the output will be like this:

Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
prefork.c
http_core.c
Hope this will help someone.

February 15, 2010

Change cpanel theme from rvskin to x3

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

A few months ago I get a cpanel on another hosting company.  I want to see how it looks rvskin themes, so I switch to it. After that surprise, I can’t check my awstats traffic, so my first idea is to switch back, however this was impossible because there was no x3 cpanel themes.  I made a ticket but with no results. After a little search I find that you must log into your cpanel, after that replace in this link site with your domain, and acces it . It should work.

http://www.site:2082/frontend/rvskin/rvskin/dothemef.html?themename=x3&Submit=Change

If you have rvskinlight you should go into “Change look and feel”, just press change when it say’s “theme is applying, wait few…”  just replace in your link themename=rvskinlight with themename=x3 and quickly hit enter.

Hope this works for you.

Best regards

June 16, 2009

Mytop Error in option spec: “long|!”

Filed under: Linux — Tags: , , — admin @ 8:06 pm

Recent mytop a inceput sa nu mai mearga pe versiunile mai noi de Centos

Eroarea este:

#mytop
Error in option spec: “long|!”

Ca sa repari, editezi /usr/bin/mytop, faci un search dupa  “long|!” => \$config{long_nums}, si pui un # in fata, salvezi si ar trebui sa functioneze.

Multa bafta

« Newer PostsOlder Posts »

Powered by WordPress