php


15
May 08

12 Signs That The Recession Has Hit The Internet


The United States economy is in a funk. Food prices are up, oil is through the roof, real estate has collapsed, and credit is becoming scarce. Here are 12 signs to look for when the recession hits the Internet:

  1. Digg.com moves their server over to Dreamhost
  2. Jeff Bezos delivers his TED talk with a GoldenPalace.com tattoo across his naked chest
  3. i can affordz cheezburger?
  4. Drew Curtis switches to Pabst Blue Ribbon
  5. For $20, Rick Astley will show up to do it in person.
  6. Woot.com starts accepting payment in Flooz
  7. Jeph Jacques sells all remaining ad space to Warner Music Group
  8. Nigerian spammer steals your identity, only to return it 3 days later when he finds out your credit score
  9. Scoble spruces up resume for sweet new gig as Hugh MacLeod’s intern
  10. StuffWhitePeopleLike? Liquidity.
  11. Guy Kawasaki trades in his MacBook for a Dell
  12. You hire a PHP Developer for $12 an hour through elance.com, and it turns out to be Matt Mullenweg

Popularity: 36% [?]


14
Jul 07

apache2, php5, phpmyadmin

So, I solved at least one of my nagging headaches. I ran into a brick wall trying to get phpmyadmin up and running on ubuntu.

The Setup

Ubuntu 7.04, Apache2.2, MySQL, PHP5, running on a VPS from slicehost.com. All installed from apt-get, all working fine. Gave MySQL root user a password, the login to MySQL from the command line works just fine.

Installed phpmyadmin from apt-get, everything’s cool, it sets up the appropriate symbolic links so that www.MYURL.com/phpmyadmin points the browser to the phpmyadmin login page.

The Problem

I go to www.MYURL.com/phpmyadmin, and I get the login page. I enter the MySQL user root + password. Sometimes it logs in. Sometimes it bounces me back to the login with no warning. Sometimes it redirects me to the login page and says “root”@”localhost” not permitted [password=YES]. Sometimes it’s the same warning, but with [password=NO], even though I have entered a password.

Sometimes, if I click login 3 or 4 times after it keeps redirecting me, I actually get let in to phpmyadmin. As soon as I do anything requiring privileges (create new user, create new database), I get bounced back to the login page again.

Troubleshooting

Here’s what I tried to fix it

1) Tried all browsers at my disposal (OSX: Firefox, Opera, Safari, Camino; Windows: IE6, IE7). Same problem with all.

2) Assumed it was a cookie issue. Dumped all cache and cookies on my browser, reset safari, relaunched apache2, tried again. Same problem.

3) Same as step 2, but also did a shutdown -r of the entire server, just in case. Old habits die hard.

3) Sacrificed male goat by the light of a full moon. Sticky fingers, but still no persistent login.

Nothing worked.

The Solution

Turns out, in order to run phpmyadmin with php5 on a 64bit ubuntu machine, you need to have a little package installed called php5-mcrypt. It’s not listed in the dependencies, so if you just use apt-get, it gets left behind.

sudo apt-get install php5-mcrypt

the conclusion

aaaarrrrrgh.

Let the record show that it was at this precise moment in time that I switched from Ubuntu to Debian for my server needs. If I wanted to shed this much stomach bile on figuring out required dependencies, I would strap on a pocket-protector and go join the gentoo geeks. At least then I know it’s up to me.

Popularity: 19% [?]