Duplicate entry for key 'uri'

This problem happens when you are trying to upload an image or download an image from youtube or similar sites. To solve this problem we need to edit your mysql database using phpmysql or manually.
Navigate to file_managed table, go to the last row by clicking the double arrow and delete last entry. It will usually say something like temporary default.jpg or something like that, delete this entry and should be able to upload images again.

Setting up SuPHP in WHM for security reasons

Running Suphp is recommended to run your websites as it is more secure.

SuPHP allows directory to remain owned by user:usergroup and tight 0750 permissions (or even 0700). Furthermore, files created through PHP (uploaded files as well) will be owned by the effective user instead of nobody as they otherwise would be. This allows users to manage/delete/rename these files themselves as a normal cPanel-level user as opposed to requiring root access, or needing a server admin to change the ownership for them.

Sound good? If so, let's get started!
Building SuPHP Support

Drupal boost cache clear (solved)

In drupal 7, the boost module no longer has the "clear all cache" button.
Follow this instruction to clear it.
1 set minimum cache life time to 0.
2 take off the tick where it says" Ignore a cache flush command if cron issued the request".
3 Run drush cc all or flash all cache at the gui
4 run $ drush cron run or run cron at the gui
5. Repeat the process till boost cache is cleared.
Restart Apache if necessary
$ service httpd restart

mysql Open file limit error(solved)

This error will cause high load on your sever. There is a variable on mysql .cnf file. You may need to look at it check your variable and see if you can optimize your server. However, I found this file limit error was causing high load on my server.

Open your .cnf file with your favorite editor

nano /etc/my.cnf
change the open file limit to a number as high as 100 000
open_files_limit = 100000

Save and restart mysql server

service mysql restart

how to run drush with cron from cpanel for your drupal installation

Type this command on the cron command line on cpanel.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin /usr/local/bin/drush --root=/home/yourhome/public_html/ cron run

You can copy and past it on your cpanel command line. Change this line to your home /home/yourhome/public_html/

Apache Yahoo News Feed

Drupal Yahoo News

Linux Yahoo News Feed

Mysql Yahoo News Feed