1. PHPMYADMIN is not showing the database which are creating
But while checking the databases through WHM/MYSQL you can see these data bases are available for that particular user.
Ans:- Please check the user privileges and grant the privilege for that user
Check the database username and cpanel user name are same or not. Most probably it is due to this issue (may be user cpanel user name is a invalid one like "."symbol something) so we need to change username in WHM.
Wednesday, July 14, 2010
Sunday, July 11, 2010
COMMON TOOLS
1. Pidgin
in default linux (fedora) pidgin is there.
#yum install pidgin*
#yum update pidgin*
pidgin-guifications-2.16-4.fc12.i686 --> It is a Pidgin plugin that displays popups display if user writing a message , user log out/login etc ..
#yum install pidgin-guifications-2.16-4.fc12.i686
in default linux (fedora) pidgin is there.
#yum install pidgin*
#yum update pidgin*
pidgin-guifications-2.16-4.fc12.i686 --> It is a Pidgin plugin that displays popups display if user writing a message , user log out/login etc ..
#yum install pidgin-guifications-2.16-4.fc12.i686
Saturday, July 10, 2010
VIDEO PLAYERS - vlc
VIDEO PLAYERS
1. VLC
Installing vlc player on your linux fedora10/11/ recently i have tested on my fedora16
Please do the following steps to get the vlc player in your linux machines.
[root@tech24 ajeesh]# wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm Retrieving http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm warning: /var/tmp/rpm-tmp.Z6FQqR
ajeesh]# rpm -ivh rpmfusion-free-release-stable.noarch.rpm
Total download size: 22 M
Installed size: 58 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta | 11 kB 00:00
Processing delta metadata
Package(s) data still to download: 22 M
(1/34): a52dec-0.7.4-15.fc11.i586.rpm
ERRORs
------
VLC does not support the audio or video format "XVID". Unfortunately
there is no way for you to fix this.
--------
]# yum install vlc*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package vlc-devel-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-nox-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-plugin-jack-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-core-1.0.6-1.fc13.i686 already installed and latest version
--------------------
to check the commands
$ rpm -qa 'vlc*' 'libxine*' 'libffmpeg*' 'libav[^a]*' '*gstreamer*' | sort
1. VLC
Installing vlc player on your linux fedora10/11/ recently i have tested on my fedora16
Please do the following steps to get the vlc player in your linux machines.
[root@tech24 ajeesh]# wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm Retrieving http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm warning: /var/tmp/rpm-tmp.Z6FQqR
ajeesh]# rpm -ivh rpmfusion-free-release-stable.noarch.rpm
Total download size: 22 M
Installed size: 58 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta | 11 kB 00:00
Processing delta metadata
Package(s) data still to download: 22 M
(1/34): a52dec-0.7.4-15.fc11.i586.rpm
ERRORs
------
VLC does not support the audio or video format "XVID". Unfortunately
there is no way for you to fix this.
--------
]# yum install vlc*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package vlc-devel-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-nox-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-plugin-jack-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-core-1.0.6-1.fc13.i686 already installed and latest version
--------------------
to check the commands
$ rpm -qa 'vlc*' 'libxine*' 'libffmpeg*' 'libav[^a]*' '*gstreamer*' | sort
SSL INSTALLATION
Image via Wikipedia
Requirements:-
We need a dedicated IP for the particular domain
How to make the dedicated IP for a domain
goto whm
Main-> IP Functns -> change sites ip address Use the Free IP
How to find out the Free Ip Main >> IP Functions >> Show IP Address Usage
-----------------
First we need to create a CSR (certificate signing request) and give that to the cert provider (Geotrust, Verisign, etc.) CSR you can create from your WHM [Main >> SSL/TLS >> Generate a SSL Certificate and Signing Request]. We will get the ourdomainname.crt from Signing Authority.
In command line:-
* do not provide any password for authentication , if we provide password while generating a csr, every time the web server is restarted, you'd have to provide a password.This is a bad choice.
cd /home/tuxunited/cert
1. Generating a key
#openssl genrsa -out www.tuxunited.com.key 2048
Generating RSA private key, 2048 bit long modulus ....................................................................................+++ ....................................................+++ e is 65537 (0x10001)
2. Generating csr
# openssl req -new -key www.tuxunited.com.key -out www.tuxunited.com.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [AU]:IN
State or Province Name (full name) [Some-State]:Kerala
Locality Name (eg, city) []:El TVPM
Organization Name (eg, company) [Internet Widgits Pty Ltd]:TUXUNITED PVT LTD:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:www.tuxunited.com
Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
This .csr file send to the certificate signing authority for getting .crt and .ca-budle
CA Bundle and .key will automatically generate in our sever once we make the CSR.
Once we received this we can install ssl for our domain [Main >> SSL/TLS >> Install a SSL Certificate and Setup the Domain] paste the .csr and CA certificates (.key will automatically come once you paste the .crt) FINALLY CLICK SUBMIT
For Command Prompt
ourdomainname.crt file to /usr/share/ssl/certs/ OR /etc/ssl/certs/ directory
public key = ourdomainname.crt
private key = .key[/usr/share/ssl/private/ or /etc/ssl/private/]
private key file permission should be readable by root. [ie , drwx------ 2 root root 4096 Jul 9 23:36 private/]
Next We need to install the Inter mediate Certificate[ It is optional]
You need to install the Intermediate CA certificates for browsers to trust your certificate. The Intermediate CA certificates are in the form of SERVERNAME.ca-bundle.
In Virtual Host section for your configuration file, you need to do the following.
Copy the SERVERNAME.ca-bundle file to
files[/usr/share/ssl/certs OR /etc/ssl/certs/ ]
Add the following line to the SSL section of the httpd.conf
SSLCACertificateFile /etc/httpd/conf/SERVERNAME.ca-bundle --> if all are in the same locatin
If in different location
*SSLCertificateFile /usr/share/ssl/certs/urdomainname.com.crt
*SSLCertificateKeyFile /usr/share/ssl/private/ourdomainname.com.key
*SSLCACertificateFile /usr/share/ssl/certs/ourdomainname.com.cabundle
FINALLY RESTART APACHE
To check the SSL Certificate
http://www.digicert.com/help/
commands
openssl s_client -connect domainname:443
ERRORS
1. You'll also get an error if you try to access an URL securlely that doesn't match the hostname.
If for example you generate a cert fo https://yourdomain.com
It'll throw up an error if you go to: https://www.yourdomain.com
Because the 2nd domain has a www. in it, but the cert was generated for the hostname without the www.
2.browser showed "This Connection is Untrusted"
any idea ??? please (use the correct .crt and host name)
Ans:- Try to uninstall and reinstalled your ssl once again may this fix for you !!
12-07-2010
3. Dont have blue / green tab on url bar.
ANs:- You need to make sure all your links on the page use https:// and not http://
without this you will not get a fully secured connection
Friday, July 9, 2010
Commands-Reference
1. Create a domain name via command
/scripts/wwwacct
2. Grep / Find Command
** tail -100 /usr/local/cpanel/logs/error_log | grep -A 10 quota
The result will be the last 10 lines after 'quota'.
** # grep -R searchword * --> search for a particular word
** # find /usr/home -iname ".svn" -exec ls -lad '{}' \;
** # find /home/user/public_html/ -type f -exec sed -i 's/searchword/requiredword/g' {} \; --> This will search and replace all 'searchword' with 'requiredword' on all files for a particular directory.
** # find / -size +500M -exec ls -lh {} ';' | awk '{ print $9 ": " $5 }' --> for listing 500MB size files under / directory
3. Rsync command
for syncing source to destination for two remote server
rsync -av -e ssh /home/villages/ root@:/home/villages/
4. Tar / untar / Extraction
$ tar zxf filename.tar.gz
$ tar zxf filename.tgz
$ tar jxf filename.tar.bz2
$ tar jxf filename.tbz2
5. PASSWORD change for all users on a server
for x in `cat /etc/passwd | grep bash | cut -d":" -f1`; do echo 0182y098ya890sdy9asd | passwd --stdin $x ; done
6. How can you check your os is 32bit or 62 bit
[ajeesh@tech25 ~]$ arch
i686
[ajeesh@tech25 ~]$ which passwd
/usr/bin/passwd
[ajeesh@tech25 ~]$ file /usr/bin/passwd
/usr/bin/passwd: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
the easiest way to find out is issuing bellow the command on your Linux as well as FreeBSD
[ajeesh@tech26 ~]$ getconf LONG_BIT
32
7. dmidecode
using this command we can check full details for processor , MOB, HDD and other more hardware
[root@tech24 ajeesh]# dmidecode
# yum install dmidecode --> for install dmidecode
8. Centos verion
[root@server1 /]# cat /etc/redhat-release
CentOS release 5.2 (Final)
/scripts/wwwacct
2. Grep / Find Command
** tail -100 /usr/local/cpanel/logs/error_log | grep -A 10 quota
The result will be the last 10 lines after 'quota'.
** # grep -R searchword * --> search for a particular word
** # find /usr/home -iname ".svn" -exec ls -lad '{}' \;
** # find /home/user/public_html/ -type f -exec sed -i 's/searchword/requiredword/g' {} \; --> This will search and replace all 'searchword' with 'requiredword' on all files for a particular directory.
** # find / -size +500M -exec ls -lh {} ';' | awk '{ print $9 ": " $5 }' --> for listing 500MB size files under / directory
3. Rsync command
for syncing source to destination for two remote server
rsync -av -e ssh /home/villages/ root@
4. Tar / untar / Extraction
$ tar zxf filename.tar.gz
$ tar zxf filename.tgz
$ tar jxf filename.tar.bz2
$ tar jxf filename.tbz2
5. PASSWORD change for all users on a server
for x in `cat /etc/passwd | grep bash | cut -d":" -f1`; do echo 0182y098ya890sdy9asd | passwd --stdin $x ; done
6. How can you check your os is 32bit or 62 bit
[ajeesh@tech25 ~]$ arch
i686
[ajeesh@tech25 ~]$ which passwd
/usr/bin/passwd
[ajeesh@tech25 ~]$ file /usr/bin/passwd
/usr/bin/passwd: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
the easiest way to find out is issuing bellow the command on your Linux as well as FreeBSD
[ajeesh@tech26 ~]$ getconf LONG_BIT
32
7. dmidecode
using this command we can check full details for processor , MOB, HDD and other more hardware
[root@tech24 ajeesh]# dmidecode
# yum install dmidecode --> for install dmidecode
8. Centos verion
[root@server1 /]# cat /etc/redhat-release
CentOS release 5.2 (Final)
EMAIL ISSUES
A. To set no. of emails for particular domains in hour
cd /var/cpanel/maxemailsperdomain/
create the particular domain
then enter the number of mails as per your needs
B. Error:
temporarily rejected RCPT xxx@domain1.com lowest numbered MX record points to local host (while verifying xxx@domain1.com from yyy@domain2.com)
Solution:
Add the domain name domain1.com to /etc/localdomains and restart exim that should fix the issue. The file /etc/localdomains are the list of the domains that
Exim is meant to handle mails for.
cd /var/cpanel/maxemailsperdomain/
create the particular domain
then enter the number of mails as per your needs
B. Error:
temporarily rejected RCPT xxx@domain1.com lowest numbered MX record points to local host (while verifying xxx@domain1.com from yyy@domain2.com)
Solution:
Add the domain name domain1.com to /etc/localdomains and restart exim that should fix the issue. The file /etc/localdomains are the list of the domains that
Exim is meant to handle mails for.
Wednesday, July 7, 2010
HOSTING ISSUE
1. subdomain character issue:-
While creating a subdomain which is having more that 25 letters. Then you will terminated subdomain creation. This one you can avoid by giving less than 25 character length for the document root for that your new subdomain.
While creating a subdomain which is having more that 25 letters. Then you will terminated subdomain creation. This one you can avoid by giving less than 25 character length for the document root for that your new subdomain.
PHP.INI
We can create separate php.ini configuration for each domains. For this we have to put a php.ini file to /home/user/public_html/
Idea from Dan Thompson
25-06-2011(Saturday)
" suPHP_ConfigPath /home/username/public_html " set this line in your .htacess file will make all the addon domains and sub folders values make effect the values you have described in /home/username/public_html/php.ini file
Suppose if you want to increase the upload file size to 64MB please do the following steps
Edit your php.ini file with the following details
First : upload_max_filesize = 64M -> default it will be 8MB
Second: post_max_size = 64M
Third : max_execution_time = 300 -> default value will be 30
Idea from Dan Thompson
25-06-2011(Saturday)
" suPHP_ConfigPath /home/username/public_html " set this line in your .htacess file will make all the addon domains and sub folders values make effect the values you have described in /home/username/public_html/php.ini file
Suppose if you want to increase the upload file size to 64MB please do the following steps
Edit your php.ini file with the following details
First : upload_max_filesize = 64M -> default it will be 8MB
Second: post_max_size = 64M
Third : max_execution_time = 300 -> default value will be 30
Saturday, July 3, 2010
INSTALLATIONS
Image by Sabino . via Flickr
Write text here...INSTALLATIONS
cPanel ‘phpextensionmgr’ script allows you to install various extensions. To list the available PHP extensions run the following command.
root@LHS [~]# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin
# /scripts/phpextensionmgr –help
Usage:
phpextensionmgr [options] [action] [extension]
Options:
–help Help message
–prefix Installation prefix (normally /usr/local or /usr/local/php4)
Actions:
install Install or update the extension
uninstall Uninstall the extension
status Display the installation status of the extension
list Show available extensions
To install Zend Optimizer, execute the command
root@LHS [~]# /scripts/phpextensionmgr install Zendopt
A. IORNCUBE LOADER
Installing ioncube loader on Linux as well as freeBSD
Iorn Cube loader is mainly using for source code protection for softwares and wep pages.
Before going to installed this make sure selinux had been disabled in your server.
Get the latest version of the ionCube Loader from http://downloads.ioncube.com/loader_downloads.
1. wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
2. tar -xvfz ioncube_loaders_lin_x86.tar.gz
3. cd ioncube/
4. mkdir /usr/local/lib/ioncube
5. Next we have to check the PHP version from that we have to discover which shared Object has
to select for the iorncube loader[ For example PHP -V PHP Version 5.3.2 loader should be ioncube_loader_lin_5.3.so
6. Now edit the Php.ini file as given bellow
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.3.so
7. Copy the ioncube loader wizard "loader-wizard.php" from ioncube directory to Document root.
8. restart apache server.
9. run ioncube loader in your browser [www.yourdomain.com/loader-wizard.php]
For installing in FreeBSD we need to download http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_fre_8_x86.tar.gz (after verifying uname -a)
path on php.ini should be
zend_extension=/usr/local/lib/ioncube/ioncube_loader_fre_5.2.so [ in the case of freebsd with php version 5.2.13 ]
F I N I S H
B. SOURCEGUARDIAN
1. wget http://www.sourceguardian.com/ixeds/ixed4.lin.x86-32.tar.gz
2. untar tar -zxf ixed4.lin.x86-32.tar.gz
3. find out the extemsion directory using the cmd php -i | less (search for the term extension)
[eg: extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 => /usr/local/lib/php/extensions/no-debug-non-zts-20060613 ] so we will know that /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ this is the directory we have to copy the loader ixed.
4. Next as per the php version we can decide which loader should be required
cp ixed.5.2.lin /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
5. Then we need to edit the php.ini file
php.ini file most probably is in your /etc/php.ini or /usr/local/lib/php.ini
6. vi /usr/local/lib/php.ini (search for the line extensions)
add this line: extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
7. restart your apache server.
C. json
1. yum install gcc make
2. yum install php-pear
3. pecl install json
4. add extension=json.so on your php.ini and restart apache
[root@server modules]# php -m | grep json
json
Friday, July 2, 2010
QMAIL
QMAIL - 1
Error :- " This is the qmail-send program at server1.domainame.com.com.(different name as your hostname) I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out."
That is Hostname is wrongly set for the qmail
]# hostname
server1.urdomain.com -> that is fine
]# cd /var/qmail/control
control]# ls
defaultdomain locals me plusdomain rcpthosts
]# cat * --> check all the file whether we have configured the right hostname if not change the correct one.
Finally restart your qmail and webserver.
Error :- " This is the qmail-send program at server1.domainame.com.com.(different name as your hostname) I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out."
That is Hostname is wrongly set for the qmail
]# hostname
server1.urdomain.com -> that is fine
]# cd /var/qmail/control
control]# ls
defaultdomain locals me plusdomain rcpthosts
]# cat * --> check all the file whether we have configured the right hostname if not change the correct one.
Finally restart your qmail and webserver.
Subscribe to:
Posts (Atom)