Koozali.org: home of the SME Server

Bugzilla on SME 6.0

Michiel

Bugzilla on SME 6.0
« on: September 12, 2005, 11:59:45 AM »
Hi,
Has anyone succesfully installed bugzilla on SME 6.0? If so, would you mind sharing the required packages and your notes?
thanks,
Michiel

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Bugzilla on SME 6.0
« Reply #1 on: November 02, 2005, 09:51:26 AM »
I am also very interested in knowing this. So far I run it on a CentOS 3 server but I would much rather run on the SME. It properly can be done if you install all the development tools and install from scratch including a ton of Perl updates.

Anyone?

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Bugzilla on SME 6.0
« Reply #2 on: November 02, 2005, 10:09:45 PM »
Michiel,

I have now installed BZ on a SME 6.0.1 server and I installed a few dev. tools to be able to do it. These were needed only to get and update a ton of Perl modules. I am not sure whether they are all nessesary (I am quite sure not) but it was easy :-). These are all found on http://mirror.contribs.org/smeserver/contribs/hpe/devtools-6.01/dev-rpms/

autoconf-2.13-17.noarch.rpm
automake-1.4p5-4.noarch.rpm
bison-1.35-1.i386.rpm
cpp-2.96-113.i386.rpm
gcc-2.96-113.i386.rpm
gcc-c++-2.96-113.i386.rpm
gettext-0.11.1-2.i386.rpm
glibc-devel-2.2.5-44.i386.rpm
glibc-kernheaders-2.4-7.16.i386.rpm
kernel-source-2.4.20-18.7.i386.rpm
libacl-2.0.11-7.i386.rpm
libacl-devel-2.0.11-7.i386.rpm
libattr-2.0.8-6.i386.rpm
libstdc++-devel-2.96-113.i386.rpm
m4-1.4.1-7.i386.rpm
mkisofs-1.10-11.i386.rpm
ncurses-devel-5.2-26.i386.rpm
readline-devel-4.2a-4.i386.rpm

Next I updated the CPAN base.
# perl -MCPAN -e 'install Bundle::CPAN'

Then I took all the Perl modules one by one as indicated by Bugzilla installation guide.

Create a ibay called bugzilla and untar'ed a BZ tar file into cgi-bin. Ran ./checksetup.pl to verify all modules were there and create a basis installation. My installation is a little tricky as my mySQL database is on another server.

These are the basics I think.

Enjoy,
Jesper

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Bugzilla on SME 6.0
« Reply #3 on: November 03, 2005, 02:59:04 AM »
Quote from: "Knuddi"

Next I updated the CPAN base.
# perl -MCPAN -e 'install Bundle::CPAN'

Then I took all the Perl modules one by one as indicated by Bugzilla installation guide.

A much better way is to use 'cpan2rpm' to generate RPMs from all of the Perl modules. CPAN is great for development, but (IMO) is not the way to install perl modules on production systems as those modules won't get updated during system upgrades.

I am interested in doing a Bugzilla install, but on SME7 rather than 6. I expect most of the Perl modules will already exist. This is probably also true for 6 - have a look on www.atrpms.net and www.freshrpms.net, for the "Fedora Legacy" or RH7 builds.

This set of RPMs might be a good start (for 6.x):

http://mirror.contribs.org/smeserver/contribs/gordonr/bugzilla/rpms/RPMS/i386/

You'll need to --force install perl-PathTools as it conflicts with the perl-5.6.1 RPM and the perl-5.6.1 RPM has an @INC path which is backwards :-(
............

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Bugzilla on SME 6.0
« Reply #4 on: November 03, 2005, 06:19:35 AM »
NOTE: You must protect the Bugzilla files. Here's an httpd.conf fragment which does:

Code: [Select]

Alias   /bugzilla  /home/httpd/html/bugzilla-2.20

<Directory /home/httpd/html/bugzilla-2.20>
    Options +Indexes +ExecCGI
    DirectoryIndex index.cgi
    AllowOverride Limit
    order deny,allow
    allow from all

    <FilesMatch ^(.*\.pl|.*localconfig.*)$>
      order deny,allow
      deny from all
    </FilesMatch>
    <FilesMatch ^(localconfig.js|localconfig.rdf)$>
      order deny,allow
      allow from all
    </FilesMatch>
</Directory>
............

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Bugzilla on SME 6.0
« Reply #5 on: November 03, 2005, 09:59:55 AM »
gordonr,

Love cpan2rpm - didn't know it existed :-)

I agree with the httpd.conf but this is easier said than done with the SME server that creates these automatically. Do you have a template to wrap this in?

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Bugzilla on SME 6.0
« Reply #6 on: November 03, 2005, 10:58:32 PM »
Quote from: "Knuddi"
gordonr,

Love cpan2rpm - didn't know it existed :-)

A wonderful tool.

Quote from: "Knuddi"

I agree with the httpd.conf but this is easier said than done with the SME server that creates these automatically. Do you have a template to wrap this in?

