stuff to buy!!

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, May 9, 2010

Install Fantastico on CPanel/WHM / Not Installed

If you are having issues with fantastico not being installed on a server with The Planet by default, the issue is more than likely with the way fantastico is installed.

Here is a copy/paste and a link with this info.

http://www.ducea.com/2006/05/23/install-fantastico-on-cpanelwhm/
==

Lately I have seen that on all new server deployed by some major datacenters they fail to install Fantastico even if they state that the license for Fantastico is included with their CPanel package (seen on ThePlanet last week on a new server for example). Why would they do that? I assume that their automated installation scripts are not updated after Fantastico installation method has changed (but this was several months ago). Anyway this is not at all a big issue and as long as they have licensed the server IP (as they have in all the situations I have seen), the installation is very simple.

Here is a what needs to be done… SSH to your server and enter following commands:


cd /usr/local/cpanel/whostmgr/docroot/cgi
wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz

Now go to WHM, login as root and follow the link WHM -> Add-Ons -> Fantastico De Luxe WHM Admin (one of the lasts entries depending on your setup). There you complete the installation by following the online screens. If you will receive a license error and you are sure that your package includes Fantastico, then contact your datacenter technical support and have them license the server IP.

This of course if you want to allow your users to use Fantastico. If you don’t need Fantastico, then better don’t install it, even if you have it included in your CPanel package. Try to install on any server only the things that you need and use, and leave the others disabled or even better not installed.

==


I hope it helps!

Monday, March 1, 2010

failed: Unable to exec utility packagemng: packagemng: Unable to clean BackendCache in DB: Got error -1 from storage engine

==
Components::componentUpdate() failed: Unable to exec utility packagemng: packagemng: Unable to clean BackendCache in DB: Got error -1 from storage engine
==

If you are receiving this error when trying to access your plesk log in,

check your /etc/my.cnf

for the innodb_force_recovery = 4

and comment it out

# innodb_force_recovery = 4

service mysqld restart

DONE


Monday, February 8, 2010

ErrorGot error 28 from storage engine

If you see this error on your site, check your drive space usage, it may be FULL!

short and simple!

Tuesday, February 2, 2010

r1soft buagent could not be started, linux

Looks like this one is due to a kernel upgrade? or the agent not being the right one for the kernel.

This was an easy fix!!

try and run
==
r1soft-cki
==

then restart agent

==
service buagent restart
==

have cup o joe!!

Enjoy!!

TY = http://forum.r1soft.com/showthread.php?t=930

Wednesday, January 20, 2010

