Problem Solution

From bachWiki
Jump to: navigation, search

Ubuntu Server[edit]

Error message in Crontab[edit]

 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[edit]

images would not upload in joomgallery[edit]

Images won't upload in joomgallery

GD2 Library not installed

apt-get install php5-gd

Akeeba (Joomla ) Backup Failed[edit]

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

Error when Running Kickstart.php[edit]

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[edit]

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[edit]

Duplicate mount point in /Volumes after unexpected restart[edit]

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[edit]

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

check the bash profile to see if it is in there

cat .bash_profile