Bugzilla Install on CentOS under Plesk

I managed to get bugzilla installed and to work, but it was an all-day affair. It appears other people had problems as well. So I am documenting what I needed to do to make it work in the hopes that it’s useful to other people and potentially myself in the future.


  • Plesk 10.4.4
  • CentOS release 5.6 (Final)
  • Bugzilla 4.2.3
  • Site is a subdomain created in Plesk & given cgi-bin permissions


Issue 1

Raw code displayed on screen.

Creating a .htaccess file and adding the following to it resolved this issue.

AddHandler cgi-script .cgi
Options +ExecCGI
DirectoryIndex index.cgi

However, that created a new problem.

Issue 2

500 Internal Server Error

This problem is a bit more difficult to track down. For me, it turned out to be a suexec issue.

After much google-fu I found http://simon.hu.free.fr/?p=215 which allowed me to fix the problem.

Looking at /etc/httpd/logs/suexec.log I see stuff like:

[2012-10-24 17:25:29]: uid: (10023/domain) gid: (2452/2452) cmd: index.cgi
[2012-10-24 17:25:29]: target uid/gid (10023/2452 or 2451) mismatch with directory (10023/2452) or program (10023/2451)

I did the suggested:

cp -arf /usr/local/psa/suexec/psa-suexec /usr/sbin/suexec

which may or may not have been necessary. I was still seeing ‘Premature end of script headers:‘ in the apache/php error log.

The following tidbit turned out to be the final fix.

The script itself must be owned by domain FTP user but group must be ‘psacln’:

Making the files have the right ownership & group got everything working correctly.

chown -R ftpusername:psacln ./*

Twitter Updates for 2011-03-12

  • Is it Friday yet? It's been a long month this week. I just feel like going home and making something. Something real. #
  • PLESK migration is still broken. Email Forwards don't survive. You have to uncheck forwarding, save, recheck, save to have email forward. #
  • I think naps should be required for bad days at work. I wake up with such a better outlook on life after one. #
  • Bellers is talking. I just don't understand a word of it. She repeats the same gibberish patterns expecting us to understand. #
  • My wife is trying to depress me. She says my little girl won't stay little forever. Says she will be driving soon. Boo! #


Twitter Updates for 2011-02-05

  • An accident at the end of my road. Everyone's OK. A Kia slide through the stop sign into a semi truck. It ate that car up and spit it out! #
  • Amped up on energy drinks & chocolate donuts. Trying to create a reverse scp tunnel to backup my server. Failed PLESK update broke backups. #


Twitter Updates for 2011-02-04

  • That's right, it's that time again! http://twitpic.com/3w5st3 Sammich time! #
  • PLESK used to be a pretty good tool, now I spend all day fighting it to keep apache and qmail running. It's also suffering failed backups 2! #
  • All kinds of stupid on the road… semi truck drove up onto a retaining wall, pickup in the ditch facing the wrong way, cars plowed in. Fun! #
  • 72 and 25 in Dundee are both 1 lane each way. Traffic is backed up much further than usual. Driving on snow banks is lots of fun! #