whm/cpanel apache wont/fails to start : waitpid(-1, /etc/init.d/httpd: line 83: 21417 File size limit exceeded$HTTPD -DS S

I was having issues with a server where apache just stopped working.

Issue :

When issuing a restart command I was getting the following error.

==
/etc/init.d/httpd: line 83: 21417 File size limit exceeded$HTTPD -DS S
==

The problem was that the httpd/apache logs had grown too large in size for apache to handle? There is a 2Gb limit on log files

==
/usr/local/apache/logs/
==

You can verify the file size with the the following command.

==
ls -hS
==

The larger files will be at the top, you can also pipe it to less if you don't want to scroll up.

Resolution :

Move the file or otherwise remove it if you don't need it.

Start apache again!

Have fun!!

Tuesday, January 19, 2010

whm/cpanel : Account Creation Status: failed (Missing HOST Config Line in /etc/wwwacct.conf, please reconfigure with Edit Setup.)

Missing HOST Config Line in /etc/wwwacct.conf, please reconfigure with Edit Setup.

Are receiving this error when trying to add accounts through whm? The problem is that the host name of the server is missing from the configuration file.

==
/etc/wwwacct.conf
==

part of the file /etc/wwwacct.conf
==
HOMEMATCH home
HOST
LOGSTYLE combined
MINUID
==

simply put the hostname of the server right after 'HOST' so that it looks simliar to this.

==
HOMEMATCH home
HOST server.domain.com
LOGSTYLE combined
MINUID
==

that should take care of your issue.

If you do not know your host name, simply run the command hostname through ssh and you'll get your hostname

ex
==
root@server [~]# hostname
server.mydomain.com
==

enjoy!!

Tuesday, January 20, 2009

How to: Linux WHM/cPanel Enable Open Relay SMTP Exim

I had this question asked about enabling relaying through a server.

Basically it's not a good thing to enable relaying on your SMTP servers because it is very bad for your and very good for spammers.

I don't think I need to say more on that and the type of headaches you will get from it.

However someone wanted to allow certain IPs/Hosts to relay through their servers and here is what I found.

Link
==
http://faq.cpanel.net/show.cgi?qa=105638198305995
==

work done
==
Create a file with your host IP or IPs and named it something like

/etc/privaterelay

i.e

192.168.0.2
192.168.3.4

Next, located the following entry at the top of the /etc/exim.conf file:

hostlist relay_hosts = lsearch;/etc/relayhosts : \
localhost

and change it to this:

hostlist relay_hosts = lsearch;/etc/relayhosts : \
localhost : lsearch;/etc/privaterelay

That should do it.!
==

Tuesday, January 13, 2009

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (2), mysql won't start, start up script missing

I ran into this earlier where the mysql package was installed on a CentOS 5.2 server, but mysql was not starting.

This was due to the mysql-server package not being installed.

If you are having issues starting mysql and get the following error.

===
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (2)
===

Verify that you have the mysql-server package installed.

==
[root@dharma02 init.d]# rpm -qa mysql-server
mysql-server-5.0.45-7.el5
==

If not, then install it.

==
yum install mysql-server
==

Then start mysql and you should be good to go.

==
service mysqld start
==

Have fun!

Description: HTTP 403. Error processing request. System.Web.HttpException: Forbidden Cannot Download Files, DLL , ASP Error .DLL

Ran into this issue earlier.

We wanted to download a .dll file from the server however it was causing issues due to the asp configuration.

After some investigation someone found the error to be solved by commenting out line for the .dll file within the configuration file.

==
/usr/local/apache/conf/mod_mono.conf
==

==
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
# AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
==

==
Server Error in '/' Application
Forbidden

Description: HTTP 403. Error processing request.

Stack Trace:

System.Web.HttpException: Forbidden
at System.Web.HttpForbiddenHandler.ProcessRequest (System.Web.HttpContext context) [0x00000]
at System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext () [0x00000]
at System.Web.HttpApplication.Tick () [0x00000]

Version information: Mono Version: 1.1.4322.2032; ASP.NET Version: 1.1.4322.2032
==

Saturday, January 10, 2009

how to forward emails RHEL / CentOS linux

I had this question put up to me and I didn't know the answer myself so google revealed a couple of things to me once again.

=
http://www.faqs.org/docs/Linux-HOWTO/Mail-User-HOWTO.html#forwarding
=

Which states

==

3.2. Forwarding

MTA aliases usually require administrator privileges to set up. But it is desirable for mail users to be able to set up forwarding of their own mail without administrator intervention.

To support this, most MTAs follow sendmail's lead and look for a file called .forward in your home directory. The contents of this file is interpreted like the target of an alias which should receive all your mail. The most common use for this facility is to redirect your mail to an account on another machine

==


And


==

http://nixcraft.com/getting-started-tutorials/180-how-forward-email-other-account.html

==


Which talks about it


==

Trust me if you don't have admin access to mail server then forwarding mail can be problem. For example your account at uni tom.cat@myuni.com and then you gonna for holidays or just wanna forward email to mr.tom@yahoo.com then just do the following trick:

Code:
echo 'mr.tom@yahoo.com' > .forward

==

Tuesday, January 6, 2009

WHM/CPanel IP MISSING in LIst Accounts Whm >> List Accounts

I had this issue with WHM/CPanel when you try to view the IP of a domain/account, the IP did not show and the only thing that was on the IP table was the words

==
IP MISSING
==

This is caused by an entry in the apache configuration file.

==
/etc/httpd/conf/httpd.conf
==

Make sure that the domain matches the domain in cpanel and the IPs are proper.

=====

ServerName examplecdomains.com
ServerAlias www.examplecdomains.com examplecdomains.com
DocumentRoot /home/domain/examplecdomains.com
ServerAdmin webmaster@examplecdomains.com
...
..

=====

If the IP and domain do not match what WHM has then the IP will show as MISSING.

Tuesday, December 30, 2008

Site Preview, WHM, Can't preview domain within whm http://xxx.xxx.xxx.xxx./~user

I was having an issue with cpanel where the site preview under list accounts was not working for the shared IP and any user/domain created with this IP.

It looks like this can happen if you have the mod_userdir set in the Security Center.

Simply make sure that you have made exclusions for the domains.

In the WHM Manager under Security >> Security Center >> mod_userdir

You need to select the accounts you want to exclude (ie. username ) then you should be able to view the site


via

http://domain.com/~username
http://IP/~username
http:/xxx.xxx.xxx.xxx/~username

Monday, December 15, 2008

ERROR 1044 (42000): Access denied for user 'user'@'localhost' to database 'testing'

I' am getting this error when trying to create a test db or any db for that matter through ssh.

ERROR 1044 (42000): Access denied for user 'user'@'localhost' to database 'testdb'


still working on the fix.. will update once found :)

