kmcital tech notes

Tech stuff worth sharing

Installing Bugzilla 3.0.2 on Lunarpages shared hosting

Reference: Bugzilla Guide 3.0.2

1. Using FTP client, upload bugzilla tarball to LP (placed in the parent folder to where you want bugzilla to be homed. I put mine in the root www folder public_html so it will expand to a subfolder and run from http://mydomain.com/bugzilla.

2. Using LP’s Cpanel File Manager, navigate to uploaded tarball, select the filename and extract (see file operations on right)

3. Noticing the new folder created, select this folder name, and rename to bugzilla.

4. For this same folder, select Permissions and change to 775.

5. The install script ./checksetup.pl must be run using cron jobs since we do not have shell access on this box. In Cpanel, go to cron jobs and enter a job to run once:

cd '/home/youracct/public_html/bugzilla' ; ./checksetup.pl

Also specify your email that you want the output to be sent to. Schedule it to run a few minutes from current time, and make sure it runs only once.

6. Wait for email, the script will have checked for required perl modules.

7. If required or desired modules are missing, email support.lunarpages.com or open a ticket with them and ask them to install the modules on your server.

8. Once all modules are present that you need, edit the localconfig file per the installation instructions. Also, using the Cpanel Mysql tool you will need to create a database and a database user for this application. I created a db called bugs and of course it was renamed to account-id_bugs. The same with the username. These database values are needed in the localconfig file. I edited my localconfig file with the Cpanel file manager.

ISSUE RAISED TO LP TECH SUPPORT: apache is not running under the group ‘apache’ or ‘www-data’. Last resort will be to use “” as the $webservergroup value in localconfig.

Once resolved, the remaining steps will be completed.

LP ANSWER: You must run the install script with $webservergroup = “”

9. Additional steps required since we’re in a shared environment and the install script doesn’t always complete:

  • edit the .htaccess file in the root bugzilla folder to include these two lines:

DirectoryIndex index.cgi
Options FollowSymLinks ExecCGI

10. Edit the cronjob to run checksetup.pl non-interactively since we don’t have a shell. This is done by using an answer file (see here). You’ll have to create this answers file and put it in the same directory as checksetup.pl.

cd '/home/youracct/public_html/bugzilla' ; ./checksetup.pl answersfile.txt --verbose

11. Rerun the cron job, same script, it will detect the edited localconfig file and run the installation script. You should get db tables created. Inspect the email results for errors.

Now you can login as the admin user and start configuration!!

Note: The script did not like my answers file and I always got a “bad file descriptor” error. Here’s my workaround:

Run the cron job without the answers file, it will create the db tables, etc and wait for user input for the admin user. At some point it will die or you can kill it with another cron job.  At this point the bugzilla site is accessible but there are no users defined. Go to main page and create a new user that you will use as the admin. Once created, submit this cron job that will make the new user admin and then it will complete the remaining installation steps of the script:

cd '/home/youracct/public_html/bugzilla' ; ./checksetup.pl --make-admin=newuser@domain.com

Enjoy!!

October 4, 2007 - Posted by | installation, opensource

9 Comments »

  1. You need to set it up to use suexec permissions. It’s mostly the same as on Dreamhost, see http://wiki.dreamhost.com/Bugzilla for their setup instructions. You have to use your own group instead of leaving it blank or using apache, and have to change some extra permissions after checksetup.pl finishes.

    Comment by justdave72 | October 14, 2007 | Reply

  2. justdave72,
    thanks for the tip…I googled but didn’t find this info before. I will give it a try since I’d rather not be running with webservergroup as blank (less secure).

    Comment by kmcital | October 15, 2007 | Reply

  3. Thanks! This was very helpful and saved me a lot of time. I also tried out the tip about suexec and it worked too. My user group was the same as my user name, which may save you one round trip with cron.
    I made an lpsetup.sh file that calls checksetup.pl and then does all the permissions stuff from the Dreamhost page. In any case, I can verify that Bugzilla 3.0.4.

    I see that lunarpages has ssh access available now for basic hosting plans. Hopefully they’ll start enabling that for existing customers.

    Comment by Lance | June 2, 2008 | Reply

  4. Thanks, It very very useful. I have deploy and configure Bugzilla in my lunarpages website.

    Comment by General Chen | July 27, 2008 | Reply

  5. I keep getting Access denied for user ‘myusername’@’localhost’ (using password: NO)

    heres my config file:
    http://pastebin.com/f4033537

    Do you have any ideas on what i might be doing wrong?

    Thanks.

    Comment by Jack | August 13, 2008 | Reply

  6. […] trick is to start of with the instructions by kmcital in his blog post. He runs you through most of the steps which are pretty strait forward. Halfway […]

    Pingback by How to install Bugzilla on Shared Hosting (Site5) | Cristiano on Tech/Life | October 15, 2009 | Reply

  7. Hi

    Your technote was a big help for me and guess what I have successfully installed bugzilla on our host. Thank you again.

    AJ

    Comment by AJ | October 26, 2009 | Reply

  8. I have done most of the above steps. I am with shared hosting.

    A appreciate your time!

    Software error:

    Can’t locate Email/Address.pm in @INC (@INC contains: . lib /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at Bugzilla/Util.pm line 56.
    BEGIN failed–compilation aborted at Bugzilla/Util.pm line 56.
    Compilation failed in require at Bugzilla/Hook.pm line 26.
    BEGIN failed–compilation aborted at Bugzilla/Hook.pm line 26.
    Compilation failed in require at Bugzilla/Config.pm line 37.
    BEGIN failed–compilation aborted at Bugzilla/Config.pm line 37.
    Compilation failed in require at Bugzilla.pm line 38.
    BEGIN failed–compilation aborted at Bugzilla.pm line 38.
    Compilation failed in require at /home/online/public_html/help/index.cgi line 34.
    BEGIN failed–compilation aborted at /home/online/public_html/help/index.cgi line 34.

    Comment by sammy | October 28, 2009 | Reply

  9. […] am trying to setup Bugzilla on a share-host, according to the instruction […]

    Pingback by Bugzilla Installation CheckSetup.pl Parameter Problem Drija | November 16, 2010 | Reply


Leave a comment