In this post I will help you get the machine ready for php development.
The OS that I am using
Ubuntu. So I am making an assumption that you all using the ubuntu. Os the flavor is only dependent for the installation purpose only.
To start with we should need the following packages
- PHP
- Apache
- Mysql
Installing PHPsudo apt-get install php5 php5-mysql php-pear php5-cli php5-dev php5-common
Installing Apachesudo apt-get install apache2
Installing Mysqlsudo apt-get install mysql-client mysql-server
To test the installation in the command line run
php --version
You will see some thing like this
$ php --version
PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:35:05)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
To test the apache check the following link in the browser
http://localhost/ You should get a message 'It Works'