Problem Solution

From rbachwiki
Revision as of 16:23, 8 August 2016 by Bacchas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ubuntu Server

Error message in Crontab

 If you type
/bin/sh -c root

You will get the error message:

/bin/sh: root: not found
This looks similar to the message you are receiving in the email.

This leads me to believe that you have a crontab entry which is asking cron to run a program named "root". 

How about type

crontab -e

and look for a line that begins with the word "root" in the 6th column

* * * * * root

Note that /etc/crontab uses a different format than personal crontabs.
In /etc/crontab, the 6th column specifies the user who is supposed to run the command,
while in a personal crontab the 6th column specifies the command.

If this does not help, type

sudo -i
crontab -e

and look at root's personal crontab.

Joomla

images would not upload in joomgallery

Images won't upload in joomgallery

GD2 Library not installed

apt-get install php5-gd

Akeeba (Joomla ) Backup Failed

 The  /tmp and the /logs were unwritable. Making them writable solved the issue

Error when Running Kickstart.php

Received this error when running kickstart.php to restor2 a joomla site

"Warning: fread(): supplied argument is not a valid .."

Fix: I uploaded the file using root. therefore giving ownership of the kickstart.php file.

Change the kickstart file and the .jpa file to the proper owner and it will run fine.


Wordpress Displayed Blank Homepage

Problem: Blog displayed as a blank page

Fix: Themes folder was corrupted. recopied the themes folder

You can change the site url by editing the wp_options in the database

Mac Os

Duplicate mount point in /Volumes after unexpected restart

Unmount the drive. Go to Finder menu Go>Go to Folder and enter /Volumes/

You may see one or more aliases with the name of your external drive, with or without the added number. Delete them.

Now mount the drive again. Disk utility mount drive. This can be caused by the drive not unmounting properly at some point, leaving the alias in place: on the next mount since there is already an alias a new one is made with the added number. I've seen USB sticks do this with consequent problems.

Creating an Alias for Mysql

 echo 'export PATH=$PATH:/usr/local/mysql/bin' >>~/.bash_profile

check the bash profile to see if it is in there

cat .bash_profile