I just put that in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99bugzilla, expanded /etc/httpd.conf and restarted httpd-e-smith.
............

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Bugzilla on SME 6.0
« Reply #7 on: November 04, 2005, 06:59:34 AM »
Sure that it could be done this way - but this will create two Directory sections for BZ.

I get these errors in my /var/log/httpd/error_log files that I have problems getting rid of.

[Fri Nov  4 06:32:13 2005] [error] (13)Permission denied: exec of /home/e-smith/files/ibays/bugzilla/cgi-bin/skins/standard/global.css failed
[Fri Nov  4 06:32:13 2005] [error] [client 192.168.100.100] Premature end of script headers: /home/e-smith/files/ibays/bugzilla/cgi-bin/skins/standard/global.css
[Fri Nov  4 06:32:13 2005] [error] (13)Permission denied: exec of /home/e-smith/files/ibays/bugzilla/cgi-bin/skins/custom/global.css failed
[Fri Nov  4 06:32:13 2005] [error] [client 192.168.100.100] Premature end of script headers: /home/e-smith/files/ibays/bugzilla/cgi-bin/skins/custom/global.css

This also means that I do not get the Ant and other graphics in my browser. Do you get the same?

All the rest works as expected.

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Bugzilla on SME 6.0
« Reply #8 on: November 04, 2005, 07:12:53 AM »
Quote from: "Knuddi"
Sure that it could be done this way - but this will create two Directory sections for BZ.

I don't see why. I only have one.

Quote from: "Knuddi"

I get these errors in my /var/log/httpd/error_log files that I have problems getting rid of.
[...]
This also means that I do not get the Ant and other graphics in my browser. Do you get the same?

All the rest works as expected.

No - I get the Ant and other graphics.

See here:

http://bugs.contribs.org/

Sounds like a permissions problem to me.
............

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Bugzilla on SME 6.0
« Reply #9 on: November 04, 2005, 12:37:29 PM »
Now I see. I am trying to install in an Ibays (the SME way) and you have "just" placed BZ in a dir and created the httpd section yourself. That's also why you do not have multiple sections in your expanded httpd.conf file.

Have you tried to install in an ibays?

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Bugzilla on SME 6.0
« Reply #10 on: November 04, 2005, 11:18:37 PM »
Quote from: "Knuddi"
Now I see. I am trying to install in an Ibays (the SME way)

This is a very common misconception. I-bays are information storage areas, shared between Samba, Appletalk, FTP and the web. They were not designed for web applications, which have their own security and storage requirements.

The Bugzilla code should be stored somewhere safe and installed by an RPM. It doesn't need/want to be in an i-bay. The Bugzilla data is in MySQL.
Quote from: "Knuddi"

and you have "just" placed BZ in a dir and created the httpd section yourself. That's also why you do not have multiple sections in your expanded httpd.conf file.

This is what we did with IMP/Webmail and it is "The Right Way To Do It"[TM]

Quote from: "Knuddi"
Have you tried to install in an ibays?

No. There's no need, and it's much better not to.
............

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
common misconception
« Reply #11 on: November 09, 2005, 03:39:41 PM »
Gordon

I´m glad to know the right way... I allways used to install web applications (awstats, helpdesk, cms, ...) on ibays.
And I think several rpms to SME do not use your approach and install on ibays.

I think this information should be wide spread (a HowTo,   a fixed link on forums, ... ) so people start to use the right way.

What do you think about ?

Thanks

Jáder
...

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Bugzilla on SME 6.0
« Reply #12 on: November 09, 2005, 09:59:39 PM »
As a start I have copied the information into the wiki:

http://no.longer.valid/phpwiki/index.php/Web%20Applications%20Guidelines

which is linked from

http://no.longer.valid/phpwiki/index.php/Development

This information should be re-worked later, but at least it won't be lost.
............

Offline pfloor

  • *****
  • 889
  • +1/-0
Bugzilla on SME 6.0
« Reply #13 on: November 17, 2005, 08:16:52 PM »
Quote from: "gordonr"
NOTE: You must protect the Bugzilla files. Here's an httpd.conf fragment which does:

Code: [Select]

Alias   /bugzilla  /home/httpd/html/bugzilla-2.20

<Directory /home/httpd/html/bugzilla-2.20>
    Options +Indexes +ExecCGI
    DirectoryIndex index.cgi
    AllowOverride Limit
    order deny,allow
    allow from all

    <FilesMatch ^(.*\.pl|.*localconfig.*)$>
      order deny,allow
      deny from all
    </FilesMatch>
    <FilesMatch ^(localconfig.js|localconfig.rdf)$>
      order deny,allow
      allow from all
    </FilesMatch>
</Directory>


Gordon, is there any way to make the alias specific to only one domain?

Paul
In life, you must either "Push, Pull or Get out of the way!"

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Bugzilla on SME 6.0
« Reply #14 on: November 17, 2005, 11:37:51 PM »
Quote from: "pfloor"

Gordon, is there any way to make the alias specific to only one domain?


Yes. You'd need to create this fragment in a file in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
and only generate the output in a given virtual host.
............