Showing posts with label Cpanel Issues. Show all posts
Showing posts with label Cpanel Issues. Show all posts

Tuesday, September 21, 2010

Joomla issue's and fix after php upgrade | Suphp upgrade [SEF urls after suphp upgrade, 404 error]

 
Steps:



1. Go to the configuration.php file in the Joomla installation folder



2. Open Configuration.php in vi editor



3. check the configuration.php file and change the var $live_site = '';  as var $live_site = '/';



Notes:-



[If needed]



1: Set var $live_site = ''; in configuration file with value as '/' or

''. For example if Joomla is installed in

root for example.com then value will be 'http://example.com'.



2: Login to Joomla admin. In Global Configuration, set Add suffix to URLs

= Yes and save.



3:In Global Configuration, set Use Apache mod_rewrite = Yes and save.














Tags:-cPanel,fantastico,joomla,joomla fixes,suphp,linux,linux admin

Wordpress getting " Fatal error: Allowed memory size of xxxxxxxx bytes exhausted"

If deactivating plug-ins doesn't work try one of these methods for increasing the amount of memory a PHP script may consume



1. If you have access to your PHP.ini file, change the line in PHP.ini

If your line shows 32M try 64M:

memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)



2. If you don't have access to PHP.ini try adding this to an .htaccess file:

php_value memory_limit 64M



3. Try adding this line to your wp-config.php file:

Increasing memory allocated to PHP

define('WP_MEMORY_LIMIT', '64M');



4. Talk to your host.


Tags:-wordpress trick and tips, linux cPanel,cPanel server help,Linux admin ,Wordpress errors,Wordpress Issues and Fix

Sunday, August 22, 2010

Cpanel Remote Mysql- steps and fixes for issues

Check the mysql remote connection after making sure that you are using the following parameters;



MySQL server : Server IP

Port : 3306

User : Full mysql user like username_test

Password : password of the mysql user.



Inorder to test mysql remote connection is working



[root@server] #mysql -h ServerIP -u mysqlusername -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 12012

Server version: 5.0.91-community MySQL Community Edition (GPL)



Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.



mysql> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| test_catalog |

+--------------------+

2 rows in set (0.01 sec)



Issue and Error- How to fix



WARNING [2] mysql_connect(): OK packet 6 bytes shorter than expected, Line: 34 in file C:\inetpub\local_intranet\website_updater.php



-----------------------------------------------------------------------------------------------

Steps to fix

------------

Step 1. vi /etc/my.cnf

Step 2. change old-passwords = 1  to #old-passwords = 1

Step 3. restart mysql

Step 4.  change passes - is just mean change the password of myswl user {Change it to the same passwod}

Step5.  uncomment #old-passwords = 1

Step6.  restart mysql



This will fix the error



Tags:-mysql,remote mysql,common cpanel error,cpanel,cpanel remote connection

Thursday, August 19, 2010

MySQL monitoring graph is not updating or blank in Munin

Munin is a network resource monitoring tool that can help to analyze and report back all kinds of server statistics. Munin is used to monitor the the performance of computers/servers, networks, SANs, applications, databases, weather measurements and other parameters.



To download and install Munin: click here



After successful installation, Munin will start colleting required data and will show you the graphs, including MySQL nodes such as MySQL throughputs, MySQL queries, MySQL Slow Queries, and MySQL threads. However, if you restart the server, Munin will fail to monitor MySQL nodes and it will stop showing graphs for MySQL.



Fix for Munin installed by cPanel/WHM



1. Find the path where mysqladmin is installed using one of the following commands:



which mysqladmin

type mysqladmin

locate mysqladmin



The above command will return a path to mysqladmin (i.e. /usr/bin/mysqladmin)



2. Edit Munin configuration file /etc/munin/plugin-conf.d/cpanel.conf and modify the [mysql*] as below:



[mysql*]

user root

group wheel

env.mysqladmin /usr/bin/mysqladmin

env.mysqlopts –defaults-extra-file=/root/.my.cnf



Ensure the env.mysqladmin value is path returned by step 1. Also ensure that /root/.my.cnf contains correct MySQL root password.



3. Restart Munin service:



/etc/init.d/munin-node restart



4. Wait a while for MySQL statistics to be gathered, and check the graphs again.



Fix for the host or server without cPanel Control Panel:



Simply add the “env.mysqladmin /usr/bin/mysqladmin” (ensure that the path is correct according to your system) to the /etc/munin/plugin-conf.d/munin-node file will do the trick.



Tags:-cPanel,Whm,Munin,network statistics,Munin Mysql monitoring is not showing

Monday, July 12, 2010

Error deleting FTP account or not able to delete FTP account.






If you have deleted a FTP account and it’s still apearing on the CPanel–>>FTP Accounts, then follow the below steps :

==================================================================
root@server[#] cd /etc/vftp/

root@server[#] vi username

then just remove the entry from the file for the FTP account that you want to delete.

:wq!

===================================================================

Tags:-cpanel,webadmin help,linux,commands,ftp error,cpanel error,ftp cpanel,ftp

Set the server administrator email using .htaccess



For adding the server administrator email to your server(domain),just add the following line in .htaccess

root@new[#] vi .htaccess

SetEnv SERVER_ADMIN default@domain.com

save and Exit



Tags:-server admin,linux,.htaccess,cPanel,whm

Saturday, July 3, 2010

500 internal server issues


It is the most common php issue.ouurs mostly on servers with suPhp or PHP running as CGI.

Check the logs so that you can quickly find the issue:

/usr/local/apache/logs/error_log /usr/local/apache/logs/suphp.log

Here are some common errors:

SoftException in Application.cpp:357: UID of script "/home/user/public_html/test.php" is smaller than min_uid SoftException in Application.cpp:422: Mismatch between target UID (511) and UID (510) of file "/home/user/public_html/test.php"

SoftException in Application.cpp:264: File "/home/user/public_html/test.php" is writeable by others

These are all permission/ownership issues, indicating that the owner of the PHP file being called in incorrect, or the permissions are higher than what is allowed in suphp.conf.

Invalid directions in .htaccess

If you’re running PHP in CGI or suPHP mode, you can’t use php_flag or php_value directives in .htaccess – you either need to use htscanner to allow Apache to parse those commands, or make php-related changes in php.ini within the user’s account. You can check the Apache error log in /usr/local/apache/logs/error_log to see if you get something like this:

/home/user/public_html/.htaccess:

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

If the error log indicates a problem with .htaccess, you need to remove the directives indicated and make sure your ssyntax is correct, and that they are in the correct places.

Incorrect ownership or permissions

You can adjust suPHP’s permissions allowances in /opt/suphp/etc/suphp.conf to allow ‘group’ and ‘other’ writable permissions if it’s necessary by modifying these values:

allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

If the problem is with the min_uid value being too low (such as if you’re running a PHP script as root), you can also modify the “min_uid” and “min_gid” values to be more permissive. Changing anything in the suphp.conf requires a restart of Apache.

SuPHP binary missing its “sticky” permissions

Take a look at the suphp binary. It should look a bit like this, and in most shells, will be highlighted in red:

-rwsr-xr-x 1 root root 341K Mar 30 12:25 /opt/suphp/sbin/suphp*

If it’s missing the ‘s’ in the permissions column, you need to re-add the sticky bit to allow users on the system to execute it properly:

chmod +s /opt/suphp/sbin/suphp

Tags:-cpanel,cpanel issues,webhosting issues,cpanel admin,Linux,Linux techs