MySQL database does not work and returns “Can’t create/write to file” error
The problem is related to the mysql directory permission.
‘mysql’ user is not able to create a temporary file in /var/lib/mysql/ directory due to permissions lack
# ls -lda ~mysql/
drwxr-xr-x 5 root mysql 4096 Aug 31 09:56 /var/lib/mysql/
The solution is to go to /etc/init.d/mysqld_app_init file and change
chown root.mysql /var/lib/mysql
to
chown mysql.mysql /var/lib/mysql
Then restart mysqld service or just change owner of /var/lib/mysql directory to “mysql” instead of “root”
chown root /var/lib/mysql
Error message ‘Invalid cross-device link’ in site-admin web-interface
System has hard cross-device links. For example, /usr/tmp linked to /var/tmp and /var mounted to a separate partition.
Example:
/usr/tmp linked to /var/tmp and /var mounted to a separate partition.
To fix the problem:
1. Create /usr/.tmp directory
2. Add the following entry to the /etc/virtualhosting/tmpdirs:
3. Restart epld
or
Reference : http://parallels.com
Fix For Memory Error in Ensim Pro for Linux Version
Restore of appliance, reseller, site and user fails with the “MemoryError” if the size of the backup tar file is greater than the aggregate size of RAM and swap space.
Instructions to fix MemoryError exception occuring during import sites.
Resolution: Add extra swap space to the server before doing the restore. The extra swap space is added to the server by setting up a new swap file and enabling swapping on it.
Instructions to setup swap file:
Select the partition where you want to create the swap file. This partition must have free disk space to create the swap file.
Create a file for swap with the following command (# is shell prompt):
#dd if=/dev/zero of=/var/swapfile bs=1024 count=
Where = number of 1024 blocks required. If count=1024000 size of /var/swapfile will be 1024* 1024000 = 1 GB.
Setup an extra swap with the following command:
Enable “/var/swapfile” for swapping with the following command:
Verification: The file “/proc/swaps” must contain the entry for the swap file “/var/swapfile”. If this entry is not present, then swapping has not been enabled for the swap area.
Restore can be performed after the extra swap file has been enabled for swapping.
Instructions for deleting the swap file after import:
Turn off swapping for file “/var/swapfile” with the following command:
Delete the file “/var/swapfile” with the following command:
The latest CentOS 5.3/RHEL 5.3 updates for openssh (openssh-4.3p2-36) introduce the dependency on the libfipscheck.so.1 library supplied by fipscheck-1.0.3-1 RPM, but this RPM is missing in default file system template for ssh.
Log in as root to your PPCPL box.
Open the /etc/virtualhosting/filelists/ssh.sh file using a text editor:
vi /etc/virtualhosting/filelists/ssh.sh
Make sure that the file looks like:
$RPM_BIN -q nss nspr > /dev/null 2>&1 && \
cat <<EOF
S,rpm:nss
S,rpm:nspr
EOF
Reference: http://parallels.com
To resolve this issue, check that the vacation binary file has proper permissions, the executable bit should be set.
# ls -l /home/virtual/FILESYSTEMTEMPLATE/vacation/usr/bin/vacation
-rwxr-xr-x 8 root root 18609 Apr 9 2009 /home/virtual/FILESYSTEMTEMPLATE/vacation/usr/bin/vacation
If the executable bit is not set, change the permissions:
# chmod ugo+x /home/virtual/FILESYSTEMTEMPLATE/vacation/usr/bin/vacation
Reference: http://parallels.com