Monday, December 8, 2008

Linux commnads , rpm ,search

linux apache basics
http://www.alwanza.com/howto/linux/apache.html

Search command

find / -type f -name httpd

Apache installed on:

/usr/local/apache

http://hostlibrary.com/installing_apache_mysql_php_on_linux

apache2 and php5 (Mod_) :Installation:

http://dan.drydog.com/apache2php.html



"chcon libphp5.so -t shlib_t" changed to "chcon -t texrel_shlib_t libphp5.so" works

Installation Procedure:
http://www.php.net/manual/en/install.unix.php

which arhitecture belongs to your linux:i386 or x86_64
rpm -qa --qf "%{n}-%{arch}\n"


package details:
rpm -qi mysql

which package install with its details...
rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n" | less


mysql runnig or not:
ps aux | grep [m]ysqld.

::::::::::::::::::::::::::
file transfer from window to linux
pscp ./php-5.2.5.tar.gz root@172.16.3.22:/usr/local/

from linux to linux

Where is php.ini defuault location in linux?

/etc/php.ini
/usr/local/lib/php.ini

How to Improve the site rank

1. Use Google Adwords to search for a general niche from a portal like website
2. Select a niche with Moderate Search and High Advertiser Competition
3. User Wordtracker to get search volumes for keywords
4. Use Google to find out competition for the keywords. Focus on low competition keywords (less than 10,000 competing results)
5. Build a blog(with your adsense codes) to get number 1 position in Search Engines

SEO --IM

http://search.msn.com/docs/submit.aspx?FORM=WSUT
http://www.dmoz.org/add.html
http://www.2createawebsite.com/traffic/search-engine-traffic.html
https://siteexplorer.search.yahoo.com/submit
http://www.2createawebsite.com/traffic/search-engine-traffic.html
http://www.2createawebsite.com/traffic/index.html


top bookmarking site
http://3spots.blogspot.com/2006/04/social-bookmark-tools-to-view-search.html
http://www.socialize-it.com/index.php?url=$URL&tag=$tag

http://www.ebizmba.com/articles/social30.html


backflip.com
bibsonomy.org
blinklist.com
blogmarks.net
faves.com
buddymarks.com
connectedy.com
de.lirio.us
del.icio.us
diigo.com
excites.com
feedmelinks.com
folkd.com
furl.net
google.com
linkagogo.com
linkroll.com
ma.gnolia.com
markaboo.com
mister-wong.com
mister-wong.cn
mister-wong.de
mister-wong.es
mister-wong.fr
mister-wong.ru
my.xilinus.com
myweb2.search.yahoo.com
netvouz.com
scuttle.org
scuttleplus.org
simpy.com
taggly.com

Sunday, December 7, 2008

Imp LInks

http://www.youtube.com/watch?v=Hb3-Qg9JjKw---------squidoo
http://www.youtube.com/results?search_query=affiliate&search=tag -------------affiliate

elite

http://www.youtube.com/watch?v=fLJskZNEIDY&mode=related&search=squidoo%20lens%20money%20affiliate%20marketing%20plr%20monetize%20monetizing%20tiffany%20dow [http://www.youtube.com/watch?v=fLJskZNEIDY]
http://www.youtube.com/watch?v=vyTkfIIdhf4

http://www.youtube.com/watch?v=J5WoejuePpk&mode=related&search=squidoo%20lens%20money%20affiliate%20marketing%20plr%20monetize%20monetizing%20tiffany%20dow


Perl FAQs:----------------------------------
http://en.allexperts.com/q/Perl-CGI-1045/
--------------------------------------------

steps to create host,user,db,password

./mysql -u root mysql

./mysql -u root mysql

mysql> insert into
-> host(host,db,Select_priv,Insert_priv,Update_priv,
-> Delete_priv,Create_priv,Drop_priv)
-> values('192.168.15.92','element5','Y', 'Y', 'Y', 'Y', 'Y', 'Y');

insert into user (host,user,password)
-> values('192.168.15.92','user','password('1234'));

mysql> insert into db
-> (host,db,user,Select_priv,Insert_priv,Update_priv,Delete_priv,
-> Create_priv,Drop_priv)
-> values ('192.168.15.92','element5','zmei','Y','Y','Y','Y','Y','Y');


mysqladmin reload

to test :
./mysql -u user -h 192.168.15.92 -p

Shell script execution - command not found, syntax error near unexpected token

to solve the problem:
Shell script execution - command not found, syntax error near unexpected token

When we edit shell script in Windows machine, and ftp it to Linux for execution, sometimes we hit the following error:

“command not foundh” line xxx
“command not foundne” line xxx: syntax error near unexpected token `

This is due to the newline characters used on both systems. We need to replace all occurances of "\r\n" with "\n".

In vi, do the following:

// Change from (DOS) to just (Unix):
:set fileformat=unix
:w

// change back to Carriage Return + Line Feed for DOS
:set fileformat=dos
:w

// writing for apple computers:
:set fileformat=mac
:w

// remove multiple (repeated) Carriage Returns using search and replace
:%s/[^M]$//
:w