|
||||||||||
|
|
Starting sshd:PRNG is not seededMarch 23, 2009 on 4:51 am | In Centos, Linux | 2 CommentsYou might have received this error when restarting SSHD. #/etc/rc.d/init.d/sshd restart Stopping sshd: [ OK ] Starting sshd:PRNG is not seeded [FAILED] Here is the fix. cd /dev/ ./MAKEDEV generic Now try starting SSH. :) Error : tty device not owned by group ‘tty’March 20, 2009 on 2:07 am | In Centos, Cpanel, Linux | No CommentsYou might receive this error when your try to restart services in CPanel. This is because the group of the tty devices are not “tty” Change it to tty. chgrp tty /dev/ttyp* /dev/ptyp* /dev/vcs* /dev/ptmx /dev/pts/0 as simple as that.:) 535 Incorrect authentication data + EXIM + cPanelMarch 20, 2009 on 1:47 am | In Cpanel, exim | 4 CommentsEvery 5 minutes this e-mail report Exim has restarted: ================================================== ===== exim failed @ A restart was attempted automagically. Failure Reason: TCP Transaction Log: Cmd Service Check Raw Output: Here is the fix. go to /var/cpanel/serviceauth/ remove the directory exim cd /var/cpanel/serviceauth/ Restart Cpanel. The folder exim will be recreated… that should fix the issue. Failed to add site to database. DBERR: error ‘ERROR: duplicate key violates unique constraint “domain_key” ‘ in ‘ INSERT INTO siteinfo ENSIMMarch 6, 2009 on 9:30 am | In Pgsql, ensim | 3 CommentsHello guys, You might have come accross the following error Failed to add site to database. DBERR: error ‘ERROR: duplicate key violates unique constraint “domain_key” ‘ in ‘ INSERT INTO siteinfo (site_id, domain, admin_user, email) VALUES (8, ‘domain.com’, ‘xxxx’, ‘xxx@domain.com’)’ ========================= Here is the fix. Login to server via backend. su postgres Take a backup of the database… pg_dump appldb > appldb.dump.out Now lets edit psql postgres=# \l this will list all the databases. The Ensim database is “appldb” postgres=# \c appldb This will list all the tables in the database. You can find the database siteinfo appldb=# SELECT * FROM siteinfo WHERE domain=’domain.com’; site_id | domain | email | admin_user DELETE FROM siteinfo WHERE site_id=35; Now quit the database appldb=# \q bash-3.00$ exit Restart services /etc/rc.d/init.d/virtualhosting restart /etc/rc.d/init.d/epld restart Now try to add the domain from Control panel. Tomcat CPanel/Enable for a domainMarch 1, 2009 on 2:24 pm | In Cpanel | 1 CommentTo enable .jsp pages for a domain. /scripts/addservlets –domain=domain.com To disable /scripts/remservelets –domain=domain.com In some cases, these scripts won’t work. Manually check the setting for the domain. Open up the Apache conf /usr/local/apache/conf/httpd.conf check if the directive given below in the virtual host entry of domain, if not add it. Include “/usr/local/apache/conf/userdata/std/2/username/domainname/*.conf” Now navigate to the directory cd /usr/local/apache/conf/userdata/std/2/ If the directory “domainname” is not present, create it Check for the file cp_jkmount.conf here, if it is not present, create it with the following contents <IfModule mod_jk.c> JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 JkMount /*.do ajp13 </IfModule> Check the file /usr/local/jakarta/tomcat/conf/server.xml Add the entry for host <Host name="domainname" appBase="/home/username/public_html">
<Alias>www.domainname</Alias>
<Context path="" reloadable="true"
docBase="/home/username/public_html" debug="1"/>
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>
</Host>
Restart the services /usr/local/jakarta/tomcat/bin/shutdown.sh Parkdomain on Addon domain in cPanel And create mail accounts for that ParkdomainMarch 1, 2009 on 12:57 pm | In Cpanel | No CommentsHello guys, You might have come across the requirement of parking a domain on an addon domain. Please note this can be done only via backend and you need root access to the server. Suppose. main domain : maindomain.com Case One. Case Two. Steps for Case One. For parking a domain on to an Addon domain. Assuming the case of parkdomain.com” to be parked on addon domain “addondomain.com”. Take a backup of Apache conf fine. cp -pr /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.confback Open the file /usr/local/apache/conf/httpd.conf in vi editor or pico fine the Virtual host entry for the “ServerAlias addondomain.com” ServerAlias addondomain.com www.addondomain.com Edit this line as ServerAlias addondomain.com www.addondomain.com parkdomain.com www.parkdomain.com Restart Apache Now add the zone entries via WHM. DNS Functions > Add a new DNS zone Once it has propagated you park domain will start working. Please note that your parkdomain.com will be shown under the Addondomains section in Cpanel. Steps for Case Two You need the domain “parkdomain.com” to be parked on addon domain “addondomain.com”. Also, you need to create mail account for the domain “parkdomain.com” via cPanel interface. Perform the Case one. Please take the backup of all the files you edit. find the username of the account grep addondomain.com /etc/userdomains open using your text editor. /var/cpanel/users/username DNS If you have two entries already Add Next get in to the directory /var/cpanel/userdata/username Find the directive “serveralias: addondomain.com www.addondomain.com www.addondomain.maindomain.com” serveralias: addondomain.com www.addondomain.com www.addondomain.maindomain.com parkdomain.com www.parkdomain.com Next Add a new entry Open the file Add a new entry You are about to finish. You should be able to view the parkdomain.com in your cPanel > Mails > Add/remove mail accounts. |
![]() Powered and designed by Presoon.com. |