If you, like me, set up your Bugzilla install based on IP initially (because you didn’t have the domain ready or whatever), and then you moved the Bugzilla box, either physically or electronically – either way changing your IP address – you might notice that your bugzilla only lets you go to the front page before rerouting you into blue hell somewhere – or nowhere at all.

This is because the configuration of Bugzilla is based off of a customizable URLbase (for security or some other important reason that I care too little about to follow up on) and if that URLbase is an IP address, such as http://123.456.789.100/bugzilla (No, that link doesn’t work.  Stop clicking it.), and your box is now located at, say, 987.654.321.001 (That’s not a real IP either.  Don’t bother trying.), you’ll need to change this URLbase – either to your new IP address, or – maybe you’d like to show some initiative (I know I didn’t!) – even an actual URL!  The only problem is…  that setting is in the administration area, and you can’t get there unless your URLbase is correct.  Damn those Catch-22’s.

Logically, this means we need to hand-edit the configuration file.  Unfortunately, it isn’t exactly labeled “configuration_files_VIM_me_to_fix_URLbase_problems.conf.”  Fortunately, I know where the file is.  Unfortunately, I’m no longer in a sharing mood.   Fortunately, I’m joking. Unfor….  Ok, I’ll stop.  Just please, please put down the gun…

Alright – you calm and relaxed again?  Good.  Alright – so, open up your Terminal Application (whichever that may be for your particular flavor of *Nix), and get yourself to the bugzilla root.  (Mine, for example, is in /var/www/bugzilla/)  Once you’ve gotten there, the rest is exceedingly easy.  navigate to the folder “data” and Vim (or vi, or kate or whatever) the file params.  You shouldn’t even need to sudo it.  Inside, you will find an actual alphabetical list of all the bugzilla parameters!  How amazing is that?  Page down to the U’s, find urlbase, and change it accordingly.  :wq (or…  well, you should know how to save and quit your favorite text editor) and simply log into your bugzilla – problem solved!

I’ll actually answer questions you might have on this one.  Or on bugz in general, should i know the answer, so feel free to ask.

Tagged with:
 

Remember those of you who found this site purely by accident – this site is mostly for my own use.

That said – here for my reference – the Bash commands that I end up using most often with the php exec(); command or in the shell – here in case I forget them… again. (I can remember what everyone ate at my last job interview, yet I have trouble remembering simple shell commands… odd.)

Use sudo as needed!
(more…)

Tagged with:
 

The other day a good friend of mine asked me what the number equivalent of drwxr-xrwx was.

Most people who are up to their arms in Bash everyday know how to compute this – but for everyone else the Terminal App in most Debian/BSD based operating systems display the permissions in alpha – yet kind of require that you change the permissions using number notation.

To compute this, it’s actually really simple – so long as you understand binary. 

Each subset of three letters can be assigned a binary value – 4, 2, 1.  For Example:

rwx r-x rwx
111 101 111
421 401 421

Then, computing in standard binary fashion, compute the  value, in this case, 4+2+1 = 7, 4+0+1 = 5, 4+2+1 = 7.

Put these all together, add the chmod command (and, in some cases the all too awesome sudo) and we get:

$ sudo chmod 757 filename.txt

Any questions? =)

Tagged with:
 
Pro Palma Deus Unus