Commands to install Apache, Mysql and PHP through ssh

cloud computinglamp

I am not an advanced user. I have hired a machine in cloud and I am accessing it through Putty.

How do I install a LAMP stack on it ? I tried using LAMPP (XAMPP) from Apache friends but it dies saying it supports only 32 bit library.

Can someone give me a list of commands? (I need PHP with GD, CURL SSL support)

Best Answer

As the others here have mentioned, we'd need to know your architecture, distro, and version in order to offer advice.

For example:

uname -a
Linux somebox 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 x86_64 GNU/Linux

cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

cat /etc/redhat-release 
Fedora release 8 (Werewolf)

cat /etc/debian_version 
squeeze/sid

cat /etc/debian_version 
5.0.4

cat /etc/motd
...
Ubuntu 10.04.1 LTS

cat /etc/issue
Ubuntu 10.04.1 LTS

Should get you close in most cases.