UPDATE: 12:26:08

It looks like this was an issue with permissions for the database. Ensim did not change the permissions for the database and they must be changed via ssh.

GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' ;

Depending on the perms you want to give you may or may not want to grant all. That's all up to you!

Friday, December 12, 2008

ERROR: PleskUtilException - mailmng failed: Starting postfix: [FAILED]

Getting the following error after an upgrade to plesk 9.0 from plesk 8.6. when trying to start up postfix stmp

The plesk kb doesn't work.

==
http://kb.parallels.com/en/5798
==


==
0: /usr/local/psa/admin/plib/class.MailManager.php:226
MailManager::execWithException(string 'smart_exec', string 'mailmng', array, array, string 'lst')
1: /usr/local/psa/admin/plib/class.MailManager.php:258
MailManager->callMailManager(string 'start-service', array)
2: /usr/local/psa/admin/plib/class.MailManager.php:966
MailManager->smtpControl(string 'start')
3: /usr/local/psa/admin/plib/class.ServiceControl.php:420
ServiceControl->action()
4: /usr/local/psa/admin/htdocs/server/restart_services.php:17
require(string '/usr/local/psa/admin/htdocs/server/restart_services.php')
5: /usr/local/psa/admin/htdocs/plesk.php:41
==

UPDATE:

k so it looks like you can do what a kb has mentioned.

http://kb.parallels.com/en/5801

====
You may switch MTA using autoinstaller script.

Run the script without parameters

~# /usr/local/psa/bin/autoinstaller

and select Parallels Plesk Panel 9.0.0 (currently installed) on the fourth page. Disable all other applications like SSO and Sitebuilder.
====

Let me know if works for you all! :)

Thursday, November 27, 2008

CentOS 5 change runlevel at boot time

I was having some troubles with my new monitor on an old server. The damn thing would only boot into Graphics Mode, but the monitor did not like the resolution and I could do nothing.

So I had to change my run level from Graphics Mode to Text Mode. Here's a link with that info.


I'll also paste it in here.


====
Under Red Hat Enterprise Linux, it is possible to change the default runlevel at boot time.

To change the runlevel of a single boot session, use the following instructions:

  • When the GRUB menu bypass screen appears at boot time, press any key to enter the GRUB menu (within the first three seconds).

  • Press the a key to append to the kernel command.

  • Add at the end of the boot options line to boot to the desired runlevel. For example, the following entry would initiate a boot process into runlevel 3:

                  grub append> ro root=/dev/VolGroup00/LogVol00 rhgb quiet 3
====

The is replaced by the level you would like to boot into. Just replace it with the runlelvel number or you can s

Saturday, November 15, 2008

up2date error Internal Server Error!!

Whilst on my travels I came across this error.

====
up2date -u
Error communicating with server. The message was:
Internal Server Error
====

I am not sure what caused this error but the fix was fairly simply!

open the file

==
/etc/sysconfig/rhn/sources
==

and comment out the line

==
### The default RHN (using "default" as the url means use the one in the
### up2date config file). This is required.
up2date default
==

so that it will be

===
### The default RHN (using "default" as the url means use the one in the
### up2date config file). This is required.
#up2date default
===

save and do your updates!!

cheers!!

Urchin Installation Errors - Does not like the port 9999

If you are installing Urchin 5.X on a linux server and you are stuck at the prompt where you choose the port for the Urchin Web Server. You can try this quick trick.

Go to the directory where the installation file install.sh and inspector are located and execute the following.

===
echo "true" > inspector
===


This lil sucker was "borrowed" from a co worker :)

I'm not sure what it does, but it does the job!!! :)

Buy more Stuff!!!