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.

Environment:

  • 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 ./*

Well, it looks like my new phone finally decided to try to sync photos & video…

Well, it looks like my new phone finally decided to try to sync photos & video to google+. Well, some of them. Most of the photos won’t sync as google won’t sync the file format. A tad annoying. I pay for storage for picassaweb as a backup to my home system. I may need to find another service that actually works with my new android phone.

Here’s a video of Bella playing with some aluminum pipes in the back yard at dusk.

In album September 12, 2012 (1 photo)


 

I am kicking around an idea for a cell phone based water sample spectrometer

It would be used for testing the water in my aquaponics system. I am not sure that the stuff I want to test is even detectable with the hardware I am going to use, but working out the mechanics is what’s challenging for me at the moment. The genisis for this idea is at http://www.backyardaquaponics.com/forum/viewtopic.php?f=50&t=11840&start=150#p345100

The process is to use the LED flash of a smartphone camera, a bit of a CDr or DVDr as a diffraction gradient, the camera, and the processing power on the phone. You measure distilled water, and then the sample and compare the two to see the differences.

The drawings are a quick render of the OpenScad file. The half-circle is a pivot that will hold the diffraction gradient so I can play with angles. I also need to add a spot for the test tube somewhere along the thin light slot.

The whole thing will be parametric, and customizable to any given smart phone.

Well, this is the plan. I am going to sleep on it a night, see what I dream up on it, and maybe send it to my printer tomorrow.

In album


 


 


 

An item of mine was featured on ThingiVerse today.http://www.thingiverse.com/thi…

An item of mine was featured on ThingiVerse today.http://www.thingiverse.com/thing:29107

Of course, my luck, it’s a photo of my toilet!

This is somehow fitting for me…

And what’s the best punny joke that can be made of this?

Toilet Seat bolt bushing/shim by creuzerm – Thingiverse
Thingiverse is a universe of things. Download our files and build them with your lasercutter, 3D printer, or CNC.

WordPress Appliance - Powered by TurnKey Linux