Downgrade PHP 5.4 to PHP 5.3

So you got your fresh Debian 7 installed and realized in terror that it ships with PHP 5.4!

Most of the popular CMS out there are not ready for the changes in php core yet so you actually need to downgrade php 5.4 to php 5.3.
Here is how :

Most of the commands are self explanatory so you could just just copy & paste them into cli.

Edit the /etc/apt/sources.list file

vi /etc/apt/sources.list

and add the old Debian 6 repositories

deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

save the file

Create the /etc/apt/preferences.d/preferences file that will allow us to “pin” the older php packages to whatever we like.
vi /etc/apt/preferences.d/preferences

and insert the packages you need to have downgraded to previous version
usually the following are enough but modify further if needed

Package: php5*
Pin: release a=oldstable
Pin-Priority: 700

Package: libapache2-mod-php5
Pin: release a=oldstable
Pin-Priority: 700

Package: libapache2-mod-php5
Pin: release a=oldstable
Pin-Priority: 700

Package: php-pear
Pin: release a=oldstable
Pin-Priority: 700

Package: *
Pin: release a=stable
Pin-Priority: 600

Now remove the pre-installed php 5.4 and all its dependencies with the following command
aptitude remove `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

Update the apt-get so we it can find the older php version
apt-get update

Tell the system to install the version we want and previously pinned in the preferences file
apt-get -t oldstable install `dpkg -l | grep php5| awk '{print $2}' |tr "\n" " "`

Confirm success with the following
dpkg -l | grep php

Restart apache
/etc/init.d/apache2 restart

And there you have it! Brand old php 5.3 in Debian 7 :
Greeeat succeeeess!

borat_great_success

Το απόλυτο PC για gaming

Η Origin PC ανακοίνωσε έναν νέο υπολογιστή, ο οποίος βρίσκεται σε μια δική του κατηγορία, καθώς ξεφεύγει σε μεγάλο βαθμό από τα όρια του συμβατικού PC. Ο θηριώδης υπολογιστής ονομάζεται Big O και περιλαμβάνει τεχνικά χαρακτηριστικά που προκαλούν δέος. Ωστόσο, το μεγάλο του πλεονέκτημα δεν είναι ούτε οι επεξεργαστές, ούτε οι μνήμες, ούτε οι κάρτες γραφικών.

Πέρα από το “συνηθισμένο” hardware, ο Big O κρύβει στο εξωτερικό του ένα ολόκληρο Xbox 360 Slim (!), το οποίο διαθέτει υδρόψυξη. Έτσι, ο χρήστης μπορεί να παίζει τη μία στιγμή Halo 3 και την άλλη StarCraft II μέσα από το ίδιο μηχάνημα. Από εκεί και πέρα, το καμάρι της Origin PC διατίθεται σε δύο configurations, τα οποία έχουν διαφορές στο hardware.

Το μεγάλο μοντέλο κοστίζει 17.000 δολάρια και περιλαμβάνει δύο επεξεργαστές Xeon X5680 υπερχρονισμένους στα 4.3GHz, τέσσερις GeForce GTX 480, 12GB μνήμη, δύο τροφοδοτικά με το καθένα να αποδίδει 1kW, solid-state drive 200GB και δύο σκληρούς δίσκους με χωρητικότητα 2TB ο καθένας.

Το μικρό (τρόπος του λέγειν) μοντέλο έχει τιμή 7.669 δολάρια και αντικαθιστά τους δύο Xeon με έναν ταπεινό Core i7 930.

Πηγή: techreport

Reliability – Server Die Hard compaq 1260.

Compaq Presario 1260 PC Laptops and PC Notebooks

Compaq Presario 1260

Key Features
Laptop Type Mid-Size Laptop
Use Home Use
Processor   What is "Processor"? K6-2 333 MHz
Installed Memory   What is "Installed Memory"? 64 MB (SDRAM)
Display 12.1 in. TFT Active Matrix
Operating System Microsoft Windows 98
Weight 3.3 kg

Bought in 1996 and worked his ass off since 2006 (when it was revived with a memory upgrade of a whooping 128mb sodimm module 😀 ),as a mysql – apache server for 2 dynamic ,3 static (low traffic) websites and svn for 2 teams of developers plus a brilliant pack-mule for my various experiments 😀

Shutdown cause of upgrade not a failure.

Cheers you black mean machine,i send thee to Valhalla!