Author Archives: Florian N

About Florian N

Still alive :)

Plesk: 500 – Internal Server Error

The easiest way to check for what the issue is(as there could be a few different problems when seeing this error) is to check the Plesk log file which is located under :  /var/log/sw-cp-server/error_log .

In my case the issue was related to the apc_mmap module which was reporting “No space left on device”, here is the full error:

[Tue Jan 19 17:01:21 2010] [apc-error] apc_mmap: mmap failed: No space left on device
2010-01-19 17:01:21: (mod_fastcgi.c.1000) the fastcgi-backend /usr/bin/sw-engine-cgi -c /opt/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm failed to start:
2010-01-19 17:01:21: (mod_fastcgi.c.1004) child exited with status 2 /usr/bin/sw-engine-cgi -c /opt/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
2010-01-19 17:01:21: (mod_fastcgi.c.1007) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check
2010-01-19 17:01:21: (mod_fastcgi.c.1012) If this is PHP on Gentoo add fastcgi to the USE flags
2010-01-19 17:01:21: (mod_fastcgi.c.1105) [ERROR]: spawning fcgi failed.

An easy fix for this would be to modify the php.ini file for Plesk and take out the apc_mmap module.

The php.ini file that serves Plesk is located under /opt/psa/admin/conf/php.ini or /usr/local/psa/admin/conf/php.ini .

Just open the file with an editor(vi, nano) and comment the following lines:

apc.stat = 0
apc.shm_size = 40
apc.include_once_override = 1

Once done just restart Plesk and check you login URL as this issue should be fixed.

Like i said please check the error log file as the issue may be a bit different even though the error will still be reported as “500 – Internal Server Error”.


Installing OpenVZ on a 64Bit OS

Until i get around finishing the 64bit installer here is a quick way to install OpenVZ on a 64bit OS.

Follow the next set of commands and you should be done in a few minutes:

# cd /etc/yum.repos.d
# wget
# rpm --import
# yum install ovzkernel.x86_64
# mv /etc/sysctl.conf /etc/sysctl.conf.bk
# cd /etc/
# wget
# tar -xvf sysctl.conf.tar
# echo options ip_conntrack ip_conntrack_enable_ve0=1 >> /etc/modprobe.conf
# yum install vzctl.x86_64 vzquota.x86_64

Press “y” when you are being asked if you want to install a package.

After vzctl and vzquota have been installed reboot the server: shutdown -r now .

Login to the server again after it booted up and do the following:

# cd /root/
# wget
# tar -zxvf setx86_64-0.5.tar.gz
# sh setx86_64

When the install finishes you are all done.

If you want to check the x86_64 templates available just run vzpkgls | grep x86_64 and the list will be displayed with the templates.

If you want to create a cache template run the following for Centos 5 for example: vzpkgcache -f centos-5-x86_64-minimal. This may take a bit but when it’s done you can start creating the first VPS using this template.

Hope this helps someone.

Any questions? Please ask!


Plesk install on Ubuntu server – “It seems there is a user with UID=110 in this system” error

Installing Plesk on a Ubuntu or Debian server this days seems to end up with some issues in some cases were the base OS has some extra packages added to it.

Plesk is using hardcoded UID’s for it’s install so if there is a user on the system that already uses the UID needed for one of the users Plesk needs to put in place will cause the install to crash/stop/abort with an error like:

E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: An error occurred on attempt to install packages. Attention! Your software might be inoperable

The full snippet of the error looks like this for Plesk Panel 9.0.1 on an Ubuntu 8.04 server:
Errors were encountered while procesing:
/var/cache/apt/archives/plesk-base 9.0.1-ubuntu8.04.build90090127.18.i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: An error occurred on attempt to install packages. Attention! Your software might be inoperable

One of the issues is that you don’t see the main reason for this error directly so to exactly catch the problem and see the actual error and why the install crashes/stops one thing you could try is to install the Plesk package directly like:

dpkg -i /var/cache/apt/archives/plesk-base 9.0.1-ubuntu8.04.build90090127.18.i386.deb

After running the last command your install may stop and error out but at least it will show you were the problem is, the error i am speaking in this post will be:

ERROR: It seems there is a user with UID=110 in this system, but Plesk needs the same UID for its operating. Unfortunately, this situation has not yet been resolved.


A small tweak will be needed if you want to get over this issue and that would be to check and edit the /etc/passwd file and change the UID for the user that uses the UID needed by Plesk, in this case 110.
In my install the UID=110 was attributed to the identd user so i had to change that but you have to make sure this UID is not used by any other user already existing on the server.

What i did was changing the UID for the identd user from 110 to 111(in my case this one was not used) and then start the install again.
Guess what, the install finished just fine and Plesk got installed with no issue.

Hope this helps!