drupal

Core.000 xxx number files in my drupal home/root folder

If you see core.000 number files in your root home folder you're not hacked or anything . They are just core dump files; they are files created when a program has terminated abnormally or crashed. Therefore you have program crashing in your drupal installation. You can eliminate this in the future by issuing a Linux command like this $ ulimit -c 0

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

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/

Warning: file_put_contents(temporary://fileAawlcV) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed (solved)

Don't panic don't panic

Just go the admin/config and media and change your file system. It is usually /sites/default/files and /tmp and also your private files if you have one.
You probably move your site from your local environment to production environment.

cpanel DISKWARN: problem, where is my disk gone?

If you want to find out where your disk has gone run the following command on your shell

du -h /usr/ | grep ^[0-9.]*G | sort -nr
This will find all the directories with GB s
now repeat for other directories until you find the problem

du -h /var/ | grep ^[0-9.]*G | sort -nr /var is usually the biggest pain. Also run it for /home
du -h /home/ | grep ^[0-9.]*G | sort -nr .
Enjoy

Apache Yahoo News Feed

Drupal Yahoo News

Linux Yahoo News Feed

Mysql Yahoo News Feed