Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
just brew it!
Administrator
Topic Author
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Amateur night PHP FTL

Fri Feb 15, 2013 12:37 am

Please don't assume that your web app will always be installed at the document root of the web server, or hard-code paths to system utilities that may be installed in a different location on servers other than the one you happen to be testing on.
Nostalgia isn't what it used to be.
 
SecretSquirrel
Minister of Gerbil Affairs
Posts: 2726
Joined: Tue Jan 01, 2002 7:00 pm
Location: North DFW suburb...
Contact:

Re: Amateur night PHP FTL

Fri Feb 15, 2013 8:44 am

just brew it! wrote:
Please don't assume that your web app will always be installed at the document root of the web server, or hard-code paths to system utilities that may be installed in a different location on servers other than the one you happen to be testing on.


Cleaning up someone else's mess, are we?

--SS
 
Deanjo
Graphmaster Gerbil
Posts: 1212
Joined: Tue Mar 03, 2009 11:31 am

Re: Amateur night PHP FTL

Fri Feb 15, 2013 8:58 am

just brew it! wrote:
Please don't assume that your web app will always be installed at the document root of the web server, or hard-code paths to system utilities that may be installed in a different location on servers other than the one you happen to be testing on.


Let me guess, debian based distro on the server?
 
bthylafh
Maximum Gerbil
Posts: 4320
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: Amateur night PHP FTL

Fri Feb 15, 2013 9:02 am

"Amateur" and "PHP" are tautological, no?

/languagebigot :wink:
Hakkaa päälle!
i7-8700K|Asus Z-370 Pro|32GB DDR4|Asus Radeon RX-580|Samsung 960 EVO 1TB|1988 Model M||Logitech MX 518 & F310|Samsung C24FG70|Dell 2209WA|ATH-M50x
 
morphine
TR Staff
Posts: 11600
Joined: Fri Dec 27, 2002 8:51 pm
Location: Portugal (that's next to Spain)

Re: Amateur night PHP FTL

Fri Feb 15, 2013 9:15 am

bthylafh wrote:
"Amateur" and "PHP" are tautological, no?

/languagebigot :wink:

*bitchslap*
There is a fixed amount of intelligence on the planet, and the population keeps growing :(
 
Kurotetsu
Gerbil Elite
Posts: 548
Joined: Sun Dec 09, 2007 12:13 pm

Re: Amateur night PHP FTL

Fri Feb 15, 2013 9:16 am

bthylafh wrote:
"Amateur" and "PHP" are tautological, no?

/languagebigot :wink:


As a PHP developer (though I am branching out) I take some offense. :P

I understand the pain of having to deal with the aftermath of crap/non-existent coding practices. It grants an unstoppable need to punch someone in the face with common sense.
Under Construction Forever~~~
 
just brew it!
Administrator
Topic Author
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Amateur night PHP FTL

Fri Feb 15, 2013 10:04 am

SecretSquirrel wrote:
Cleaning up someone else's mess, are we?

Bingo!

Deanjo wrote:
Let me guess, debian based distro on the server?

Double-bingo!

You guys do PHP web apps for a living? For me it's more of a sideline... in this case, a volunteer sideline, so I'm not getting paid for it. If I was billing by the hour, or if the site wasn't going live today, it would've been a lot less annoying!
Nostalgia isn't what it used to be.
 
morphine
TR Staff
Posts: 11600
Joined: Fri Dec 27, 2002 8:51 pm
Location: Portugal (that's next to Spain)

Re: Amateur night PHP FTL

Fri Feb 15, 2013 10:08 am

just brew it! wrote:
You guys do PHP web apps for a living?

Need a hand with something?

Also, if you're actually running Debian, I feel for you. The PHP version in there is probably from 1755 AD.
There is a fixed amount of intelligence on the planet, and the population keeps growing :(
 
just brew it!
Administrator
Topic Author
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Amateur night PHP FTL

Fri Feb 15, 2013 10:27 am

morphine wrote:
just brew it! wrote:
You guys do PHP web apps for a living?

Need a hand with something?

No, immediate crisis averted; I was just curious. But thanks for offering.

morphine wrote:
Also, if you're actually running Debian, I feel for you. The PHP version in there is probably from 1755 AD.

Well... actually the test server was running Ubuntu LTS, so a bit newer. Probably at least from the late 1800s! :lol:

I think the production server is running some RHEL derivative. (Given this, we should've probably considered using CentOS for the test server instead of Ubuntu, but the Ubuntu server was already set up.)

No idea what the original developers of this train wreck used, but I can pretty much guarantee it was something that puts the Apache binaries in /usr/local/apache/bin!
Nostalgia isn't what it used to be.
 
Deanjo
Graphmaster Gerbil
Posts: 1212
Joined: Tue Mar 03, 2009 11:31 am

Re: Amateur night PHP FTL

Fri Feb 15, 2013 10:41 am

just brew it! wrote:
Deanjo wrote:
Let me guess, debian based distro on the server?

Double-bingo!

You guys do PHP web apps for a living? For me it's more of a sideline... in this case, a volunteer sideline, so I'm not getting paid for it. If I was billing by the hour, or if the site wasn't going live today, it would've been a lot less annoying!


Lets just say that I'm well aware of debian based distros highly annoying habit of saying "F*** YOU FHS!!!".
 
Flatland_Spider
Graphmaster Gerbil
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: Amateur night PHP FTL

Fri Feb 15, 2013 12:25 pm

just brew it! wrote:
I think the production server is running some RHEL derivative. (Given this, we should've probably considered using CentOS for the test server instead of Ubuntu, but the Ubuntu server was already set up.)

No idea what the original developers of this train wreck used, but I can pretty much guarantee it was something that puts the Apache binaries in /usr/local/apache/bin!


Oh man, good luck moving that thing. Check your dependencies. RHEL doesn't have the number of packages that Ubuntu or Debian does, so watch out for that. pkgs.org is a good place to see where the modules are available.

Hmm... After a couple of searches, I think it might be Solaris. The link below shows one of the install locations to be /usr/local/apache/bin.

http://www.softpanorama.org/Solaris/Pac ... ndex.shtml
 
just brew it!
Administrator
Topic Author
Posts: 54500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Amateur night PHP FTL

Fri Feb 15, 2013 12:43 pm

Flatland_Spider wrote:
Oh man, good luck moving that thing.

The move actually went pretty smoothly. The hard-coded paths were apparently a misguided attempt at implementing a non-essential feature that was broken on multiple levels so we basically just ripped it out, and all other required packages were already present.
Nostalgia isn't what it used to be.
 
Flatland_Spider
Graphmaster Gerbil
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: Amateur night PHP FTL

Sun Feb 17, 2013 2:29 pm

That's good. It sounds like it wasn't doing anything crazy.

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On